Package gnu.javax.swing.text.html.parser.support.low

Examples of gnu.javax.swing.text.html.parser.support.low.Buffer


    verifyNull("x--");
  }

  public void verify(String sequence, int kind, String image)
  {
    Token t = c.endMatches(new Buffer(sequence));
    assertEquals(kind, t.kind);
    assertEquals(image, t.getImage());
  }
View Full Code Here


    assertEquals(image, t.getImage());
  }

  public void verifyNull(String sequence)
  {
    Token t = c.endMatches(new Buffer(sequence));
    assertNull("The end should not match any token", t);
  }
View Full Code Here

  public void testAppend()
  {
    Buffer.INITIAL_SIZE = 2;

    Buffer b = new Buffer("01");
    b.append('A', 0);
    b.append('B', 0);
    assertEquals(b.toString(), "01AB");
  }
View Full Code Here

    assertEquals(b.toString(), "01AB");
  }

  public void testDelete()
  {
    Buffer b = new Buffer("0123456789ABCDEFGHIJKLMN");
    b.delete(2, 7);
    assertEquals(b.toString(), "01789ABCDEFGHIJKLMN");
  }
View Full Code Here

TOP

Related Classes of gnu.javax.swing.text.html.parser.support.low.Buffer

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.