Package mondrian.util

Class ObjectPoolTest


  • public class ObjectPoolTest
    extends TestCase
    Test case for ObjectPool.
    Author:
    Richard Emberson
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  ObjectPoolTest.KeyValue  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectPoolTest

        public ObjectPoolTest()
      • ObjectPoolTest

        public ObjectPoolTest​(java.lang.String name)
    • Method Detail

      • testString

        public void testString()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testKeyValue

        public void testKeyValue()
                          throws java.lang.Exception
        Throws:
        java.lang.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.