KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > fetcher > TestFetcherOutput


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.fetcher;
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 FetcherOutput. */
12 public class TestFetcherOutput extends TestCase {
13   public TestFetcherOutput(String JavaDoc name) { super(name); }
14
15   public void testFetcherOutput() throws Exception JavaDoc {
16
17     String JavaDoc[] anchors = new String JavaDoc[] {"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