@Test @DisplayName("state both dispatched and handled commands as supported") void supportDispatchedAndHandled() { registry.register(new CreateProjectHandler()); registry.register(new AddTaskDispatcher()); assertSupported(CmdBusCreateProject.class, CmdBusAddTask.class); }
@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);  }