Package | Description |
---|---|
org.axonframework.test.aggregate |
Modifier and Type | Class and Description |
---|---|
class |
AggregateTestFixture<T>
A test fixture that allows the execution of given-when-then style test cases.
|
Modifier and Type | Method and Description |
---|---|
TestExecutor<T> |
TestExecutor.andGiven(List<?> domainEvents)
Configures the given
domainEvents as the "given" events. |
TestExecutor<T> |
AggregateTestFixture.andGiven(List<?> domainEvents) |
TestExecutor<T> |
TestExecutor.andGiven(Object... domainEvents)
Configures the given
domainEvents as the "given" events. |
TestExecutor<T> |
AggregateTestFixture.andGiven(Object... domainEvents) |
TestExecutor<T> |
TestExecutor.andGivenCommands(List<?> commands)
Configures the given
commands as the command that will provide the "given" events. |
TestExecutor<T> |
AggregateTestFixture.andGivenCommands(List<?> commands) |
TestExecutor<T> |
TestExecutor.andGivenCommands(Object... commands)
Configures the given
commands as the command that will provide the "given" events. |
TestExecutor<T> |
AggregateTestFixture.andGivenCommands(Object... commands) |
TestExecutor<T> |
TestExecutor.andGivenCurrentTime(Instant currentTime)
Use this method to indicate a specific moment as the initial current time "known" by the fixture at the start
of the given state.
|
TestExecutor<T> |
AggregateTestFixture.andGivenCurrentTime(Instant currentTime) |
TestExecutor<T> |
FixtureConfiguration.given(List<?> domainEvents)
Configures the given
domainEvents as the "given" events. |
TestExecutor<T> |
AggregateTestFixture.given(List<?> domainEvents) |
TestExecutor<T> |
FixtureConfiguration.given(Object... domainEvents)
Configures the given
domainEvents as the "given" events. |
TestExecutor<T> |
AggregateTestFixture.given(Object... domainEvents) |
TestExecutor<T> |
FixtureConfiguration.givenCommands(List<?> commands)
Configures the given
commands as the command that will provide the "given" events. |
TestExecutor<T> |
AggregateTestFixture.givenCommands(List<?> commands) |
TestExecutor<T> |
FixtureConfiguration.givenCommands(Object... commands)
Configures the given
commands as the command that will provide the "given" events. |
TestExecutor<T> |
AggregateTestFixture.givenCommands(Object... commands) |
TestExecutor<T> |
FixtureConfiguration.givenNoPriorActivity()
Indicates that no relevant activity has occurred in the past.
|
TestExecutor<T> |
AggregateTestFixture.givenNoPriorActivity() |
TestExecutor<T> |
FixtureConfiguration.givenState(Supplier<T> aggregateState)
Sets the aggregate instance as supplied by given
aggregateState as the initial state for a test case. |
TestExecutor<T> |
AggregateTestFixture.givenState(Supplier<T> aggregate) |
Copyright © 2010–2018. All rights reserved.