Search in sources :

Example 1 with SecretProjectRepository

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

the class BoundedContextTest method notExposeInvisibleAggregates.

@Test
@DisplayName("not expose invisible aggregates")
void notExposeInvisibleAggregates() {
    ModelTests.dropAllModels();
    context.register(new SecretProjectRepository());
    assertThat(context.internalAccess().findRepository(SecretProject.class)).isEmpty();
}
Also used : SecretProjectRepository(io.spine.server.bc.given.SecretProjectRepository) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) DisplayName(org.junit.jupiter.api.DisplayName)

Aggregations

SecretProjectRepository (io.spine.server.bc.given.SecretProjectRepository)1 DisplayName (org.junit.jupiter.api.DisplayName)1 Test (org.junit.jupiter.api.Test)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1