final InternalReadAccessor extractor = new MockExtractor();
for ( int i = 0; i < data.length; i++ ) {
final Object[] row = data[i];
boolean isNegated = ((String) row[1]).startsWith( "not " );
String evaluatorStr = isNegated ? ((String) row[1]).substring( 4 ) : (String) row[1];
final Evaluator evaluator = (Evaluator) registry.getEvaluatorDefinition( evaluatorStr ).getEvaluator( valueType,
evaluatorStr,
isNegated,
null );
assertNotNull( "Evaluator '"+(isNegated ? "not " : "")+evaluatorStr+"' not foung for "+valueType, evaluator );
checkEvaluatorMethodWithFieldValue( valueType,
extractor,
row,
evaluator );
checkEvaluatorMethodCachedRight( valueType,
extractor,
row,
evaluator );
checkEvaluatorMethodCachedLeft( valueType,
extractor,
row,
evaluator );
checkEvaluatorMethodWith2Extractors( valueType,
extractor,
row,
evaluator );
assertEquals( valueType,
evaluator.getValueType() );
}
}