@Test public void wrongAdvisoryThrowable() { RuntimeException re = new RuntimeException(); WrongAdvisoryTypeException e = new WrongAdvisoryTypeException(re); assertTrue(e.getCause().equals(re)); }
@Test public void wrongAdvisoryStringThrowable() { RuntimeException re = new RuntimeException(); WrongAdvisoryTypeException e = new WrongAdvisoryTypeException("Message", re); assertEquals(e.getMessage(), formatMessageWithExceptionId(e, "Message")); assertTrue(e.getCause().equals(re)); }