@Test void testRetrieveAggregateFactoryFromRepositoryIfNotExplicitlyAvailable() { testSubject.setEventStore(null); reset(mockApplicationContext); when(mockApplicationContext.getBean(EventStore.class)).thenReturn(mockEventStore); when(mockApplicationContext.getBeansOfType(EventSourcingRepository.class)) .thenReturn(Collections.singletonMap("myRepository", EventSourcingRepository.builder(StubAggregate.class) .eventStore(mockEventStore) .repositoryProvider(mockRepositoryProvider) .build() )); testSnapshotCreatedNoTransaction(); }
public void setEventStore(EventStore eventStore) { this.eventStore = eventStore; }
SpringAggregateSnapshotterFactoryBean implements FactoryBean<SpringAggregateSnapshotter>, ApplicationContextAware { public void setEventStore(EventStore eventStore) { this.eventStore = eventStore; } }
SpringAggregateSnapshotterFactoryBean implements FactoryBean<SpringAggregateSnapshotter>, ApplicationContextAware { public void setEventStore(EventStore eventStore) { this.eventStore = eventStore; }  }
SpringAggregateSnapshotterFactoryBean implements FactoryBean<SpringAggregateSnapshotter>, ApplicationContextAware { public void setEventStore(EventStore eventStore) { this.eventStore = eventStore; }  @Override SpringAggregateSnapshotter getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton(); void setTransactionManager(PlatformTransactionManager transactionManager); void setTransactionDefinition(TransactionDefinition transactionDefinition); void setEventStore(EventStore eventStore); void setRepositoryProvider(RepositoryProvider repositoryProvider); void setHandlerDefinition(HandlerDefinition handlerDefinition); @Override void setApplicationContext(ApplicationContext applicationContext); void setExecutor(Executor executor); }
SpringAggregateSnapshotterFactoryBean implements FactoryBean<SpringAggregateSnapshotter>, ApplicationContextAware { public void setEventStore(EventStore eventStore) { this.eventStore = eventStore; }  @Override SpringAggregateSnapshotter getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton(); void setTransactionManager(PlatformTransactionManager transactionManager); void setTransactionDefinition(TransactionDefinition transactionDefinition); void setEventStore(EventStore eventStore); void setRepositoryProvider(RepositoryProvider repositoryProvider); void setHandlerDefinition(HandlerDefinition handlerDefinition); @Override void setApplicationContext(ApplicationContext applicationContext); void setExecutor(Executor executor);  }