@Test public void appendTextWithEmbeddedNewlines() throws Exception { final String text = getConcatenatedText("\n"); Connection conn = showDialog(TITLE).get(); conn.append(text); windowFixture.robot().waitForIdle(); String displayedText = windowFixture.textBox().text(); String regex = "(\\n|\\r)+"; assertEquals(text.replaceAll(regex, "|"), displayedText.replaceAll(regex, "|")); }
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; }