/** Tests process method with the input "SOME_VALUE" */ @Test public void processTestWithException() { try { valueToString.process("SOME_VALUE"); } catch (IllegalArgumentException illegalArgumentException) { Assert.assertTrue( illegalArgumentException.getMessage().startsWith("invalid argument SOME_VALUE")); } }
/** Tests process method with the input "VALUE3" */ @Test public void processTestWithValue3() { valueToString.process("VALUE3"); String output = valueToString.getReturnVal(); assertEquals("SERVICECALL", output); }
/** Tests process method with the input "VALUE2 */ @Test public void processTestWithValue2() { valueToString.process("VALUE2"); String output = valueToString.getReturnVal(); assertEquals("2", output); }