org.archive.crawler.selftest
Class CharsetSelfTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.crawler.selftest.SelfTestCase
              extended byorg.archive.crawler.selftest.CharsetSelfTest
All Implemented Interfaces:
junit.framework.Test

public class CharsetSelfTest
extends SelfTestCase

Simple test to ensure we can extract links from multibyte pages. That is, can we regex over a multibyte stream.

Version:
$Revision: 1.6 $, $Date: 2004/05/28 22:33:04 $
Author:
stack

Field Summary
 
Fields inherited from class org.archive.crawler.selftest.SelfTestCase
SELFTEST
 
Constructor Summary
CharsetSelfTest()
           
 
Method Summary
 void testCharset()
          Look for last file in link chain.
 
Methods inherited from class org.archive.crawler.selftest.SelfTestCase
fileExists, filesExist, filesFoundInArc, getArcFile, getCrawlJob, getCrawlJobDir, getHtdocs, getLogsDir, getMetaDatas, getReadReader, getSelftestURL, getSelftestURLWithTrailingSlash, getTestName, initialize, setUp, testFilesInArc, testFilesInArc
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharsetSelfTest

public CharsetSelfTest()
Method Detail

testCharset

public void testCharset()
Look for last file in link chain. The way the pages are setup under the CharsetSelfTest directory under the webapp is that we have one multibyte page w/ a single link buried in it that points off to another multibyte page. On the end of the link chain is a page named END_OF_CHAIN_PAGE. This test looks to see that arc has all pages in the chain.



Copyright © 2003-2005 Internet Archive. All Rights Reserved.