Class IterableContractTest
java.lang.Object
org.soliscode.test.contract.ContractTest<Integer,BreakableIterable<Integer>>
org.soliscode.test.contract.IterableContractTest
@Disabled
@DisplayName("Tests for IterableContract class")
public class IterableContractTest
extends ContractTest<Integer,BreakableIterable<Integer>>
Tests for the IterableContract class.
- Since:
- 1.0
- Author:
- evanbergstrom
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Dynamically created instance ofIterableContract
that will run on instances ofBreakableIterator
with a specified break.class
Verifies that the tests c all pass when testing a working Iterable implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull IterableContractTest.DynamicBrokenIterableContract
createTest
(Break b) @NotNull Collection
<org.junit.jupiter.api.DynamicTest> Test factory for tests of the forEach() method that should fail for various breaks.Methods inherited from class org.soliscode.test.contract.ContractTest
failingTest
-
Constructor Details
-
IterableContractTest
public IterableContractTest()
-
-
Method Details
-
createTest
- Specified by:
createTest
in classContractTest<Integer,
BreakableIterable<Integer>>
-
dynamicTestsOfForEach
@TestFactory @NotNull public @NotNull Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsOfForEach()Test factory for tests of the forEach() method that should fail for various breaks.- Returns:
- a collection of dynamic tests of the forEach() method.
-