@Test public void testExecutingItYieldsExceptionWithErrorMessage() { try { failAction.execute(null); fail(); } catch (ActionExecutionException e) { assertThat(e).hasMessage(errorMessage); } }
@Test public void testPrimaryOutput() { assertSame(anOutput, failAction.getPrimaryOutput()); }
@Test public void testRetainsItsOutputs() { assertThat(failAction.getOutputs()).containsExactlyElementsIn(outputs); }
@Test public void testInputsAreEmptySet() { assertThat(failAction.getInputs()).containsExactlyElementsIn(Collections.emptySet()); }