コード例 #1
0
  @Before
  public void setUp() throws Exception {
    eventBus = new CountingEventBus();
    stubHandler = new StubHandler();
    inMemoryEventStore = new InMemoryEventStore();

    inMemoryEventStore.appendEvents(
        StubAggregate.class.getSimpleName(),
        new SimpleDomainEventStream(
            new GenericDomainEventMessage<StubDomainEvent>(
                aggregateIdentifier, 0, new StubDomainEvent())));
  }