@Test public void apply_givenAttributeValueIsFoo_whenEntryHasEqualAttribute_thenReturnFalse() { NotEqualPredicate name = new NotEqualPredicate("name", "foo"); QueryableEntry mockEntry = newMockEntry("foo"); boolean result = name.apply(mockEntry); assertFalse(result); }
@Test public void apply_givenAttributeValueIsNull_whenEntryHasTheAttributeIsNotNull_thenReturnTrue() { NotEqualPredicate name = new NotEqualPredicate("name", null); QueryableEntry mockEntry = newMockEntry("foo"); boolean result = name.apply(mockEntry); assertTrue(result); }