@Test void testValidateSimpleObject() throws Exception { uow.transformMessage(m -> new GenericMessage<>("Simple instance")); testSubject.handle(uow, mockInterceptorChain); verify(mockInterceptorChain).proceed(); }
@Override public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception { handle(unitOfWork.getMessage()); return interceptorChain.proceed(); }
BeanValidationInterceptor implements MessageHandlerInterceptor<T>,
                                                                        MessageDispatchInterceptor<T> { @Override public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception { handle(unitOfWork.getMessage()); return interceptorChain.proceed(); } }
BeanValidationInterceptor implements MessageHandlerInterceptor<T>,
                                                                        MessageDispatchInterceptor<T> { @Override public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception { handle(unitOfWork.getMessage()); return interceptorChain.proceed(); } BeanValidationInterceptor();  BeanValidationInterceptor(ValidatorFactory validatorFactory); }
BeanValidationInterceptor implements MessageHandlerInterceptor<T>,
                                                                        MessageDispatchInterceptor<T> { @Override public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception { handle(unitOfWork.getMessage()); return interceptorChain.proceed(); } BeanValidationInterceptor();  BeanValidationInterceptor(ValidatorFactory validatorFactory); @Override Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain); @Override BiFunction<Integer, T, T> handle(List<? extends T> messages); }
BeanValidationInterceptor implements MessageHandlerInterceptor<T>,
                                                                        MessageDispatchInterceptor<T> { @Override public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception { handle(unitOfWork.getMessage()); return interceptorChain.proceed(); } BeanValidationInterceptor();  BeanValidationInterceptor(ValidatorFactory validatorFactory); @Override Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain); @Override BiFunction<Integer, T, T> handle(List<? extends T> messages);  }