@GwtCompatible(emulated=true) public class MultisetIteratorTester<E> extends AbstractMultisetTester<E>
iterator().remove()
implementation of Multiset
works when
there are multiple occurrences of elements.AbstractContainerTester.ArrayWithDuplicate<E>
collection
container, samples
Constructor and Description |
---|
MultisetIteratorTester() |
Modifier and Type | Method and Description |
---|---|
static List<Method> |
getIteratorDuplicateInitializingMethods()
Returns
Method instances for the tests that assume multisets support duplicates so that
the test of Multisets.forSet() can suppress them. |
static Method |
getIteratorKnownOrderRemoveSupportedMethod()
Returns the
Method instance for the test that assumes the multiset iterator supports
remove() so that the test for Multisets.filter can suppress it. |
static Method |
getIteratorUnknownOrderRemoveSupportedMethod()
Returns the
Method instance for the test that assumes the multiset iterator supports
remove() so that the test for Multisets.filter can suppress it. |
void |
testIteratorKnownOrder() |
void |
testIteratorUnknownOrder() |
void |
testRemovingIteratorKnownOrder() |
void |
testRemovingIteratorUnknownOrder() |
getMultiset, initThreeCopies
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 testRemovingIteratorKnownOrder()
public void testRemovingIteratorUnknownOrder()
public void testIteratorKnownOrder()
public void testIteratorUnknownOrder()
@GwtIncompatible(value="reflection") public static List<Method> getIteratorDuplicateInitializingMethods()
Method
instances for the tests that assume multisets support duplicates so that
the test of Multisets.forSet()
can suppress them.@GwtIncompatible(value="reflection") public static Method getIteratorKnownOrderRemoveSupportedMethod()
Method
instance for the test that assumes the multiset iterator supports
remove()
so that the test for Multisets.filter
can suppress it.Copyright © 2010-2013. All Rights Reserved.