use of com.adaptris.core.metadata.MetadataFilterImpl in project interlok by adaptris.
the class CreateQueryStringFromMetadataTest method testService_WithException.
@Test
public void testService_WithException() throws Exception {
AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage();
CreateQueryStringFromMetadata service = createService().withMetadataFilter(new MetadataFilterImpl() {
@Override
public MetadataCollection filter(MetadataCollection original) {
throw new RuntimeException();
}
});
try {
execute(service, msg);
fail();
} catch (Exception expected) {
}
}
Aggregations