junit.framework.Test@GwtCompatible(emulated=true) 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 | Description |
|---|---|
MultisetRemoveTester() |
| Modifier and Type | Method | 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() |
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, setUpgetMultiset, initThreeCopiesgetName, 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 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()
@GwtIncompatible 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.