Examples of CustomScanner


Examples of org.htmlparser.tests.scannersTests.CompositeTagScannerTest.CustomScanner

        int expectedStartLine,
        int expectedEndLine)
        throws ParserException
    {
        createParser(xml);
        parser.addScanner(new CustomScanner());
        parseAndAssertNodeCount(numNodes);
        assertType("custom node", CustomTag.class, node[useNode]);
        CustomTag tag = (CustomTag) node[useNode];
        assertEquals(
            "start line",
View Full Code Here

Examples of org.htmlparser.tests.scannersTests.CompositeTagScannerTest.CustomScanner

   *             if there is an exception during parsing
   */
  private void testLineNumber(String xml, int numNodes, int useNode, int expectedStartLine, int expectedEndLine)
      throws ParserException {
    createParser(xml);
    parser.addScanner(new CustomScanner());
    parseAndAssertNodeCount(numNodes);
    assertType("custom node", CustomTag.class, node[useNode]);
    CustomTag tag = (CustomTag) node[useNode];
    assertEquals("start line", expectedStartLine, tag.tagData.getStartLine());
    assertEquals("end line", expectedEndLine, tag.tagData.getEndLine());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.