TimedOutHashTableTest

public class TimedOutHashTableTest extends TestCase

The test case for TimedOutHashTable. Creation Date: 25/6/2007

Author:Twinsen Tsang

Methods

setUp

public void setUp()

Setup for testing.

tearDown

public void tearDown()

Invoked for completing one testcase

testContain

public void testContain()

Test for existence of the putting object using method contain.

testContainValue

public void testContainValue()

Test for existence of the putting object using method containValue.

testGet

public void testGet()

Test for getting object from the hashtable using get

testMultiplePutWithMixed

public void testMultiplePutWithMixed()

Test for putting multiple object with some time out specified while some don’t. It then check whether some records are swept out after [sweeping_interval + timeout value].

testMultiplePutWithTimeout

public void testMultiplePutWithTimeout()

Test for putting multiple object with time out specified and see whether all records are swept out after [sweeping_interval + timeout value].

testPut

public void testPut()

Test for simple and normal scenario for putting object.

testPutWithTimeout

public void testPutWithTimeout()

Test for putting a object with time out specific and see whether it will timeout after maximum time [sweeping_interval + timeout value].

testSetListener

public void testSetListener()

Test for setting the customized listener for handling timeout entry.