com.ls.util.cache
Class CacheTimerTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.ls.meta.junit.TestCaseBase
                    |
                    +--com.ls.util.cache.CacheTimerTestCase
All Implemented Interfaces:
junit.framework.Test

public class CacheTimerTestCase
extends com.ls.meta.junit.TestCaseBase

Test class for CacheTimer. In this class you can find the test cases.

Version:
$Revision: 1.3 $
Author:
Last modified by $Author: TBerk $

Fields inherited from class com.ls.meta.junit.TestCaseBase
EQUALS, GREATER, GREATER_OR_EQUAL, SMALLER, SMALLER_OR_EQUAL
 
Constructor Summary
CacheTimerTestCase(String name)
          Constructor.
 
Method Summary
static void main(String[] args)
          For testing only!
protected  void setUp()
          Sets up the test fixture before every call to a test method.
protected  void tearDown()
          Tears down the test fixture after every call to a test method.
 void testCacheOneCacherNormal()
          This class tests the normal usage of Cache class
 void testCacheOneCacherNormalUnlimited()
          This class tests with the unlimited timeout
 void testCacheOneCacherNotNormal()
          This class tests the normal usage of Cache class with timeout
 void testCacheTwoCacher()
          This class tests the usage of two caches
 void testCacheTwoCacherClearOldData()
          This class tests the usage of two caches and celaring old data
 void testCacheTwoCacherNormalUnlimited()
          This class tests with the unlimited timeout and two cache object
 void testCacheWithClear()
          This class tests the usage of two caches and clear
 void testCacheWithDelete()
          This class tests the usage of two caches and delete
 void testInfo()
          This class tests the result of getCacheStatus() method
 void testTwoCacherWithError()
          This class tests the usage of two caches and error
 
Methods inherited from class com.ls.meta.junit.TestCaseBase
assertAbsEquals, assertAbsEquals, assertAbsEquals, assertAbsEquals, assertAbsEquals, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompares, assertCompareTo, assertCompareTo, assertContainsKeys, assertContainsValues, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertHeadEquals, assertKeysSerializable, assertSerializable, assertSubEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertSubrangeEquals, assertTailEquals, assertValuesSerializable, checkDateFormat, checkTimeFragment, ensureCorrectParameters, getSystemLogger, getTestProperties
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, 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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheTimerTestCase

public CacheTimerTestCase(String name)
Constructor. Sets the name of the test.
Parameters:
name - name of testcase
Method Detail

setUp

protected void setUp()
Sets up the test fixture before every call to a test method.
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Tears down the test fixture after every call to a test method.
Overrides:
tearDown in class junit.framework.TestCase

testCacheOneCacherNormal

public void testCacheOneCacherNormal()
This class tests the normal usage of Cache class

testCacheOneCacherNotNormal

public void testCacheOneCacherNotNormal()
This class tests the normal usage of Cache class with timeout

testCacheOneCacherNormalUnlimited

public void testCacheOneCacherNormalUnlimited()
This class tests with the unlimited timeout

testCacheTwoCacherNormalUnlimited

public void testCacheTwoCacherNormalUnlimited()
This class tests with the unlimited timeout and two cache object

testCacheTwoCacher

public void testCacheTwoCacher()
This class tests the usage of two caches

testTwoCacherWithError

public void testTwoCacherWithError()
This class tests the usage of two caches and error

testCacheWithDelete

public void testCacheWithDelete()
This class tests the usage of two caches and delete

testCacheWithClear

public void testCacheWithClear()
This class tests the usage of two caches and clear

testCacheTwoCacherClearOldData

public void testCacheTwoCacherClearOldData()
This class tests the usage of two caches and celaring old data

testInfo

public void testInfo()
This class tests the result of getCacheStatus() method

main

public static void main(String[] args)
For testing only!
Parameters:
args - command line arguments