Class IterableOnlyTest
java.lang.Object
org.soliscode.test.OptionalMethodSupport
org.soliscode.test.AbstractTest
org.soliscode.test.interfaces.IterableOnlyTest
- All Implemented Interfaces:
CollectionContractConfig
,ForEachContract<Integer,
,IterableOnly<Integer>> IterableContract<Integer,
,IterableOnly<Integer>> IteratorContract<Integer,
,IterableOnly<Integer>> SpliteratorContract<Integer,
,IterableOnly<Integer>> EqualsContract<IterableOnly<Integer>>
,HashCodeContract<IterableOnly<Integer>>
,ObjectContract<IterableOnly<Integer>>
,ToStringContract<IterableOnly<Integer>>
,CollectionContractSupport<Integer,
,IterableOnly<Integer>> CollectionProviderSupport<Integer,
,IterableOnly<Integer>> ContractSupport<IterableOnly<Integer>>
,ElementProviderSupport<Integer>
,ProviderSupport<IterableOnly<Integer>>
,WithIntegerElement
,SupportedMethods
@DisplayName("Tests for the IterableOnly class")
public class IterableOnlyTest
extends AbstractTest
implements IterableContract<Integer,IterableOnly<Integer>>, WithIntegerElement
Tests for the
IterableOnly
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, IterableOnly<Integer>> provider()
void
Test thatIterableOnly
only implements theIterable
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.CollectionContractConfig
permitDuplicates, permitIncompatibleTypes, permitNulls
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.iterable.IteratorContract
testForEachRemainingForNullAction, testForEachRemainingOverEntireCollection, testForEachRemainingOverPartialCollection, testIteratorOverCollectionWithElements, testIteratorOverEmptyCollection, testIteratorRemove, testIteratorRemoveThrowsOnIllegalState
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.SupportedMethods
supportsMethod
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
-
IterableOnlyTest
public IterableOnlyTest()
-
-
Method Details
-
provider
- Specified by:
provider
in interfaceCollectionProviderSupport<Integer,
IterableOnly<Integer>> - Specified by:
provider
in interfaceProviderSupport<IterableOnly<Integer>>
-
testIterableIsOnlyInterface
@Test @DisplayName("IterableOnly only implements the Iterable interface.") public void testIterableIsOnlyInterface()Test thatIterableOnly
only implements theIterable
interface.
-