org.archive.crawler.frontier
Class AdaptiveRevisitHostQueueTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.TmpDirTestCase
              extended byorg.archive.crawler.frontier.AdaptiveRevisitHostQueueTest
All Implemented Interfaces:
AdaptiveRevisitAttributeConstants, CoreAttributeConstants, junit.framework.Test

public class AdaptiveRevisitHostQueueTest
extends TmpDirTestCase
implements AdaptiveRevisitAttributeConstants

A JUnit test for AdaptiveRevisitHostQueue class.

Since the ARHostQueue maintains significant state information there is only one Unit test described here that tests various different transitions.

Author:
Kristinn Sigurdsson

Field Summary
 
Fields inherited from interface org.archive.crawler.frontier.AdaptiveRevisitAttributeConstants
A_CONTENT_STATE_KEY, A_FETCH_OVERDUE, A_LAST_CONTENT_DIGEST, A_LAST_DATESTAMP, A_LAST_ETAG, A_NUMBER_OF_VERSIONS, A_NUMBER_OF_VISITS, A_TIME_OF_NEXT_PROCESSING, A_WAIT_INTERVAL, A_WAIT_REEVALUATED, CONTENT_CHANGED, CONTENT_UNCHANGED, CONTENT_UNKNOWN
 
Fields inherited from interface org.archive.crawler.datamodel.CoreAttributeConstants
A_ANNOTATIONS, A_CONTENT_TYPE, A_DELAY_FACTOR, A_DISTANCE_FROM_SEED, A_DNS_FETCH_TIME, A_DNS_SERVER_IP_LABEL, A_FETCH_BEGAN_TIME, A_FETCH_COMPLETED_TIME, A_HTML_BASE, A_HTTP_TRANSACTION, A_LOCALIZED_ERRORS, A_META_ROBOTS, A_MINIMUM_DELAY, A_MIRROR_PATH, A_PREREQUISITE_URI, A_RETRY_DELAY, A_RRECORD_SET_LABEL, A_RUNTIME_EXCEPTION
 
Constructor Summary
AdaptiveRevisitHostQueueTest()
           
 
Method Summary
 void testHQ()
           
 
Methods inherited from class org.archive.util.TmpDirTestCase
cleanUpOldFiles, cleanUpOldFiles, getTmpDir, setUp, 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
 

Constructor Detail

AdaptiveRevisitHostQueueTest

public AdaptiveRevisitHostQueueTest()
Method Detail

testHQ

public void testHQ()
            throws java.lang.Exception
Throws:
java.lang.Exception


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