use of org.talend.esb.policy.schemavalidate.feature.SchemaValidationFeature in project tesb-rt-se by Talend.
the class CustomSchemaFeatureTest method testLocalCustomSchemaAbsolutePathNotExist.
@Test(expected = SOAPFaultException.class)
public void testLocalCustomSchemaAbsolutePathNotExist() throws Exception {
SchemaValidationFeature f = new SchemaValidationFeature();
f.setAppliesTo("consumer");
f.setMessage("response");
f.setType("CustomSchema");
f.setPath(NOT_EXISTING_SCHEMA_ABSOLUTE_PATH);
customFeatureTest(f, VALID_CUSTOMER_NAME);
}
use of org.talend.esb.policy.schemavalidate.feature.SchemaValidationFeature in project tesb-rt-se by Talend.
the class CustomSchemaFeatureTest method testLocalCustomSchemaConsumerResponseNotValid.
@Test(expected = SOAPFaultException.class)
public void testLocalCustomSchemaConsumerResponseNotValid() throws Exception {
SchemaValidationFeature f = new SchemaValidationFeature();
f.setAppliesTo("consumer");
f.setMessage("response");
f.setType("CustomSchema");
f.setPath(VALID_SCHEMA_RELATIVE_PATH);
customFeatureTest(f, NOT_VALID_CUSTOMER_NAME);
}
use of org.talend.esb.policy.schemavalidate.feature.SchemaValidationFeature in project tesb-rt-se by Talend.
the class CustomSchemaFeatureTest method testLocalCustomSchemaConsumerResponseValid.
@Test
public void testLocalCustomSchemaConsumerResponseValid() throws Exception {
SchemaValidationFeature f = new SchemaValidationFeature();
f.setAppliesTo("consumer");
f.setMessage("response");
f.setType("CustomSchema");
f.setPath(VALID_SCHEMA_RELATIVE_PATH);
customFeatureTest(f, VALID_CUSTOMER_NAME);
}
Aggregations