Package org.apache.lucene.benchmark.byTask.feeds.DemoHTMLParser

Examples of org.apache.lucene.benchmark.byTask.feeds.DemoHTMLParser.Parser


    assertEquals("TEST-000 text", parser.body.trim());
  }
 
  public void testNoHTML() throws Exception {
    String text = "hallo";
    Parser parser = new Parser(new StringReader(text));
    assertEquals("", parser.title);
    assertEquals("hallo", parser.body);
  }
View Full Code Here


    assertEquals("hallo", parser.body);
  }
 
  public void testivalid() throws Exception {
    String text = "<title>foo</title>bar";
    Parser parser = new Parser(new StringReader(text));
    assertEquals("foo", parser.title);
    assertEquals("bar", parser.body);
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.benchmark.byTask.feeds.DemoHTMLParser.Parser

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.