Search in sources :

Example 1 with SensoryDeprivedProjectionRepository

use of io.spine.server.projection.given.ProjectionRepositoryTestEnv.SensoryDeprivedProjectionRepository in project core-java by SpineEventEngine.

the class ProjectionRepositoryShould method throw_exception_on_attempt_to_register_in_bc_with_no_messages_handled.

@Test(expected = IllegalStateException.class)
public void throw_exception_on_attempt_to_register_in_bc_with_no_messages_handled() {
    final SensoryDeprivedProjectionRepository repo = new SensoryDeprivedProjectionRepository();
    final BoundedContext boundedContext = BoundedContext.newBuilder().setMultitenant(false).build();
    repo.setBoundedContext(boundedContext);
    repo.onRegistered();
}
Also used : SensoryDeprivedProjectionRepository(io.spine.server.projection.given.ProjectionRepositoryTestEnv.SensoryDeprivedProjectionRepository) BoundedContext(io.spine.server.BoundedContext) Test(org.junit.Test)

Aggregations

BoundedContext (io.spine.server.BoundedContext)1 SensoryDeprivedProjectionRepository (io.spine.server.projection.given.ProjectionRepositoryTestEnv.SensoryDeprivedProjectionRepository)1 Test (org.junit.Test)1