Search in sources :

Example 1 with AnAggregateRoot

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

the class AggregateRootShould method pass_null_tolerance_test.

@Test
public void pass_null_tolerance_test() throws NoSuchMethodException {
    final Constructor<AnAggregateRoot> ctor = AnAggregateRoot.class.getDeclaredConstructor(BoundedContext.class, String.class);
    new NullPointerTester().setDefault(Constructor.class, ctor).setDefault(BoundedContext.class, boundedContext).testStaticMethods(AggregateRoot.class, NullPointerTester.Visibility.PACKAGE);
}
Also used : AnAggregateRoot(io.spine.server.aggregate.given.AggregateRootTestEnv.AnAggregateRoot) BoundedContext(io.spine.server.BoundedContext) NullPointerTester(com.google.common.testing.NullPointerTester) Test(org.junit.Test)

Aggregations

NullPointerTester (com.google.common.testing.NullPointerTester)1 BoundedContext (io.spine.server.BoundedContext)1 AnAggregateRoot (io.spine.server.aggregate.given.AggregateRootTestEnv.AnAggregateRoot)1 Test (org.junit.Test)1