Simplify the test

This commit is contained in:
David Pilato 2016-04-11 09:59:13 +02:00
parent 24f48b86b5
commit cc4fb61a38

@ -73,10 +73,7 @@ public class IngestCloseIT extends ESSingleNodeTestCase {
@Override
protected TestProcessor doCreate(String tag, Map<String, Object> config) throws Exception {
return new TestProcessor("id", "test", ingestDocument -> {
ingestDocument.setFieldValue("processed", true);
if (ingestDocument.getFieldValue("fail", Boolean.class)) {
throw new IllegalArgumentException("test processor failed");
}
throw new UnsupportedOperationException("this code is actually never called from the test");
});
}