private URL[][] currURLsAndAnswers;
@Test
public void testRobotsMetaProcessor() {
DOMFragmentParser parser= new DOMFragmentParser();;
try {
currURLsAndAnswers= new URL[][] {
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org"), null},
{new URL("http://www.nutch.org/foo/"),
new URL("http://www.nutch.org/")},
{new URL("http://www.nutch.org"),
new URL("http://www.nutch.org/base/")}
};
} catch (Exception e) {
Assert.assertTrue("couldn't make test URLs!", false);
}
for (int i= 0; i < tests.length; i++) {
byte[] bytes= tests[i].getBytes();
DocumentFragment node = new HTMLDocumentImpl().createDocumentFragment();
try {
parser.parse(new InputSource(new ByteArrayInputStream(bytes)), node);
} catch (Exception e) {
e.printStackTrace();
}
HTMLMetaTags robotsMeta= new HTMLMetaTags();