@Test @DisplayName("accept empty process manager repository dispatcher") void acceptEmptyProcessManagerRepository() { NoCommandsDispatcherRepo pmRepo = new NoCommandsDispatcherRepo(); registry.register(DelegatingCommandDispatcher.of(pmRepo)); }
@Override public void register(CommandDispatcher dispatcher) { if (dispatcher instanceof DelegatingCommandDispatcher && dispatcher.messageClasses().isEmpty()) { return; } super.register(dispatcher); }
CommandDispatcherRegistry extends DispatcherRegistry<CommandClass, CommandEnvelope, CommandDispatcher> { @Override public void register(CommandDispatcher dispatcher) { if (dispatcher instanceof DelegatingCommandDispatcher && dispatcher.messageClasses().isEmpty()) { return; } super.register(dispatcher); } }
CommandDispatcherRegistry extends DispatcherRegistry<CommandClass, CommandEnvelope, CommandDispatcher> { @Override public void register(CommandDispatcher dispatcher) { if (dispatcher instanceof DelegatingCommandDispatcher && dispatcher.messageClasses().isEmpty()) { return; } super.register(dispatcher); }  }
CommandDispatcherRegistry extends DispatcherRegistry<CommandClass, CommandEnvelope, CommandDispatcher> { @Override public void register(CommandDispatcher dispatcher) { if (dispatcher instanceof DelegatingCommandDispatcher && dispatcher.messageClasses().isEmpty()) { return; } super.register(dispatcher); }  @Override void register(CommandDispatcher dispatcher); }
CommandDispatcherRegistry extends DispatcherRegistry<CommandClass, CommandEnvelope, CommandDispatcher> { @Override public void register(CommandDispatcher dispatcher) { if (dispatcher instanceof DelegatingCommandDispatcher && dispatcher.messageClasses().isEmpty()) { return; } super.register(dispatcher); }  @Override void register(CommandDispatcher dispatcher);  }