1 2 3 4 package net.nutch.fetcher; 5 6 import java.io.*; 7 import net.nutch.io.*; 8 import net.nutch.pagedb.*; 9 import junit.framework.TestCase; 10 11 12 public class TestFetcherOutput extends TestCase { 13 public TestFetcherOutput(String name) { super(name); } 14 15 public void testFetcherOutput() throws Exception { 16 17 String [] anchors = new String [] {"foo", "bar"}; 18 19 FetcherOutput o = 20 new FetcherOutput(new FetchListEntry(true, TestPage.getTestPage(), 21 anchors), 22 TestMD5Hash.getTestHash(), FetcherOutput.SUCCESS); 23 24 TestWritable.testWritable(o); 25 26 } 27 28 } 29 | Popular Tags |