Browse Source

Adopted STextInterpreterTest to new AbstractStextTest

Andreas Mülder 14 years ago
parent
commit
d46a888407

+ 3 - 3
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src/org/yakindu/sct/model/sexec/interpreter/test/STextInterpreterTest.java

@@ -680,21 +680,21 @@ public class STextInterpreterTest extends AbstractSTextTest {
 	}
 
 	protected Object executeWithDefaultScope(String expression) {
-		Scope defaultScope = createDefaultScope();
+		Scope defaultScope = internalScope();
 		Expression statement = (Expression) parseExpression(expression,
 				defaultScope, Expression.class.getSimpleName());
 		return interpreter.evaluateStatement(statement, context);
 	}
 
 	protected Object execute(String scope, String expression) {
-		Scope defaultScope = createContextScope(scope);
+		Scope defaultScope = createInternalScope(scope);
 		Expression statement = (Expression) parseExpression(expression,
 				defaultScope, Expression.class.getSimpleName());
 		return interpreter.evaluateStatement(statement, context);
 	}
 
 	protected Object executeExpression(String scope, String expression) {
-		Scope defaultScope = createContextScope(scope);
+		Scope defaultScope = createInternalScope(scope);
 		Statement statement = (Statement) parseExpression(expression,
 				defaultScope, Expression.class.getSimpleName());
 		return interpreter.evaluateStatement(statement, context);