Search in sources :

Example 1 with TaskDescriptionPart

use of io.spine.server.aggregate.given.AggregatePartTestEnv.TaskDescriptionPart in project core-java by SpineEventEngine.

the class AggregatePartShould method setUp.

@Before
public void setUp() {
    ModelTests.clearModel();
    boundedContext = BoundedContext.newBuilder().build();
    root = new AnAggregateRoot(boundedContext, newUuid());
    taskPart = new TaskPart(root);
    prepareAggregatePart();
    taskDescriptionPart = new TaskDescriptionPart(root);
    taskRepository = new TaskRepository();
    final TaskDescriptionRepository taskDescriptionRepository = new TaskDescriptionRepository();
    boundedContext.register(taskRepository);
    boundedContext.register(taskDescriptionRepository);
}
Also used : AnAggregateRoot(io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot) TaskDescriptionPart(io.spine.server.aggregate.given.AggregatePartTestEnv.TaskDescriptionPart) TaskDescriptionRepository(io.spine.server.aggregate.given.AggregatePartTestEnv.TaskDescriptionRepository) TaskRepository(io.spine.server.aggregate.given.AggregatePartTestEnv.TaskRepository) TaskPart(io.spine.server.aggregate.given.AggregatePartTestEnv.TaskPart) Before(org.junit.Before)

Aggregations

AnAggregateRoot (io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot)1 TaskDescriptionPart (io.spine.server.aggregate.given.AggregatePartTestEnv.TaskDescriptionPart)1 TaskDescriptionRepository (io.spine.server.aggregate.given.AggregatePartTestEnv.TaskDescriptionRepository)1 TaskPart (io.spine.server.aggregate.given.AggregatePartTestEnv.TaskPart)1 TaskRepository (io.spine.server.aggregate.given.AggregatePartTestEnv.TaskRepository)1 Before (org.junit.Before)1