Package | Description |
---|---|
org.axonframework.test |
Classes in support of testing Axon based applications.
|
Modifier and Type | Class and Description |
---|---|
class |
GivenWhenThenTestFixture<T extends EventSourcedAggregateRoot>
A test fixture that allows the execution of given-when-then style test cases.
|
Modifier and Type | Method and Description |
---|---|
static <T extends EventSourcedAggregateRoot> |
Fixtures.newGivenWhenThenFixture(Class<T> aggregateType)
Returns a new given-when-then style test fixture in configuration mode.
|
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerAggregateFactory(AggregateFactory<T> aggregateFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAggregateFactory(AggregateFactory<T> aggregateFactory)
Registers the given
aggregateFactory with the fixture. |
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerAnnotatedCommandHandler(Object annotatedCommandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAnnotatedCommandHandler(Object annotatedCommandHandler)
Registers an
annotatedCommandHandler with this fixture. |
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerCommandHandler(Class<?> payloadType,
CommandHandler commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(Class<?> payloadType,
CommandHandler commandHandler)
Registers a
commandHandler to handle commands of the given commandType with the
command bus used by this fixture. |
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerCommandHandler(String commandName,
CommandHandler commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(String commandName,
CommandHandler commandHandler)
Registers a
commandHandler to handle commands of the given commandType with the
command bus used by this fixture. |
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerInjectableResource(Object resource) |
FixtureConfiguration<T> |
FixtureConfiguration.registerInjectableResource(Object resource)
Registers a resource that is eligible for injection in handler method (e.g.
|
FixtureConfiguration<T> |
GivenWhenThenTestFixture.registerRepository(EventSourcingRepository<T> eventSourcingRepository) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepository(EventSourcingRepository<T> repository)
Registers an arbitrary event sourcing
repository with the fixture. |
Copyright © 2010-2014. All Rights Reserved.