Why CommandValidator not accessible to me?

It seems like a perfect fit for verifying dispatched commands not only
from sagas but also from simple event listeners. Something like...

public void testHandleEvent() {

  listenerUnderTest.handle(new Event());

  commandValidator.assertDispatchedEqualTo(
    new Command()
  );

}

Any particular reasons not making it public?

'Sebastian

Hi Sebastian,

there is actually no particular reason. I probably did it because it is not part of the public API. But then, there is no reason to prevent anyone from using it.
I will make it public in future versions. I’ll probably go round all non-public classes to do the same.

Cheers,

Allard

Glad to hear, thanks!

BR
'Sebastian