.testEquals();
}
public void testNot_equalityForNotOfKnownValues() {
/* Would be nice to have .addEqualObject(Predicates.not(FALSE)). */
new EqualsTester(TRUE)
.addEqualObject(Predicates.alwaysTrue())
.addNotEqualObject(FALSE)
.addNotEqualObject(Predicates.not(TRUE))
.testEquals();
/* Would be nice to have .addEqualObject(Predicates.not(TRUE)). */
new EqualsTester(FALSE)
.addEqualObject(Predicates.alwaysFalse())
.addNotEqualObject(TRUE)
.addNotEqualObject(Predicates.not(FALSE))
.testEquals();
/* Would be nice to have .addEqualObject(Predicates.not(notNull())). */
new EqualsTester(Predicates.isNull())
.addEqualObject(Predicates.isNull())
.addNotEqualObject(Predicates.notNull())
.addNotEqualObject(Predicates.not(Predicates.isNull()))
.testEquals();
/* Would be nice to have .addEqualObject(Predicates.not(isNull())). */
new EqualsTester(Predicates.notNull())
.addEqualObject(Predicates.notNull())
.addNotEqualObject(Predicates.isNull())
.addNotEqualObject(Predicates.not(Predicates.notNull()))
.testEquals();
}