Search in sources :

Example 11 with CommandClass

use of io.spine.core.CommandClass in project core-java by SpineEventEngine.

the class CommandDispatcherRegistryShould method assertSupported.

@SafeVarargs
private final void assertSupported(Class<? extends Message>... cmdClasses) {
    final Set<CommandClass> supportedClasses = registry.getRegisteredMessageClasses();
    for (Class<? extends Message> clazz : cmdClasses) {
        final CommandClass cmdClass = CommandClass.of(clazz);
        assertTrue(supportedClasses.contains(cmdClass));
    }
}
Also used : CommandClass(io.spine.core.CommandClass)

Aggregations

CommandClass (io.spine.core.CommandClass)11 RejectionReactorMethod (io.spine.server.rejection.RejectionReactorMethod)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Sets (com.google.common.collect.Sets)1 SPI (io.spine.annotation.SPI)1 Event (io.spine.core.Event)1 EventClass (io.spine.core.EventClass)1 RejectionClass (io.spine.core.RejectionClass)1 BoundedContext (io.spine.server.BoundedContext)1 CommandHandlingClass (io.spine.server.command.CommandHandlingClass)1 CommandBus (io.spine.server.commandbus.CommandBus)1 ExternalMessageClass (io.spine.server.integration.ExternalMessageClass)1 Set (java.util.Set)1 Test (org.junit.Test)1