public class TestHashLongMap
extends TestCase
| Constructor and Description |
|---|
TestHashLongMap(java.lang.String testName)
Constructor for the test unit.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
The main for the program
|
void |
runBare()
Runs the bare test sequence.
|
static Test |
suite()
Creates the test suite.
|
void |
testAddAndRemoveOneWithoutInitialize()
check that we can add one without putting everything into elements.
|
void |
testAddAndRemoveOneWithoutInitializeClone()
check that we can add and remove one without putting everything into elements.
|
void |
testClearOverflow()
should clear the overflow value.
|
void |
testFirstGet()
first get without any put
|
void |
testGetKeyArrayOverflowWithUnkownSort()
NPE from getKeyArray
|
void |
testGetOverflow()
should get a the overflow value.
|
void |
testGetSortKey()
getKey is causing an issue
|
void |
testInitContainsKey()
getKey is causing an issue
|
void |
testInitContainsKey2()
getKey is causing an issue
|
void |
testIsSorted()
check is sorted.
|
void |
testKeySortedArray()
check is sorted.
|
void |
testLargeSmallPutAll()
should not initialize if large and small
|
void |
testLazyAddIsSorted()
check that the lazy add handles sort.
|
void |
testLazyAddIsSorted2()
check that the lazy add handles sort.
|
void |
testLazyBrief()
check that we can add one without putting everything into elements.
|
void |
testLazyCloneInitializePutAll()
Check that we are not initialized first off.
|
void |
testLazyInitialize()
Check that we are not initialized first off.
|
void |
testLazyInitializePutAll()
Check that we are not initialized first off.
|
void |
testLazyInitializeRemove()
Check the remove.
|
void |
testLazySort()
Check that we do not change the orginal list ( maybe used by another thread somewhere else)
|
void |
testLazySortClone()
Check that we do not change the orginal list ( maybe used by another thread somewhere else)
|
void |
testMarkSmallAsSorted()
if it only has < 2 rows then it's is sorted.
|
void |
testPutAllCheckSorted()
Check that we detect that the rows are sorted.
|
void |
testPutAllReplace()
check that we replace one va
|
void |
testPutGetSortedArrayGetKeyArray()
put, getSortedKeyArray, put
|
void |
testPutMultipleThenTwoPuts()
put multiple.
|
void |
testPutMultiWithDuplicates()
check that we can put in duplicates and they get sorted out
|
void |
testPutNullPutValue()
put NULL and then put value
|
void |
testPutReturnValue()
check the return value of the put.
|
void |
testPutThenPutMultiple()
put and then put multiple.
|
void |
testPutThenPutMultipleDiff()
put and then put multiple with different values
|
void |
testReplace()
check that we replace one va
|
void |
testSecondGet()
second get with first put
|
void |
testShared()
don't give out shared arrays.
|
void |
testShared2()
don't give out shared arrays.
|
void |
testShared3()
don't give out shared arrays.
|
void |
testShouldBeAbleToAddOne()
check that we can add one without putting everything into elements.
|
void |
testShouldBeAbleToAddOneClone()
check that we can add one without putting everything into elements.
|
void |
testShouldSortIfNeededContains()
check that a number of calls to contains will sort.
|
void |
testShouldSortIfNeededGet()
check that a number of calls to get will sort.
|
void |
testShouldSortIfNeededRemove()
check that a number of calls to get will sort.
|
void |
testTwoPutAll()
Check that we are not initialized first off.
|
void |
testVeryLargeUnionUnSorted()
check we can handle very large sets.
|
public TestHashLongMap(java.lang.String testName)
testName - The name of the test unitpublic static void main(java.lang.String[] args)
args - The command line argumentspublic static Test suite()
public void runBare()
throws java.lang.Throwable
java.lang.Throwable - if any exception is thrownpublic void testGetSortKey()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testInitContainsKey()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testInitContainsKey2()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShared3()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShared()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShared2()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutMultiWithDuplicates()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutReturnValue()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testReplace()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutAllReplace()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutNullPutValue()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutGetSortedArrayGetKeyArray()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutThenPutMultiple()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutMultipleThenTwoPuts()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutThenPutMultipleDiff()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testFirstGet()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testSecondGet()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testGetKeyArrayOverflowWithUnkownSort()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testGetOverflow()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testClearOverflow()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLargeSmallPutAll()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyAddIsSorted()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyAddIsSorted2()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyBrief()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShouldBeAbleToAddOne()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShouldBeAbleToAddOneClone()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testAddAndRemoveOneWithoutInitialize()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testAddAndRemoveOneWithoutInitializeClone()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShouldSortIfNeededContains()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShouldSortIfNeededGet()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testMarkSmallAsSorted()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testShouldSortIfNeededRemove()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazySort()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazySortClone()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyInitializeRemove()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testVeryLargeUnionUnSorted()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyInitialize()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testPutAllCheckSorted()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testTwoPutAll()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyInitializePutAll()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testLazyCloneInitializePutAll()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testIsSorted()
throws java.lang.Exception
java.lang.Exception - a serious problempublic void testKeySortedArray()
throws java.lang.Exception
java.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.