@Test void testAnnotatedCollectionFieldMustContainGenericParameterWhenTypeIsNotExplicitlyDefined( @Mock Repository<CollectionFieldWithoutGenerics> mockRepo) { AggregateAnnotationCommandHandler.Builder<CollectionFieldWithoutGenerics> repoBuilder = AggregateAnnotationCommandHandler.<CollectionFieldWithoutGenerics>builder() .aggregateType(CollectionFieldWithoutGenerics.class) .repository(mockRepo); assertThrows(AxonConfigurationException.class, repoBuilder::build); }
public static <T> Builder<T> builder() { return new Builder<>(); }
AggregateAnnotationCommandHandler implements CommandMessageHandler { public static <T> Builder<T> builder() { return new Builder<>(); } }
AggregateAnnotationCommandHandler implements CommandMessageHandler { public static <T> Builder<T> builder() { return new Builder<>(); } protected  AggregateAnnotationCommandHandler(Builder<T> builder); }
AggregateAnnotationCommandHandler implements CommandMessageHandler { public static <T> Builder<T> builder() { return new Builder<>(); } 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 { public static <T> Builder<T> builder() { return new Builder<>(); } 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();  }