@Test public void showExceptionWithUserMessage() throws Exception { final String EXCEPTION_MSG = "Foo is not Bar"; final String USER_MSG = "You should see this message"; showDialog(new IllegalArgumentException(EXCEPTION_MSG), USER_MSG); assertEquals("IllegalArgumentException", windowFixture.target().getTitle()); JLabelFixture label = windowFixture.label(); label.requireText(Pattern.compile(".*" + USER_MSG + ".*")); }
public static void showDialog(Throwable exception) { showDialog(exception, null); }
JExceptionReporter { public static void showDialog(Throwable exception) { showDialog(exception, null); } }
JExceptionReporter { public static void showDialog(Throwable exception) { showDialog(exception, null); } private  JExceptionReporter(); }
JExceptionReporter { public static void showDialog(Throwable exception) { showDialog(exception, null); } private  JExceptionReporter(); static void showDialog(Throwable exception); static void showDialog(final Throwable exception, final String message); }
JExceptionReporter { public static void showDialog(Throwable exception) { showDialog(exception, null); } private  JExceptionReporter(); static void showDialog(Throwable exception); static void showDialog(final Throwable exception, final String message);  }