junit.framework.Test@GwtCompatible(emulated=true) public class SetHashCodeTester<E> extends AbstractSetTester<E>
Set.hashCode().AbstractContainerTester.ArrayWithDuplicate<E>collectioncontainer, samples| Constructor | Description |
|---|---|
SetHashCodeTester() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.reflect.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() |
|
void |
testHashCode_containingNull() |
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainercreateArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, e0, e1, e2, e3, e4, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUpgetSetgetName, getSubjectGenerator, getTestMethodName, init, init, tearDownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, run, run, runBare, runTest, setName, toStringpublic void testHashCode()
public void testHashCode_containingNull()
@GwtIncompatible public static java.lang.reflect.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().