@Test public void showDefaultDialog() throws Exception { showDialog(TITLE); assertEquals(TITLE, windowFixture.target().getTitle()); JTextComponentFixture textBox = windowFixture.textBox(); assertTrue(textBox.target() instanceof JTextArea); JTextArea textArea = (JTextArea) textBox.target(); assertEquals(JTextReporter.DEFAULT_TEXTAREA_ROWS, textArea.getRows()); assertEquals(JTextReporter.DEFAULT_TEXTAREA_COLS, textArea.getColumns()); getButton("Copy to clipboard"); getButton("Save..."); getButton("Clear"); getButton("Close"); DialogFixture df = (DialogFixture) windowFixture; boolean expectModal = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_MODAL) > 0; assertEquals(expectModal, df.target().isModal()); boolean expectResizable = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_RESIZABLE) > 0; assertEquals(expectResizable, df.target().isResizable()); boolean expectAlwaysOnTop = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_ALWAYS_ON_TOP) > 0; assertEquals(expectAlwaysOnTop, df.target().isAlwaysOnTop()); }
public static Connection showDialog(String title) { return showDialog(title, null); }
JTextReporter { public static Connection showDialog(String title) { return showDialog(title, null); } }
JTextReporter { public static Connection showDialog(String title) { return showDialog(title, null); }  }
JTextReporter { public static Connection showDialog(String title) { return showDialog(title, null); }  static Connection showDialog(String title); static Connection showDialog(String title, String initialText); static Connection showDialog(String title, String initialText, int flags); static Connection showDialog(
            final String title,
            final String initialText,
            final int flags,
            final int textAreaRows,
            final int textAreaCols); }
JTextReporter { public static Connection showDialog(String title) { return showDialog(title, null); }  static Connection showDialog(String title); static Connection showDialog(String title, String initialText); static Connection showDialog(String title, String initialText, int flags); static Connection showDialog(
            final String title,
            final String initialText,
            final int flags,
            final int textAreaRows,
            final int textAreaCols); static final int FLAG_MODAL; static final int FLAG_ALWAYS_ON_TOP; static final int FLAG_RESIZABLE; static final int DEFAULT_FLAGS; static final int DEFAULT_TEXTAREA_ROWS; static final int DEFAULT_TEXTAREA_COLS; static String NEWLINE; static final char DEFAULT_SEPARATOR_CHAR; }