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));
}
}
Aggregations