org.apache.jcs.utils.struct
Class JCSvsCommonsLRUMapPerformanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jcs.utils.struct.JCSvsCommonsLRUMapPerformanceTest
All Implemented Interfaces:
junit.framework.Test

public class JCSvsCommonsLRUMapPerformanceTest
extends junit.framework.TestCase

This ensures that the jcs version of the LRU map is as fast as the commons version. It has been testing at .6 to .7 times the commons LRU.


Constructor Summary
JCSvsCommonsLRUMapPerformanceTest(String testName)
           
 
Method Summary
 void doWork()
           
static void main(String[] args)
           
static junit.framework.Test suite()
          A unit test suite for JUnit
 void testSimpleLoad()
          A unit test for JUnit
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

JCSvsCommonsLRUMapPerformanceTest

public JCSvsCommonsLRUMapPerformanceTest(String testName)
Parameters:
testName -
Method Detail

suite

public static junit.framework.Test suite()
A unit test suite for JUnit

Returns:
The test suite

testSimpleLoad

public void testSimpleLoad()
                    throws Exception
A unit test for JUnit

Throws:
Exception - Description of the Exception

doWork

public void doWork()

main

public static void main(String[] args)
Parameters:
args -


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.