BooleanValues implements Condition, Cloneable { @Override public boolean isTrue(Object element) { return value; } private  BooleanValues(boolean b); @Override boolean isTrue(Object element); @SuppressWarnings({"CloneDoesntCallSuperClone"}) @Override BooleanValues clone(); @Override String toString(); static BooleanValues getInstance(boolean value); static final BooleanValues TRUE; static final BooleanValues FALSE; }
@Test public void testTrue() throws CloneNotSupportedException, IOException, ClassNotFoundException { BooleanValues condition = BooleanValues.TRUE; assertTrue(condition.isTrue(null)); internalTestCondition(condition); }
@Test public void testFalse() throws CloneNotSupportedException, IOException, ClassNotFoundException { BooleanValues condition = BooleanValues.FALSE; assertFalse(condition.isTrue(null)); internalTestCondition(condition); }