5960616263646566676869
evaluator.evaluate(context, n); control.setReturnValue(true); replayControls(); assertEquals(false, n.evaluate(context)); assertEquals(true, n.evaluate(context)); verifyControls(); } }
60616263646566676869
control.setReturnValue(true); replayControls(); assertEquals(false, n.evaluate(context)); assertEquals(true, n.evaluate(context)); verifyControls(); } }
96979899100101102103104105106
Node node = new NodeImpl(left, null, new NotEvaluator()); replayControls(); assertEquals(false, node.evaluate(context)); verifyControls(); } public void testAndEvaluatorTrue()
111112113114115116117118119120121
Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(true, node.evaluate(context)); verifyControls(); } public void testAndEvaluatorShortcicuit()
126127128129130131132133134135136
Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(false, node.evaluate(context)); verifyControls(); } public void testAndEvaluatorFalse()
141142143144145146147148149150151
Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(false, node.evaluate(context)); verifyControls(); } public void testOrEvaluatorTrue()
156157158159160161162163164165166
Node node = new NodeImpl(left, right, new OrEvaluator()); replayControls(); assertEquals(true, node.evaluate(context)); verifyControls(); } public void testOrEvaluatorShortcicuit()
171172173174175176177178179180181
Node node = new NodeImpl(left, right, new OrEvaluator()); replayControls(); assertEquals(true, node.evaluate(context)); verifyControls(); } public void testOrEvaluatorFalse()
186187188189190191192193194195196
Node node = new NodeImpl(left, right, new OrEvaluator()); replayControls(); assertEquals(false, node.evaluate(context)); verifyControls(); } }