I have little problem testing commands:
I’ve add BeanValidationInterceptor to command bus dispatcher interceptor, it works,
but how can I force to work it in test?
I’m using newGivenWhenThenFixture and command bus is created inside constructor of this fixture, so I cannot inject
custom command bus.
How can I solve this issue?
You can configure interceptors directly on the fixture. Just use .registerCommandHandlerInterceptor(…) on the object returned by newGivenWhenThenFixture().