@Test public void showException() throws Exception { final String MSG = "Foo is not Bar"; showDialog(new IllegalArgumentException(MSG)); ((DialogFixture) windowFixture).requireModal(); assertEquals("IllegalArgumentException", windowFixture.target().getTitle()); JLabelFixture label = windowFixture.label(); label.requireText(Pattern.compile(".*" + 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);  }