@Test public void testAction() { try { actions.perform(MockEditorAction.class, 50); assertEquals(resultPerformMethod, 50); } catch (ArgumentsValidationException e) { fail(e.getMessage()); } }
@Test public void testValidationOfSingleAndMultipleArguments() { try { actions.perform(EmptyValidArguments.class); actions.perform(TwoArgumentsAction.class, "", true); // the three different possibilities for MultipleValidArguments actions.perform(MultipleValidArguments.class, "", true); actions.perform(MultipleValidArguments.class); actions.perform(MultipleValidArguments.class, 50); } catch (ArgumentsValidationException e) { fail("Error testing validation of the list of arguments " + e.getMessage()); } }