@Test public void messageFormatFullFormatTest() { TransmissionException ex = new TransmissionException( "SOAP communication failed", 500, new RuntimeException("Internal server error")); assertEquals("SOAP communication failed; HTTP code = [500];", ex.getMessage()); }
@Test public void messageFormatCauseTest() { TransmissionException ex = new TransmissionException("", 0, new RuntimeException("Cause")); assertEquals("", ex.getMessage()); }
@Test public void messageFormatCodeTest() { TransmissionException ex = new TransmissionException("", 404, new RuntimeException()); assertEquals("HTTP code = [404];", ex.getMessage()); }