public class MultisetRemoveTester<E> extends AbstractMultisetTester<E>
Multiset#remove, Multiset.removeAll, and Multiset.retainAll not
already covered by the corresponding Collection testers.AbstractContainerTester.ArrayWithDuplicate<E>collectioncontainer, samples| Constructor and Description |
|---|
MultisetRemoveTester() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.reflect.Method> |
getRemoveDuplicateInitializingMethods()
Returns
Method instances for the remove tests that assume multisets support duplicates
so that the test of Multisets.forSet() can suppress them. |
void |
testRemove_nullAbsent() |
void |
testRemove_nullForbidden() |
void |
testRemove_nullPresent() |
void |
testRemove_occurrences_0() |
void |
testRemove_occurrences_absent() |
void |
testRemove_occurrences_negative() |
void |
testRemove_occurrences_present() |
void |
testRemove_occurrences_unsupported_absent() |
void |
testRemove_occurrences_wrongType() |
void |
testRemove_some_occurrences_present() |
void |
testRemoveAllIgnoresCount() |
void |
testRemoveNegative() |
void |
testRemoveUnsupported() |
void |
testRemoveZeroNoOp() |
void |
testRetainAllIgnoresCount() |
getMultiset, initThreeCopiesactualContents, 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, setUpgetName, getSubjectGenerator, getTestMethodName, init, init, tearDownassertEquals, 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 testRemoveNegative()
public void testRemoveUnsupported()
public void testRemoveZeroNoOp()
public void testRemove_occurrences_present()
public void testRemove_some_occurrences_present()
public void testRemove_occurrences_absent()
public void testRemove_occurrences_unsupported_absent()
public void testRemove_occurrences_0()
public void testRemove_occurrences_negative()
public void testRemove_occurrences_wrongType()
public void testRemove_nullPresent()
public void testRemove_nullAbsent()
public void testRemove_nullForbidden()
public void testRemoveAllIgnoresCount()
public void testRetainAllIgnoresCount()
public static java.util.List<java.lang.reflect.Method> getRemoveDuplicateInitializingMethods()
Method instances for the remove tests that assume multisets support duplicates
so that the test of Multisets.forSet() can suppress them.