Is it possible to test a @ExceptionHandler annotated method used in a Saga.
The test uses a SagaTestFixture and it looks to me the fixture is not scanning for this annotation to register a handler.
There’s indeed no dedicated testing support for the @ExceptionHandler annotation. Neither for the Sagas or the Aggregates in fact.
@vab2048 his suggestion with the ListenerInvocationErrorHandler would work though actually. Through this approach, you can define a custom ListenerInvocationErrorHandler which asserts the exception being thrown from within your @ExceptionHandler. If nothing happens, you’d assert that the ListenerInvocationErrorHandler woudln’t be reached.