Search in sources :

Example 1 with SecretProjectRepository

use of io.spine.server.bc.given.BoundedContextTestEnv.SecretProjectRepository in project core-java by SpineEventEngine.

the class BoundedContextShould method do_not_expose_invisible_aggregate.

@Test
public void do_not_expose_invisible_aggregate() {
    ModelTests.clearModel();
    boundedContext.register(new SecretProjectRepository());
    assertFalse(boundedContext.findRepository(SecretProject.class).isPresent());
}
Also used : SecretProjectRepository(io.spine.server.bc.given.BoundedContextTestEnv.SecretProjectRepository) Test(org.junit.Test)

Aggregations

SecretProjectRepository (io.spine.server.bc.given.BoundedContextTestEnv.SecretProjectRepository)1 Test (org.junit.Test)1