Class MultisetNavigationTester<E>
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.google.common.collect.testing.AbstractTester<OneSizeTestContainerGenerator<Collection<E>, E>>
com.google.common.collect.testing.AbstractContainerTester<Collection<E>, E>
com.google.common.collect.testing.AbstractCollectionTester<E>
com.google.common.collect.testing.google.AbstractMultisetTester<E>
com.google.common.collect.testing.google.MultisetNavigationTester<E>
- All Implemented Interfaces:
junit.framework.Test
Tester for navigation of SortedMultisets.
- Author:
- Louis Wasserman
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractContainerTester
AbstractContainerTester.ArrayWithDuplicate<E>Modifier and TypeClassDescriptionstatic final classAbstractContainerTester.ArrayWithDuplicate<E extends @Nullable Object> -
Field Summary
Fields inherited from class AbstractCollectionTester
collectionFields inherited from class AbstractContainerTester
container, samples -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestEmptyRangeSubMultiset(com.google.common.collect.SortedMultiset<E> multiset) voidtestEmptyRangeSubMultisetSupportingAdd(com.google.common.collect.SortedMultiset<E> multiset) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestLast()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class AbstractMultisetTester
getMultiset, initThreeCopiesModifier and TypeMethodDescriptionprotected final com.google.common.collect.Multiset<E> protected voidMethods inherited from class AbstractCollectionTester
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainerModifier and TypeMethodDescriptionprotected Collection<E> protected E[]protected voidEquivalent toexpectMissing(null)except that the call tocontains(null)is permitted to throw aNullPointerException.protected voidprotected voidprotected Collection<E> resetContainer(Collection<E> newContents) Replaces the existing container under test with a new container.Methods inherited from class AbstractContainerTester
createArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, e0, e1, e2, e3, e4, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainerModifier and TypeMethodDescriptionprotected AbstractContainerTester.ArrayWithDuplicate<E> protected MinimalCollection<E> protected E[]protected E[]protected final Ee0()protected final Ee1()protected final Ee2()protected final Ee3()protected final Ee4()protected MinimalCollection<E> protected final voidexpectAdded(int index, E... elements) protected final voidexpectAdded(int index, Collection<E> elements) protected final voidexpectAdded(E... elements) Asserts that the collection under test contains exactly the elements it was initialized with plus the given elements, according toAbstractContainerTester.expectContents(java.util.Collection).protected final voidexpectContents(E... elements) protected voidexpectContents(Collection<E> expected) Asserts that the collection under test contains exactly the given elements, respecting cardinality but not order.protected voidexpectMissing(E... elements) protected voidprotected intprotected intReturns the sample elements as ordered byTestContainerGenerator.order(List).protected Collection<E> protected Collection<E> getSampleElements(int howMany) protected Collection<E> Replaces the existing container under test with a new container created by the subject generator.Methods inherited from class AbstractTester
assertNull, getName, getSubjectGenerator, getTestMethodName, init, init, tearDownModifier and TypeMethodDescriptionstatic voidassertNull(String message, @Nullable Object object) Asserts that the given object is non-null, with a better failure message thanTestCase.assertNull(String, Object).getName()final StringReturns the name of the test method invoked by this test instance.final voidinit(OneSizeTestContainerGenerator<Collection<E>, E> subjectGenerator, String suiteName) final voidinit(OneSizeTestContainerGenerator<Collection<E>, E> subjectGenerator, String suiteName, @Nullable Runnable setUp, @Nullable Runnable tearDown) voidtearDown()Methods inherited from class junit.framework.TestCase
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, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, run, run, runBare, runTest, setName, toString
-
Constructor Details
-
MultisetNavigationTester
public MultisetNavigationTester()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractContainerTester<Collection<E>, E>- Throws:
Exception
-
testEmptyMultisetFirst
public void testEmptyMultisetFirst() -
testEmptyMultisetPollFirst
public void testEmptyMultisetPollFirst() -
testEmptyMultisetNearby
public void testEmptyMultisetNearby() -
testEmptyMultisetLast
public void testEmptyMultisetLast() -
testEmptyMultisetPollLast
public void testEmptyMultisetPollLast() -
testSingletonMultisetFirst
public void testSingletonMultisetFirst() -
testSingletonMultisetPollFirst
public void testSingletonMultisetPollFirst() -
testSingletonMultisetNearby
public void testSingletonMultisetNearby() -
testSingletonMultisetLast
public void testSingletonMultisetLast() -
testSingletonMultisetPollLast
public void testSingletonMultisetPollLast() -
testFirst
public void testFirst() -
testPollFirst
public void testPollFirst() -
testPollFirstUnsupported
public void testPollFirstUnsupported() -
testLower
public void testLower() -
testFloor
public void testFloor() -
testCeiling
public void testCeiling() -
testHigher
public void testHigher() -
testLast
public void testLast() -
testPollLast
public void testPollLast() -
testPollLastUnsupported
public void testPollLastUnsupported() -
testAddOutOfTailBoundsOne
public void testAddOutOfTailBoundsOne() -
testAddOutOfTailBoundsSeveral
public void testAddOutOfTailBoundsSeveral() -
testAddOutOfHeadBoundsOne
public void testAddOutOfHeadBoundsOne() -
testAddOutOfHeadBoundsSeveral
public void testAddOutOfHeadBoundsSeveral() -
testRemoveOutOfTailBoundsOne
public void testRemoveOutOfTailBoundsOne() -
testRemoveOutOfTailBoundsSeveral
public void testRemoveOutOfTailBoundsSeveral() -
testRemoveOutOfHeadBoundsOne
public void testRemoveOutOfHeadBoundsOne() -
testRemoveOutOfHeadBoundsSeveral
public void testRemoveOutOfHeadBoundsSeveral() -
testSetCountOutOfTailBoundsOne
public void testSetCountOutOfTailBoundsOne() -
testSetCountOutOfTailBoundsSeveral
public void testSetCountOutOfTailBoundsSeveral() -
testSetCountOutOfHeadBoundsOne
public void testSetCountOutOfHeadBoundsOne() -
testSetCountOutOfHeadBoundsSeveral
public void testSetCountOutOfHeadBoundsSeveral() -
testAddWithConflictingBounds
public void testAddWithConflictingBounds() -
testConflictingBounds
public void testConflictingBounds() -
testEmptyRangeSubMultiset
-
testEmptyRangeSubMultisetSupportingAdd
public void testEmptyRangeSubMultisetSupportingAdd(com.google.common.collect.SortedMultiset<E> multiset) -
testTailClosedEntrySet
public void testTailClosedEntrySet() -
testTailClosedSize
public void testTailClosedSize() -
testTailClosedDistinctElements
public void testTailClosedDistinctElements() -
testTailOpenEntrySet
public void testTailOpenEntrySet() -
testTailOpenSize
public void testTailOpenSize() -
testTailOpenDistinctElements
public void testTailOpenDistinctElements() -
testHeadClosedEntrySet
public void testHeadClosedEntrySet() -
testHeadClosedSize
public void testHeadClosedSize() -
testHeadClosedDistinctElements
public void testHeadClosedDistinctElements() -
testHeadOpenEntrySet
public void testHeadOpenEntrySet() -
testHeadOpenSize
public void testHeadOpenSize() -
testHeadOpenDistinctElements
public void testHeadOpenDistinctElements() -
testClearTailOpen
public void testClearTailOpen() -
testClearTailOpenEntrySet
public void testClearTailOpenEntrySet() -
testClearTailClosed
public void testClearTailClosed() -
testClearTailClosedEntrySet
public void testClearTailClosedEntrySet() -
testClearHeadOpen
public void testClearHeadOpen() -
testClearHeadOpenEntrySet
public void testClearHeadOpenEntrySet() -
testClearHeadClosed
public void testClearHeadClosed() -
testClearHeadClosedEntrySet
public void testClearHeadClosedEntrySet()
-