}
@SuppressWarnings("rawtypes")
@Test
public void testBaseCritieraEntryProcessor() {
BasePredicateProcessor processor = this.parser.new BasePredicateProcessor() {
@Override
public boolean canProcess(Predicate predicate) {
return true;
}
@Override
protected Object doProcess(Predicate predicate, Field field) {
return "X";
}
};
Assert.assertNull(processor.process(null, null));
Assert.assertNull(processor.process(new Predicate("some key", null), null));
Assert.assertEquals("X", processor.process(new Predicate("some key", SOME_VALUE), null));
}