Search in sources :

Example 1 with AnAggregateRoot

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

the class AggregatePartClassShould method setUp.

@Before
public void setUp() {
    ModelTests.clearModel();
    final BoundedContext boundedContext = BoundedContext.newBuilder().build();
    root = new AnAggregateRoot(boundedContext, newUuid());
}
Also used : AnAggregateRoot(io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot) BoundedContext(io.spine.server.BoundedContext) Before(org.junit.Before)

Example 2 with AnAggregateRoot

use of io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot 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)2 Before (org.junit.Before)2 BoundedContext (io.spine.server.BoundedContext)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