|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.util.OpenIntToDoubleHashMapTest
public class OpenIntToDoubleHashMapTest
Test cases for the OpenIntToDoubleHashMap
.
Constructor Summary | |
---|---|
OpenIntToDoubleHashMapTest()
|
Method Summary | |
---|---|
protected 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 junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenIntToDoubleHashMapTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testPutAndGetWith0ExpectedSize()
public void testPutAndGetWithExpectedSize()
public void testPutAndGet()
public void testPutAbsentOnExisting()
public void testPutOnExisting()
public void testGetAbsent()
public void testGetFromEmpty()
public void testRemove()
public void testRemove2()
public void testRemoveFromEmpty()
public void testRemoveAbsent()
public void testCopy()
public void testContainsKey()
public void testIterator()
public void testConcurrentModification()
public void testPutKeysWithCollisions()
public void testPutKeysWithCollision2()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |