KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > parse > TestParseText


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.parse;
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 ParseText. */
12
13 public class TestParseText extends TestCase {
14   public TestParseText(String JavaDoc name) { super(name); }
15
16   public void testParseText() throws Exception JavaDoc {
17
18     String JavaDoc page = "Hello World The Quick Brown Fox Jumped Over the Lazy Fox";
19
20     ParseText s = new ParseText(page);
21                         
22     TestWritable.testWritable(s);
23   }
24     
25 }
26
Popular Tags