org.archive.util.fingerprint
Class LongFPSetCacheTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.fingerprint.LongFPSetTestCase
              extended byorg.archive.util.fingerprint.LongFPSetCacheTest
All Implemented Interfaces:
junit.framework.Test

public class LongFPSetCacheTest
extends LongFPSetTestCase

JUnit test suite for LongFPSetCache

Version:
$ Id:$
Author:
James Casey

Constructor Summary
LongFPSetCacheTest(java.lang.String testName)
          Create a new LongFPSetCacheTest object
 
Method Summary
static void main(java.lang.String[] argv)
          run all the tests for LongFPSetCacheTest
(package private)  LongFPSet makeLongFPSet()
           
static junit.framework.Test suite()
          return the suite of tests for LongFPSetCacheTest
 void testCount()
          This is a cache buffer, which does not grow, but chucks out old values.
 
Methods inherited from class org.archive.util.fingerprint.LongFPSetTestCase
setUp, testAdd, testContains, testRemove, testWithZero
 
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

LongFPSetCacheTest

public LongFPSetCacheTest(java.lang.String testName)
Create a new LongFPSetCacheTest object

Parameters:
testName - the name of the test
Method Detail

main

public static void main(java.lang.String[] argv)
run all the tests for LongFPSetCacheTest

Parameters:
argv - the command line arguments

suite

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

Returns:
the suite of test

makeLongFPSet

LongFPSet makeLongFPSet()
Specified by:
makeLongFPSet in class LongFPSetTestCase

testCount

public void testCount()
This is a cache buffer, which does not grow, but chucks out old values. Therefore it has a different behaviour from all the other LongFPSets. We do a different test here.

Overrides:
testCount in class LongFPSetTestCase


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