use of com.helger.jaxb.validation.CollectingValidationEventHandler in project phase4 by phax.
the class Ebms3ReaderBuilderTest method testExpectSoap11ButFileIsSoap12.
@Test
public void testExpectSoap11ButFileIsSoap12() {
final CollectingValidationEventHandler aCVEH = new CollectingValidationEventHandler();
final Soap11Envelope aEnv = Ebms3ReaderBuilder.soap11().setValidationEventHandler(aCVEH).read(new ClassPathResource("/soap12test/UserMessage12.xml"));
assertNull(aEnv);
assertFalse(aCVEH.getErrorList().isEmpty());
}
Aggregations