@GwtCompatible(emulated=true) public class SetHashCodeTester<E> extends AbstractSetTester<E>
Set.hashCode()
.AbstractContainerTester.ArrayWithDuplicate<E>
collection
container, samples
Constructor and Description |
---|
SetHashCodeTester() |
Modifier and Type | Method and Description |
---|---|
static Method[] |
getHashCodeMethods()
Returns the
Method instances for the test methods in this class
which call hashCode() on the set values so that set tests on
unhashable objects can suppress it with
FeatureSpecificTestSuiteBuilder.suppressing() . |
void |
testHashCode_containingNull() |
void |
testHashCode() |
getSet
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainer
createArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUp
getName, getSubjectGenerator, getTestMethodName, init, init, tearDown
countTestCases, createResult, run, run, runBare, runTest, setName, toString
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
public void testHashCode()
public void testHashCode_containingNull()
@GwtIncompatible(value="reflection") public static Method[] getHashCodeMethods()
Method
instances for the test methods in this class
which call hashCode()
on the set values so that set tests on
unhashable objects can suppress it with
FeatureSpecificTestSuiteBuilder.suppressing()
.Copyright © 2010-2014. All Rights Reserved.