org.archive.crawler.datamodel
Class CrawlURITest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.TmpDirTestCase
              extended byorg.archive.crawler.datamodel.CrawlURITest
All Implemented Interfaces:
junit.framework.Test

public class CrawlURITest
extends TmpDirTestCase

Version:
$Revision: 1.9 $, $Date: 2005/03/11 01:10:55 $
Author:
stack

Field Summary
(package private)  CrawlURI seed
           
 
Constructor Summary
CrawlURITest()
           
 
Method Summary
protected  Stack makeStack()
          Make a new DiskStack, using /tmp and foo as the scratchDir and prefix respectively.
protected  void setUp()
           
 void testCandidateURIWithLoadedAList()
           
 void testSerialization()
          Test serialization/deserialization works.
 void testStack()
           
 
Methods inherited from class org.archive.util.TmpDirTestCase
cleanUpOldFiles, cleanUpOldFiles, getTmpDir, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

seed

CrawlURI seed
Constructor Detail

CrawlURITest

public CrawlURITest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class TmpDirTestCase
Throws:
java.lang.Exception

testSerialization

public final void testSerialization()
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Test serialization/deserialization works.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

makeStack

protected Stack makeStack()
Make a new DiskStack, using /tmp and foo as the scratchDir and prefix respectively.

Returns:
the Queue

testStack

public void testStack()
               throws org.apache.commons.httpclient.URIException
Throws:
org.apache.commons.httpclient.URIException

testCandidateURIWithLoadedAList

public void testCandidateURIWithLoadedAList()
                                     throws org.apache.commons.httpclient.URIException
Throws:
org.apache.commons.httpclient.URIException


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