org.archive.crawler.util
Class BdbUriUniqFilterTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.TmpDirTestCase
              extended byorg.archive.crawler.util.BdbUriUniqFilterTest
All Implemented Interfaces:
junit.framework.Test, UriUniqFilter.HasUriReceiver

public class BdbUriUniqFilterTest
extends TmpDirTestCase
implements UriUniqFilter.HasUriReceiver

Test BdbUriUniqFilter.

Author:
stack

Constructor Summary
BdbUriUniqFilterTest()
           
 
Method Summary
 java.lang.String getUri()
           
static void main(java.lang.String[] args)
           
 void receive(CandidateURI item)
           
protected  void runTestWriting(long max)
           
protected  void setUp()
           
static junit.framework.Test suite()
          return the suite of tests for MemQueueTest
protected  void tearDown()
           
 void testAdding()
           
 void testCreateKey()
           
 void testForget()
           
 void testNote()
           
 void testWriting()
          Time import of recovery log.
 
Methods inherited from class org.archive.util.TmpDirTestCase
cleanUpOldFiles, cleanUpOldFiles, getTmpDir
 
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
 

Constructor Detail

BdbUriUniqFilterTest

public BdbUriUniqFilterTest()
Method Detail

setUp

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

tearDown

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

testAdding

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

testCreateKey

public void testCreateKey()

testWriting

public void testWriting()
                 throws java.io.IOException,
                        com.sleepycat.je.DatabaseException
Time import of recovery log. REMOVE

Throws:
java.io.IOException
com.sleepycat.je.DatabaseException

runTestWriting

protected void runTestWriting(long max)
                       throws com.sleepycat.je.DatabaseException,
                              org.apache.commons.httpclient.URIException
Throws:
com.sleepycat.je.DatabaseException
org.apache.commons.httpclient.URIException

testNote

public void testNote()

testForget

public void testForget()

receive

public void receive(CandidateURI item)
Specified by:
receive in interface UriUniqFilter.HasUriReceiver
Parameters:
item - Candidate uri tem that is 'visiting'.

getUri

public java.lang.String getUri()

suite

public static junit.framework.Test suite()
return the suite of tests for MemQueueTest

Returns:
the suite of test

main

public static void main(java.lang.String[] args)


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