use of org.eclipse.core.internal.expressions.CountExpression in project eclipse.platform.runtime by eclipse.
the class ExpressionInfoTests method testAndExpression.
public void testAndExpression() throws Exception {
AndExpression and = new AndExpression();
assertNoAccess(and.computeExpressionInfo());
and.add(new CountExpression("10"));
assertDefaultAccessOnly(and.computeExpressionInfo());
}
use of org.eclipse.core.internal.expressions.CountExpression in project eclipse.platform.runtime by eclipse.
the class ExpressionInfoTests method testWithExpression.
public void testWithExpression() {
WithExpression with = new WithExpression("variable");
assertNoAccess(with.computeExpressionInfo());
with.add(new CountExpression("10"));
assertVariableAccess(with.computeExpressionInfo(), "variable");
}
use of org.eclipse.core.internal.expressions.CountExpression in project eclipse.platform.runtime by eclipse.
the class ExpressionInfoTests method testResolveExpression.
public void testResolveExpression() {
ResolveExpression resolve = new ResolveExpression("variable", null);
assertNoAccess(resolve.computeExpressionInfo());
resolve.add(new CountExpression("10"));
assertVariableAccess(resolve.computeExpressionInfo(), "variable");
}
Aggregations