/** Test of evaluateReverse method, of class ForwardReverseEvaluatorPair. */ @Test public void testEvaluateReverse() { Evaluator<String, Integer> forward = new StringToInteger(); Evaluator<Integer, String> reverse = new IntegerToString(); ForwardReverseEvaluatorPair< String, Integer, Evaluator<String, Integer>, Evaluator<Integer, String>> instance = ForwardReverseEvaluatorPair.create(forward, reverse); assertEquals("4", instance.evaluateReverse(4)); assertEquals("5", instance.evaluateReverse(5)); }
/** Test of create method, of class ForwardReverseEvaluatorPair. */ @Test public void testCreate() { Evaluator<String, Integer> forward = new StringToInteger(); Evaluator<Integer, String> reverse = new IntegerToString(); ForwardReverseEvaluatorPair< String, Integer, Evaluator<String, Integer>, Evaluator<Integer, String>> instance = ForwardReverseEvaluatorPair.create(forward, reverse); assertSame(forward, instance.getForward()); assertSame(reverse, instance.getReverse()); }