public class DerivedKeyHashMapTest extends TestClass
TestClass.EqualityTester| Constructor and Description |
|---|
DerivedKeyHashMapTest() |
_suite, addMetadata, afterTestClass, afterTestMethod, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertCausesException, assertCollectionEquals, assertCollectionEquals, assertIterableEquals, assertIterableEquals, assertIterableEqualsIgnoreOrder, assertListEquals, assertListEquals, assertMatchRegex, assertSetsEqual, assertZero, assertZero, beforeTestClass, beforeTestMethod, createClassMetadata, createDefaultEnvironment, createMetadata, createMetadata, createMethodMetadata, createTestClass, doRunTest, getClassName, getExecutionManager, getFullClassNameInternal, getMetadata, getName, getNumberOfInstancesOfTestClassCreated, getPackageName, getTotalNumTestMethods, getType, getTypeName, initInternalData, initMetadata, isGosuTest, isMetaAnnotation, isMetaAnnotationInfo, reallyRun, reallyRunBare, run, runBare, runTest, setExecutionManager, setGosuTest, setName, setUp, tearDown, toStringassertEquals, 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, formatpublic void testSizeReturnsZeroForEmptyMap()
public void testSizeReturnsSizeForMapWithKeys()
public void testIsEmptyReturnsTrueForEmptyMap()
public void testIsEmptyReturnsFalseForNonEmptyMap()
public void testContainsKeyThrowsNullPointerExceptionForNullKey()
public void testContainsKeyReturnsFalseForEmptyMap()
public void testContainsKeyReturnsFalseForKeyNotInMap()
public void testContainsKeyReturnsTrueForKeyInMap()
public void testContainsKeyReliesOnOverridenKeyMatchingFunction()
public void testContainsValueThrowsNullPointerExceptionForNullValue()
public void testContainsValueReturnsFalseForEmptyMap()
public void testContainsValueReturnsFalseForMapWithoutThatValue()
public void testContainsValueReturnsFalseForArgumentThatMatchesAKeyButNotAValue()
public void testContainsValueReturnsTrueForArgumentThatMatchesAValue()
public void testGetThrowsNullPointerExceptionForNullKey()
public void testGetReturnsNullForEmptyMap()
public void testGetReturnsNullForKeyNotInMap()
public void testGetReturnsValueForKeyInMap()
public void testGetReliesOnOverriddenKeyMatchingFunction()
public void testPutWithNullKeyThrowsIllegalArgumentException()
public void testPutWithNullValueThrowsIllegalArgumentException()
public void testPutWithKeyThatDoesntMatchValueThrowsIllegalArgumentException()
public void testPutWithNewKeyAddsKeyToMap()
public void testPutWithExistingKeyOverridesExistingValueInMap()
public void testRemoveDoesNothingOnEmptyMap()
public void testRemoveDoesNothingWithNullKey()
public void testRemoveDoesNothingIfMapDoesNotContainKey()
public void testRemoveRemovesKeyAndValue()
public void testRemoveReliesOnKeyMatchingRatherThanValue()
public void testRemoveAndThenReAddWorksAsExpected()
public void testPutAllWithNullArgumentThrowsIllegalArgumentException()
public void testPutAllWithEmptyMapHasNoAffectOnExistingKeys()
public void testPutAllOnEmptyMapAddsKeys()
public void testPutAllWithOnlyNewKeysAddsKeys()
public void testPutAllWithOnlyExistingKeysUpdatesKeys()
public void testPutAllWithSomeNewAndSomeExistingKeysBothAddsAndUpdates()
public void testPutAllWithNullKeyValueThrowsIllegalArgumentExceptionBeforeDoingAnyUpdates()
public void testPutAllWithNullValueThrowsIllegalArgumentExceptionBeforeDoingAnyUpdates()
public void testPutAllWithKeyThatDoesntMatchValueThrowsIllegalArgumentExceptionBeforeDoingAnyUpdates()
public void testClearOnEmptyMap()
public void testClearOnMapRemovesAllEntries()
public void testKeySetAddThrowsUnsupportedOperationException()
public void testKeySetAddAllThrowsUnsupportedOperationException()
public void testKeySetClearOnEmptyMapDoesNothing()
public void testKeySetClearClearsUnderlyingMap()
public void testKeySetContainsReturnsFalseForEmptyMap()
public void testKeySetContainsReturnsFalseForKeyNotInMap()
public void testKeySetContainsReturnsTrueForKeyInMap()
public void testKeySetContainsReliesOnOverriddenKeyMatching()
public void testKeySetContainsAllReturnsTrueForEmptyCollectionAndEmptyMap()
public void testKeySetContainsAllReturnsTrueForEmptyCollectionAndNonEmptyMap()
public void testKeySetContainsAllThrowsNullPointerExceptionForNullArgument()
public void testKeySetContainsAllThrowsNullPointerExceptionForNullElementOfCollectionArgument()
public void testKeySetContainsAllReturnsFalseForCollectionWithKeysAndEmptyMap()
public void testKeySetContainsAllReturnsFalseForCollectionWithNoMatchingKeysInMap()
public void testKeySetContainsAllReturnsFalseIfOnlySomeKeysAreInTheMap()
public void testKeySetContainsAllReturnsTrueIfAllKeysAreInTheMap()
public void testKeySetIsEmptyReturnsTrueIfMapIsEmpty()
public void testKeySetIsEmptyReturnsFalseIfMapHasKeys()
public void testKeySetIteratorOnEmptyMap()
public void testKeySetIteratorThrowsNoSuchElementExceptionIfAtEndOfIterator()
public void testKeySetIteratorOnMapWithKeys()
public void testKeySetIteratorRemove()
public void testKeySetIteratorRemoveThrowsIllegalStateExceptionIfNextHasNeverBeenCalled()
public void testKeySetIteratorRemoveThrowsIllegalStateExceptionIfCalledTwiceInARow()
public void testKeySetIteratorOnLargeMap()
public void testKeySetRemoveDoesNothingOnEmptyMap()
public void testKeySetRemoveDoesNothingWithNullKey()
public void testKeySetRemoveDoesNothingIfMapDoesNotContainKey()
public void testKeySetRemoveRemovesKeyAndValue()
public void testKeySetRemoveAllThrowsNPEIfArgIsNull()
public void testKeySetRemoveAllThrowsNPEBeforeModifyingTheSetIfAnyElementInArgIsNull()
public void testKeySetRemoveAllReturnsFalseAndDoesNothingToEmptyMap()
public void testKeySetRemoveAllRemovesAllMatchingKeys()
public void testKeySetRetainAllThrowsNPEIfArgIsNull()
public void testKeySetRetainAllThrowsNPEBeforeModifyingTheSetIfAnyElementInArgIsNull()
public void testKeySetRetainAllDoesNothingToEmptyMap()
public void testKeySetRetainAllDoesNothingIfAllKeysAreRetained()
public void testKeySetRetainAllRemovesNonRetainedKeysFromMap()
public void testKeySetSizeReturnsZeroForEmptyMap()
public void testKeySetSizeReturnsProperValueForMapWithValuesInIt()
public void testLotsOfAddsAndRemovesOnLargeMap()
public void testLotsOfAddsAndRemovesOnLargeMapViaKeySetIterator()
Copyright © 2015. All rights reserved.