1 2 3 4 package net.nutch.pagedb; 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 TestFetchListEntry extends TestCase { 13 public TestFetchListEntry(String name) { super(name); } 14 15 public void testFetchListEntry() throws Exception { 16 17 String [] anchors = new String [] {"foo", "bar"}; 18 19 FetchListEntry e1 = new FetchListEntry(true, TestPage.getTestPage(), 20 anchors); 21 TestWritable.testWritable(e1); 22 23 FetchListEntry e2 = new FetchListEntry(false, TestPage.getTestPage(), 24 anchors); 25 TestWritable.testWritable(e2); 26 27 } 28 29 } 30 | Popular Tags |