org.apache.commons.math3.util
Class OpenIntToDoubleHashMapTest

java.lang.Object
  extended by org.apache.commons.math3.util.OpenIntToDoubleHashMapTest

public class OpenIntToDoubleHashMapTest
extends Object

Test cases for the OpenIntToDoubleHashMap.


Constructor Summary
OpenIntToDoubleHashMapTest()
           
 
Method Summary
 void setUp()
           
 void testConcurrentModification()
           
 void testContainsKey()
           
 void testCopy()
           
 void testGetAbsent()
           
 void testGetFromEmpty()
           
 void testIterator()
           
 void testPutAbsentOnExisting()
           
 void testPutAndGet()
           
 void testPutAndGetWith0ExpectedSize()
           
 void testPutAndGetWithExpectedSize()
           
 void testPutKeysWithCollision2()
          Similar to testPutKeysWithCollisions() but exercises the codepaths in a slightly different manner.
 void testPutKeysWithCollisions()
          Regression test for a bug in findInsertionIndex where the hashing in the second probing loop was inconsistent with the first causing duplicate keys after the right sequence of puts and removes.
 void testPutOnExisting()
           
 void testRemove()
           
 void testRemove2()
           
 void testRemoveAbsent()
           
 void testRemoveFromEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIntToDoubleHashMapTest

public OpenIntToDoubleHashMapTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testPutAndGetWith0ExpectedSize

public void testPutAndGetWith0ExpectedSize()

testPutAndGetWithExpectedSize

public void testPutAndGetWithExpectedSize()

testPutAndGet

public void testPutAndGet()

testPutAbsentOnExisting

public void testPutAbsentOnExisting()

testPutOnExisting

public void testPutOnExisting()

testGetAbsent

public void testGetAbsent()

testGetFromEmpty

public void testGetFromEmpty()

testRemove

public void testRemove()

testRemove2

public void testRemove2()

testRemoveFromEmpty

public void testRemoveFromEmpty()

testRemoveAbsent

public void testRemoveAbsent()

testCopy

public void testCopy()

testContainsKey

public void testContainsKey()

testIterator

public void testIterator()

testConcurrentModification

public void testConcurrentModification()

testPutKeysWithCollisions

public void testPutKeysWithCollisions()
Regression test for a bug in findInsertionIndex where the hashing in the second probing loop was inconsistent with the first causing duplicate keys after the right sequence of puts and removes.


testPutKeysWithCollision2

public void testPutKeysWithCollision2()
Similar to testPutKeysWithCollisions() but exercises the codepaths in a slightly different manner.



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