Class CollectionOnlyTest
java.lang.Object
org.soliscode.test.OptionalMethodSupport
org.soliscode.test.AbstractTest
org.soliscode.test.interfaces.CollectionOnlyTest
- All Implemented Interfaces:
AddAllContract<Integer,
,CollectionOnly<Integer>> AddContract<Integer,
,CollectionOnly<Integer>> ClearContract<Integer,
,CollectionOnly<Integer>> CollectionContract<Integer,
,CollectionOnly<Integer>> ContainsAllContract<Integer,
,CollectionOnly<Integer>> ContainsContract<Integer,
,CollectionOnly<Integer>> IsEmptyContract<Integer,
,CollectionOnly<Integer>> RemoveAllContract<Integer,
,CollectionOnly<Integer>> RemoveContract<Integer,
,CollectionOnly<Integer>> RemoveIfContract<Integer,
,CollectionOnly<Integer>> RetainAllContract<Integer,
,CollectionOnly<Integer>> SizeContract<Integer,
,CollectionOnly<Integer>> StreamContract<Integer,
,CollectionOnly<Integer>> ToArrayContract<Integer,
,CollectionOnly<Integer>> CollectionContractConfig
,ForEachContract<Integer,
,CollectionOnly<Integer>> IterableContract<Integer,
,CollectionOnly<Integer>> IteratorContract<Integer,
,CollectionOnly<Integer>> SpliteratorContract<Integer,
,CollectionOnly<Integer>> EqualsContract<CollectionOnly<Integer>>
,HashCodeContract<CollectionOnly<Integer>>
,ObjectContract<CollectionOnly<Integer>>
,ToStringContract<CollectionOnly<Integer>>
,CollectionContractSupport<Integer,
,CollectionOnly<Integer>> CollectionProviderSupport<Integer,
,CollectionOnly<Integer>> ContractSupport<CollectionOnly<Integer>>
,ElementProviderSupport<Integer>
,ProviderSupport<CollectionOnly<Integer>>
,WithIntegerElement
,SupportedMethods
@DisplayName("Tests for the CollectionOnly class")
public class CollectionOnlyTest
extends AbstractTest
implements CollectionContract<Integer,CollectionOnly<Integer>>, WithIntegerElement
Tests for the
CollectionOnly
class.- Since:
- 1.0
- Author:
- evanbergstrom
- See Also:
-
Field Summary
Fields inherited from interface org.soliscode.test.contract.support.CollectionContractSupport
DEFAULT_SIZE
Fields inherited from interface org.soliscode.test.contract.iterable.SpliteratorContract
CHARACTERISTIC_VALUES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CollectionProvider
<Integer, CollectionOnly<Integer>> provider()
void
Test thatCollectionOnly
only implements theCollection
interface.Methods inherited from class org.soliscode.test.OptionalMethodSupport
doesNotSupportMethod, supportsMethod, unsupportedMethods
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.soliscode.test.contract.collection.AddAllContract
testAddAllToContainer, testAddAllWithDuplicateValue, testAddAllWithNullValue
Methods inherited from interface org.soliscode.test.contract.collection.AddContract
addWithDuplicateValue, testAdd, testAddWithNullValue
Methods inherited from interface org.soliscode.test.contract.collection.ClearContract
testClearOnCollectionWithElements, testClearOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.CollectionContract
doesNotSupportMethod, doesNotSupportModification, supportsMethod
Methods inherited from interface org.soliscode.test.contract.CollectionContractConfig
permitDuplicates, permitIncompatibleTypes, permitNulls
Methods inherited from interface org.soliscode.test.contract.collection.ContainsAllContract
testContainsAllOnCollectionWithElements, testContainsAllOnCollectionWithNulls, testContainsAllOnEmptyCollection, testContainsAllWithIncompatibleType
Methods inherited from interface org.soliscode.test.contract.collection.ContainsContract
testContainsOnCollectionWithElements, testContainsOnCollectionWithNulls, testContainsOnEmptyCollection, testContainsWithIncompatibleType
Methods inherited from interface org.soliscode.test.contract.object.EqualsContract
testEqualsForNullValue, testEqualsIsConsistent, testEqualsIsReflexive, testEqualsIsSymmetric, testEqualsIsTransitive
Methods inherited from interface org.soliscode.test.contract.iterable.ForEachContract
testForEachForEmptyCollection, testForEachWithNullAction, testForeEachOverCollectionWithElements
Methods inherited from interface org.soliscode.test.contract.object.HashCodeContract
testHashCodeDistribution, testHashCodeIsStable, testHashCodeWithEqualValues, testHashDifferentValues
Methods inherited from interface org.soliscode.test.contract.collection.IsEmptyContract
testIsEmptyForEmptyCollection, testIsEmptyForNonEmptyCollection
Methods inherited from interface org.soliscode.test.contract.iterable.IteratorContract
testForEachRemainingForNullAction, testForEachRemainingOverEntireCollection, testForEachRemainingOverPartialCollection, testIteratorOverCollectionWithElements, testIteratorOverEmptyCollection, testIteratorRemove, testIteratorRemoveThrowsOnIllegalState
Methods inherited from interface org.soliscode.test.contract.collection.RemoveAllContract
testRemoveAllOnContainerWithElements, testRemoveAllOnEmptyContainer, testRemoveAllOnIncompatibleObject, testRemoveAllOnNullElement, testRemoveAllThrowsOnNullCollection
Methods inherited from interface org.soliscode.test.contract.collection.RemoveContract
testRemoveOnContainerWithElements, testRemoveOnContainerWithNulls, testRemoveOnEmptyContainer, testRemoveOnIncompatibleObject
Methods inherited from interface org.soliscode.test.contract.collection.RemoveIfContract
testRemoveIfOnContainerWithElements, testRemoveIfOnEmptyContainer, testRemoveIfThrowsOnANullFilter
Methods inherited from interface org.soliscode.test.contract.collection.RetainAllContract
testRetainAllOnContainerWithElements, testRetainAllOnEmptyContainer, testRetainAllOnIncompatibleObject, testRetainAllThrowsOnNullCollection
Methods inherited from interface org.soliscode.test.contract.collection.SizeContract
testSizeOnCollectionWithElements, testSizeOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.iterable.SpliteratorContract
testHasCharacteristic, testSpliteratorEstimateSizeOnACollectionWithElements, testSpliteratorEstimateSizeOnAnEmptyCollection, testSpliteratorForEachRemainingOnACollectionWithElements, testSpliteratorForEachRemainingOnAnEmptyCollection, testSpliteratorGetExactSizeIfKnownOnACollectionWithElements, testSpliteratorGetExactSizeIfKnownOnAnEmptyCollection, testSpliteratorTryAdvanceOnACollectionWithElements, testSpliteratorTryAdvanceOnAnEmptyCollection, testSpliteratorTrySplitOnACollectionWithElements, testSpliteratorTrySplitOnAnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.StreamContract
testParallelStreamForCollectionWithElements, testParallelStreamForEmptyCollection, testStreamForCollectionWithElements, testStreamForEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.ToArrayContract
testToArray, testToArrayIsSafe, testToArrayOnEmptyCollection, testToArrayStore, testToArrayStoreOnEmptyCollection, testToArrayStoreThrowsOnNullArray
Methods inherited from interface org.soliscode.test.contract.object.ToStringContract
testToStringForDifferentValues, testToStringForEqualValues, testToStringIsConsistent, testToStringOverridden
Methods inherited from interface org.soliscode.test.contract.support.WithIntegerElement
elementProvider
-
Constructor Details
-
CollectionOnlyTest
public CollectionOnlyTest()
-
-
Method Details
-
provider
- Specified by:
provider
in interfaceCollectionProviderSupport<Integer,
CollectionOnly<Integer>> - Specified by:
provider
in interfaceProviderSupport<CollectionOnly<Integer>>
-
testCollectionIsOnlyInterface
@Test @DisplayName("CollectionOnly only implements the Collection` interface.") public void testCollectionIsOnlyInterface()Test thatCollectionOnly
only implements theCollection
interface.
-