KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > pagedb > TestFetchListEntry


1 /* Copyright (c) 2003 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
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 /** Unit tests for FetchListEntry. */
12 public class TestFetchListEntry extends TestCase {
13   public TestFetchListEntry(String JavaDoc name) { super(name); }
14
15   public void testFetchListEntry() throws Exception JavaDoc {
16
17     String JavaDoc[] anchors = new String JavaDoc[] {"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