@Test public void failureExceptionShouldThrowMojoFailureException() throws MojoFailureException { FailureException failureException = new FailureException("Gurka"); expectedException.expect(MojoFailureException.class); expectedException.expectMessage("Gurka"); new ExceptionHandler(failureException).throwMojoFailureException(); }
public void throwMojoFailureException() throws MojoFailureException { if (fex.getCause() != null) { throw new MojoFailureException(fex.getMessage(), fex.getCause()); } else { throw new MojoFailureException(fex.getMessage()); } }
ExceptionHandler { public void throwMojoFailureException() throws MojoFailureException { if (fex.getCause() != null) { throw new MojoFailureException(fex.getMessage(), fex.getCause()); } else { throw new MojoFailureException(fex.getMessage()); } } }
ExceptionHandler { public void throwMojoFailureException() throws MojoFailureException { if (fex.getCause() != null) { throw new MojoFailureException(fex.getMessage(), fex.getCause()); } else { throw new MojoFailureException(fex.getMessage()); } } ExceptionHandler(FailureException fex); }
ExceptionHandler { public void throwMojoFailureException() throws MojoFailureException { if (fex.getCause() != null) { throw new MojoFailureException(fex.getMessage(), fex.getCause()); } else { throw new MojoFailureException(fex.getMessage()); } } ExceptionHandler(FailureException fex); void throwMojoFailureException(); }
ExceptionHandler { public void throwMojoFailureException() throws MojoFailureException { if (fex.getCause() != null) { throw new MojoFailureException(fex.getMessage(), fex.getCause()); } else { throw new MojoFailureException(fex.getMessage()); } } ExceptionHandler(FailureException fex); void throwMojoFailureException();  }