assertEquals("test-validator-no-error", validator.getName());
}
public void testFullConfiguration() throws Exception
{
final Validator validator = new ValidatorBuilder().name("test-validator-full")
.inboundAddress("test://foo.in")
.validationFilter(new PayloadTypeFilter(Integer.class))
.ackExpression("#[string:GOOD:#[message:payload]]")
.nackExpression("#[string:BAD:#[message:payload]]")
.errorExpression("#[string:ERROR:#[message:payload]]")
.outboundAddress("test://foo.out")
.exceptionStrategy(new DefaultMessagingExceptionStrategy(muleContext, true))
.build(muleContext);
assertEquals("test-validator-full", validator.getName());
}