@Test void testSupportedCommands() { Set<String> actual = testSubject.supportedCommandNames(); Set<String> expected = new HashSet<>(Arrays.asList( CreateCommand.class.getName(), CreateOrUpdateCommand.class.getName(), CreateFactoryMethodCommand.class.getName(), UpdateCommandWithAnnotatedMethod.class.getName(), FailingCreateCommand.class.getName(), UpdateCommandWithAnnotatedMethodAndVersion.class.getName(), UpdateCommandWithAnnotatedField.class.getName(), UpdateCommandWithAnnotatedFieldAndVersion.class.getName(), UpdateCommandWithAnnotatedFieldAndIntegerVersion.class.getName(), FailingUpdateCommand.class.getName(), UpdateNestedEntityStateCommand.class.getName(), UpdateEntityStateCommand.class.getName(), UpdateEntityFromCollectionStateCommand.class.getName(), UpdateEntityFromMapStateCommand.class.getName())); assertEquals(expected, actual); }
@Override public Set<String> supportedCommandNames() { return supportedCommandNames; }
AggregateAnnotationCommandHandler implements CommandMessageHandler { @Override public Set<String> supportedCommandNames() { return supportedCommandNames; } }
AggregateAnnotationCommandHandler implements CommandMessageHandler { @Override public Set<String> supportedCommandNames() { return supportedCommandNames; } protected  AggregateAnnotationCommandHandler(Builder<T> builder); }
AggregateAnnotationCommandHandler implements CommandMessageHandler { @Override public Set<String> supportedCommandNames() { return supportedCommandNames; } protected  AggregateAnnotationCommandHandler(Builder<T> builder); static Builder<T> builder(); Registration subscribe(CommandBus commandBus); @Override Object handle(CommandMessage<?> commandMessage); @Override boolean canHandle(CommandMessage<?> message); @Override Set<String> supportedCommandNames(); }
AggregateAnnotationCommandHandler implements CommandMessageHandler { @Override public Set<String> supportedCommandNames() { return supportedCommandNames; } protected  AggregateAnnotationCommandHandler(Builder<T> builder); static Builder<T> builder(); Registration subscribe(CommandBus commandBus); @Override Object handle(CommandMessage<?> commandMessage); @Override boolean canHandle(CommandMessage<?> message); @Override Set<String> supportedCommandNames();  }