IOException,
DataProcessingException
{
DataMap data = dataMapFromString("{ 'a': [1, 2, 3, 4, 5]}".replace('\'', '"'));
DataMap filter = dataMapFromString("{ 'a': { '$*': { 'y': 1}}}".replace('\'', '"'));
DataComplexProcessor processor = new DataComplexProcessor(new Filter(), filter, data);
boolean thrown = false;
try {
processor.run(false);
} catch (DataProcessingException e) {
assertEquals(e.getMessages().size(), 5, "expected exactly 5 errors in non fast fail mode");
thrown = true;
}
assertEquals(thrown, true, "exception should have been thrown");