Package mondrian.util

Class BlockingHashMapTest


  • public class BlockingHashMapTest
    extends TestCase
    Testcase for BlockingHashMap.
    Author:
    mcampbell
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void testBlockingHashMap()
      Validates values put in the BlockingHashMap by one thread can be correctly retrieved by another thread.
      • Methods inherited from class java.lang.Object

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

      • BlockingHashMapTest

        public BlockingHashMapTest()
    • Method Detail

      • testBlockingHashMap

        public void testBlockingHashMap()
                                 throws java.lang.InterruptedException
        Validates values put in the BlockingHashMap by one thread can be correctly retrieved by another thread. Also verifies get operations can happen concurrently, in that total time to get all values synchronously would (on average) be 50 milliseconds * 100 Getters, and the test will fail if duration is greater than 2 seconds.
        Throws:
        java.lang.InterruptedException