assertTrue(processor.getConstraintValidatorFactory() instanceof ConstraintValidatorFactoryImpl);
}
@Test
public void configureBeanValidator() throws Exception {
ProcessorEndpoint endpoint = context.getEndpoint("bean-validator://x"
+ "?group=org.apache.camel.component.bean.validator.OptionalChecks"
+ "&messageInterpolator=#myMessageInterpolator"
+ "&traversableResolver=#myTraversableResolver"
+ "&constraintValidatorFactory=myConstraintValidatorFactory", ProcessorEndpoint.class);
BeanValidator processor = (BeanValidator) endpoint.getProcessor();
assertEquals("org.apache.camel.component.bean.validator.OptionalChecks", processor.getGroup().getName());
assertTrue(processor.getValidator() instanceof ValidatorImpl);
assertSame(processor.getMessageInterpolator(), this.messageInterpolator);
assertSame(processor.getTraversableResolver(), this.traversableResolver);