mondrian.util
Class ObjectPoolTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.util.ObjectPoolTest
All Implemented Interfaces:
junit.framework.Test

public class ObjectPoolTest
extends junit.framework.TestCase

Test case for ObjectPool.

Author:
Richard Emberson

Nested Class Summary
(package private) static class ObjectPoolTest.KeyValue
           
 
Constructor Summary
ObjectPoolTest()
           
ObjectPoolTest(String name)
           
 
Method Summary
 void testKeyValue()
           
 void testLarge()
          Tests ObjectPools containing large numbers of integer and string keys, and makes sure they return the same results as HashSet.
 void testString()
           
 
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

ObjectPoolTest

public ObjectPoolTest()

ObjectPoolTest

public ObjectPoolTest(String name)
Method Detail

testString

public void testString()
                throws Exception
Throws:
Exception

testKeyValue

public void testKeyValue()
                  throws Exception
Throws:
Exception

testLarge

public void testLarge()
Tests ObjectPools containing large numbers of integer and string keys, and makes sure they return the same results as HashSet. Optionally measures performance.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads