Package org.jamesii.gui.syntaxeditor

Examples of org.jamesii.gui.syntaxeditor.PasstroughTokenAction


  public final void testRun() throws BadLocationException {

    String original =
        Strings.generateRandomString(random.nextInt(10000), random);

    PasstroughTokenAction action = new PasstroughTokenAction(null);

    assertNotNull(action);

    Reader input = new StringReader(original);
    StringWriter output = new StringWriter();

    action.run(input, output);

    assertEquals(original, output.toString());

    PlainDocument doc = new PlainDocument();
    doc.insertString(0, original, null);

    input = new DocumentReader(doc);
    output = new StringWriter();

    action.run(input, output);

    assertEquals(original, output.toString());
  }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.syntaxeditor.PasstroughTokenAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.