Class TestableIterableOnlyTestContract
java.lang.Object
org.soliscode.test.OptionalMethodSupport
org.soliscode.test.AbstractTest
org.soliscode.test.collection.TestableIterableOnlyTestContract
- All Implemented Interfaces:
CollectionContractConfig
,ForEachContract<Integer,
,Iterable<Integer>> IterableContract<Integer,
,Iterable<Integer>> IteratorContract<Integer,
,Iterable<Integer>> SpliteratorContract<Integer,
,Iterable<Integer>> EqualsContract<Iterable<Integer>>
,HashCodeContract<Iterable<Integer>>
,ObjectContract<Iterable<Integer>>
,ToStringContract<Iterable<Integer>>
,CollectionContractSupport<Integer,
,Iterable<Integer>> CollectionProviderSupport<Integer,
,Iterable<Integer>> ContractSupport<Iterable<Integer>>
,ElementProviderSupport<Integer>
,ProviderSupport<Iterable<Integer>>
,WithIntegerElement
,SupportedMethods
@DisplayName("Tests for the IterableOnly class")
public class TestableIterableOnlyTestContract
extends AbstractTest
implements IterableContract<Integer,Iterable<Integer>>, WithIntegerElement
-
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
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
-
TestableIterableOnlyTestContract
public TestableIterableOnlyTestContract()
-
-
Method Details
-
provider
- Specified by:
provider
in interfaceCollectionProviderSupport<Integer,
Iterable<Integer>> - Specified by:
provider
in interfaceProviderSupport<Iterable<Integer>>
-
testOf0
@Test @DisplayName("Test that of with no parameters creates an empty iterable") public void testOf0() -
testOf1
@Test @DisplayName("Test that of with one parameters creates an iterable with one element") public void testOf1() -
testOf2
@Test @DisplayName("Test that of with two parameters creates an iterable with two elements") public void testOf2() -
testOf3
@Test @DisplayName("Test that of with three parameters creates an iterable with three elements") public void testOf3() -
testOf4
@Test @DisplayName("Test that of with four parameters creates an iterable with four elements") public void testOf4() -
testOfWithArray
@Test @DisplayName("Test that of works with an array of integer") public void testOfWithArray()
-