use of org.eclipse.core.internal.expressions.IterateExpression in project eclipse.platform.runtime by eclipse.
the class ExpressionTests method testIterateExpressionWithAdapterManagerEmptyAnd.
public void testIterateExpressionWithAdapterManagerEmptyAnd() throws Exception {
// $NON-NLS-1$
IterateExpression exp = new IterateExpression("and");
final List<String> input = new ArrayList<>();
CollectionWrapper wrapper = new CollectionWrapper();
wrapper.collection = input;
EvaluationContext context = new EvaluationContext(null, wrapper);
assertTrue(EvaluationResult.TRUE == exp.evaluate(context));
}
use of org.eclipse.core.internal.expressions.IterateExpression in project eclipse.platform.runtime by eclipse.
the class ExpressionTests method testIterateExpressionAnd_IfEmptyTrue.
public void testIterateExpressionAnd_IfEmptyTrue() throws Exception {
// $NON-NLS-1$
IterateExpression exp = new IterateExpression("and", "true");
List<?> input = new ArrayList<>();
EvaluationContext context = new EvaluationContext(null, input);
assertTrue(EvaluationResult.TRUE == exp.evaluate(context));
}
Aggregations