91011121314151617
public class InvalidContentExceptionTest { @Test public void testInvalidContentExceptionCause() { Throwable cause = new Exception(); InvalidContentException e = new InvalidContentException(cause); assertThat(e.getCause(), is(cause)); }
171819202122232425
} @Test public void testInvalidContentExceptionMessage() { String message = "message"; InvalidContentException e = new InvalidContentException(message); assertThat(e.getMessage(), is(message)); }