class AggregateTestFixtureBuilder<T>
Builder for the DSL. Declares all methods that can be called in the context of the Aggregate FixtureConfiguration DSL
val fixture = AggregateTestFixture<StubAnnotatedAggregate>()
aggregateTestFixture
- takes in the FixtureConfiguration to build up
class AnyUnaryBuilder
Block type that allows building up lists of any items. For use only in DSL method blocks |
|
class ExpectsBuilder
Contains all valid methods for the AggregateTestFixtureBuilder.expect block |
|
class GivenBuilder<T>
Contains all valid methods for the AggregateTestFixtureBuilder.given block Builds up a TestExecutor |
|
data class RegisterBuilder<T>
Class that contains all methods that are valid for the AggregateTestFixtureBuilder.register block |
AggregateTestFixtureBuilder(aggregateTestFixture: FixtureConfiguration<T>)
Builder for the DSL. Declares all methods that can be called in the context of the Aggregate FixtureConfiguration DSL |
var reportIllegalStateChange: Boolean
Allows setting the fixture using FixtureConfiguration.setReportIllegalStateChange |
|
val resultValidator: ResultValidator
Used for retrieving the instance of the ResultValidator for usage outside the bounds of the DSL |
|
lateinit var testExecutor: TestExecutor
Used for retrieving the instance of the TestExecutor for usage outside the bounds of the DSL |
fun expect(block: ExpectsBuilder.() -> Unit): ExpectsBuilder
Takes a block for running all expectations against the ResultValidator |
|
fun given(block: GivenBuilder<T>.() -> Unit): TestExecutor
Takes a block to build up all the 'given' information for the FixtureConfiguration. Refer to GivenBuilder for all valid methods in this block. |
|
fun register(block: RegisterBuilder<T>.() -> Unit): RegisterBuilder<T>
Registration block for the FixtureConfiguration. Refer to RegisterBuilder for all valid methods in this block. |
|
fun whenever(block: () -> Any): ResultValidator
Takes a block for running a when situation against the FixtureConfiguration. |