Hi,
I want to use the GivenWhenThenTestFixture to test the behaviour of a certain event handler. So I set it up normally with the aggregate root and register my extra event handler:
AnnotationEventListenerAdapter.subscribe(new MySpecialEventHandler(),fixture.getEventBus());
But this event handler never receives any events.
I had a look at the code of RecordingEventBus:
@Override
public void subscribe(EventListener eventListener) {
}
Seems that the event bus simply ignores all subscribe request.
So how could I test do such extended tests?