use of com.predic8.membrane.core.interceptor.schemavalidation.ValidatorInterceptor in project service-proxy by membrane.
the class SOAPFaultTest method testSkipFaults.
@Test
public void testSkipFaults() throws Exception {
ValidatorInterceptor i = createValidatorInterceptor(true);
Exchange exc = createFaultExchange();
assertEquals(Outcome.CONTINUE, i.handleResponse(exc));
assertContains("secret", exc.getResponse().toString());
}
use of com.predic8.membrane.core.interceptor.schemavalidation.ValidatorInterceptor in project service-proxy by membrane.
the class SOAPMessageValidatorInterceptorTest method createValidatorInterceptor.
private ValidatorInterceptor createValidatorInterceptor(String wsdl) throws Exception {
ValidatorInterceptor interceptor = new ValidatorInterceptor();
interceptor.setWsdl(wsdl);
interceptor.setResourceResolver(new ResolverMap());
interceptor.init();
return interceptor;
}
use of com.predic8.membrane.core.interceptor.schemavalidation.ValidatorInterceptor in project service-proxy by membrane.
the class ValidatorInterceptorTest method createValidatorInterceptor.
private ValidatorInterceptor createValidatorInterceptor(String wsdl) throws Exception {
ValidatorInterceptor interceptor = new ValidatorInterceptor();
interceptor.setResourceResolver(new ResolverMap());
interceptor.setWsdl(wsdl);
interceptor.init();
return interceptor;
}
Aggregations