errorHandler = (DefaultErrorHandlerBuilder) ctx.getBean("errorHandler");
assertNotNull(errorHandler);
}
public void testTransactionErrorHandler() {
TransactionErrorHandlerBuilder errorHandler = (TransactionErrorHandlerBuilder) ctx.getBean("transactionErrorHandler");
assertNotNull(errorHandler);
assertNotNull(errorHandler.getTransactionTemplate());
Processor processor = errorHandler.getOnRedelivery();
assertTrue("It should be MyErrorProcessor", processor instanceof MyErrorProcessor);
}