use of com.adaptris.core.stubs.DefectiveMessageFactory in project interlok by adaptris.
the class PayloadToMetadataTest method testService_Error.
@Test
public void testService_Error() throws Exception {
PayloadToMetadataService service = createService(MetadataTarget.Standard);
AdaptrisMessage msg = new DefectiveMessageFactory(WhenToBreak.BOTH).newMessage();
try {
execute(service, msg);
fail();
} catch (ServiceException e) {
}
}
Aggregations