Package mondrian.util
Class BlockingHashMapTest
- java.lang.Object
-
- TestCase
-
- mondrian.util.BlockingHashMapTest
-
public class BlockingHashMapTest extends TestCase
Testcase forBlockingHashMap
.- Author:
- mcampbell
-
-
Constructor Summary
Constructors Constructor Description BlockingHashMapTest()
-
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.
-
-
-
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
-
-