ca.cbc.sportwire.util
Class TestTTLCacheMap

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--ca.cbc.sportwire.util.TestTTLCacheMap
All Implemented Interfaces:
junit.framework.Test

public class TestTTLCacheMap
extends junit.framework.TestCase

File TestTTLCacheMap.java is automaticaly generated by 'unittestsgen' application. Code generator is created for java sources and for 'junit' package by "Artur Hefczyc"
You should fulfil test methods with proper code for testing purpose. All methods where you should put your code are below and their names starts with 'test'.
You can run unit tests in many ways, however prefered are:

Created: Fri Jan 4 13:07:03 2002
 $Log: TestTTLCacheMap.java,v $
 Revision 1.3  2002/01/29 06:51:02  garym
 Added Barry Andrews' test cases.

 Revision 1.2  2002/01/18 03:09:28  garym
 Extended unit tests for TTLCacheMap; implemented email unit test reports

 Revision 1.1  2002/01/16 23:09:25  garym
 Implemented the JDBC pool support and sql property beans


 

Version:
$Id: TestTTLCacheMap.java,v 1.3 2002/01/29 06:51:02 garym Exp $
Author:
Barry Andrews

Field Summary
protected static TTLCacheMap varTTLCacheMap_1
          Instance of tested class.
protected static TTLCacheMap varTTLCacheMap_2
           
protected static TTLCacheMap varTTLCacheMap_3
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestTTLCacheMap(java.lang.String name)
          Public constructor for creating testing class.
 
Method Summary
static void main(java.lang.String[] args)
          This main method is used for run tests for this class only from command line.
protected  void setUp()
          This method is called every time before particular test execution.
private static int stuff(java.lang.String base, java.util.Map m, int count)
           
static junit.framework.Test suite()
          Returns all tests which should be performed for testing class.
protected  void tearDown()
          Called after each test to do some clean up
 void testClear()
          Method for testing how works original method: void clear() from tested class
 void testContainsKey1063877011()
          Method for testing how works original method: boolean containsKey(java.lang.Object) from tested class
 void testContainsValue1063877011()
          Method for testing how works original method: boolean containsValue(java.lang.Object) from tested class
 void testEntrySet()
          Method for testing how works original method: java.util.Set entrySet() from tested class
 void testEquals1063877011()
          Method for testing how works original method: boolean equals(java.lang.Object) from tested class
 void testGet1063877011()
          Method for testing how works original method: java.lang.Object get(java.lang.Object) from tested class
 void testHashCode()
          Method for testing how works original method: int hashCode() from tested class
 void testIsEmpty()
          Method for testing how works original method: boolean isEmpty() from tested class
 void testKeySet()
          Method for testing how works original method: java.util.Set keySet() from tested class
 void testPut10638770111063877011()
          Method for testing put(java.lang.Object, java.lang.Object, ms) stuffs the map with 100 values, then reads them back to compare, then pauses for a bit and reads them back again.
 void testPutAll1383349348()
          Method for testing how works original method: void putAll(java.util.Map) from tested class
 void testRemove1063877011()
          Method for testing how works original method: java.lang.Object remove(java.lang.Object) from tested class
 void testValues()
          Method for testing java.util.Collection values() by adding random numbers randomly and concurrently into the cache map object.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

varTTLCacheMap_1

protected static TTLCacheMap varTTLCacheMap_1
Instance of tested class. Includes all contructors except default.

varTTLCacheMap_2

protected static TTLCacheMap varTTLCacheMap_2

varTTLCacheMap_3

protected static TTLCacheMap varTTLCacheMap_3
Constructor Detail

TestTTLCacheMap

public TestTTLCacheMap(java.lang.String name)
Public constructor for creating testing class.
Method Detail

main

public static void main(java.lang.String[] args)
This main method is used for run tests for this class only from command line.

setUp

protected void setUp()
This method is called every time before particular test execution. It creates new instance of tested class and it can perform some more actions which are necessary for performs tests.
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Called after each test to do some clean up
Overrides:
tearDown in class junit.framework.TestCase

stuff

private static int stuff(java.lang.String base,
                         java.util.Map m,
                         int count)

suite

public static junit.framework.Test suite()
Returns all tests which should be performed for testing class. By default it returns only name of testing class. Instance of this is then created with its constructor.

testValues

public void testValues()
Method for testing java.util.Collection values() by adding random numbers randomly and concurrently into the cache map object.

testRemove1063877011

public void testRemove1063877011()
Method for testing how works original method: java.lang.Object remove(java.lang.Object) from tested class

testPutAll1383349348

public void testPutAll1383349348()
Method for testing how works original method: void putAll(java.util.Map) from tested class

testPut10638770111063877011

public void testPut10638770111063877011()
Method for testing put(java.lang.Object, java.lang.Object, ms) stuffs the map with 100 values, then reads them back to compare, then pauses for a bit and reads them back again.

testKeySet

public void testKeySet()
Method for testing how works original method: java.util.Set keySet() from tested class

testIsEmpty

public void testIsEmpty()
Method for testing how works original method: boolean isEmpty() from tested class

testHashCode

public void testHashCode()
Method for testing how works original method: int hashCode() from tested class

testGet1063877011

public void testGet1063877011()
Method for testing how works original method: java.lang.Object get(java.lang.Object) from tested class

testEquals1063877011

public void testEquals1063877011()
Method for testing how works original method: boolean equals(java.lang.Object) from tested class

testEntrySet

public void testEntrySet()
Method for testing how works original method: java.util.Set entrySet() from tested class

testContainsValue1063877011

public void testContainsValue1063877011()
Method for testing how works original method: boolean containsValue(java.lang.Object) from tested class

testContainsKey1063877011

public void testContainsKey1063877011()
Method for testing how works original method: boolean containsKey(java.lang.Object) from tested class

testClear

public void testClear()
Method for testing how works original method: void clear() from tested class