Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-09-25 11:54:43 +0000
committerAdolfo SBH2016-09-25 11:54:43 +0000
commita5ad796c76d006819a540aa6c0c8a99592863aa5 (patch)
tree7339d29f1dd8d00bdb1a73b4bb5a38c7a88f1418
parent14256f4e520271c69629f6784f8ac373559a9f77 (diff)
downloadorg.eclipse.qvtd-asanchez/500803.tar.gz
org.eclipse.qvtd-asanchez/500803.tar.xz
org.eclipse.qvtd-asanchez/500803.zip
[cs2as] - Providing the LookupEnvironment Packageasanchez/500803
-rw-r--r--tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java19
1 files changed, 12 insertions, 7 deletions
diff --git a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java
index 4e9556edc..0dbdfe0a9 100644
--- a/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java
+++ b/tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java
@@ -64,9 +64,9 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import cg._Source2Target_qvtp_qvtcas.Source2Target_qvtp_qvtcas;
import example1.source.SourcePackage;
import example1.target.TargetPackage;
+import example1.target.lookup.EnvironmentPackage;
import example2.classes.ClassesPackage;
import example2.classescs.ClassescsPackage;
import example4.kiamaas.KiamaasPackage;
@@ -295,12 +295,17 @@ public class OCL2QVTiTestCases extends LoadTestCase {
// DependencyAnalyzer.START.setState(true);
MyQVT myQVT = new MyQVT("example1");
myQVT.loadGenModels("SourceMM1.genmodel", "TargetMM1.genmodel");
- // myQVT.executeNewOCL2QVTi_CompilerChain2("Source2Target.ocl");
- // CS2ASJavaCompilerParameters cgParams = new CS2ASJavaCompilerParametersImpl(
- // "example1.target.lookup.util.TargetLookupSolver",
- // "example1.target.lookup.util.TargetLookupResult",
- // TESTS_GEN_PATH, TESTS_PACKAGE_NAME);
- Class<? extends Transformer> txClass = Source2Target_qvtp_qvtcas.class;
+ myQVT.loadEcoreFile("EnvExample1.ecore", EnvironmentPackage.eINSTANCE);
+
+ Transformation qvtiTransf = myQVT.executeNewOCL2QVTi_CompilerChain("Source2Target.ocl");
+ CS2ASJavaCompilerParameters cgParams = new CS2ASJavaCompilerParametersImpl(
+ "example1.target.lookup.util.TargetLookupSolver",
+ "example1.target.lookup.util.TargetLookupResult",
+ TESTS_GEN_PATH, TESTS_PACKAGE_NAME);
+ Class<? extends Transformer> txClass = new CS2ASJavaCompilerImpl().compileTransformation(myQVT, qvtiTransf, cgParams);
+ //Class<? extends Transformer> txClass = Source2Target_qvtp_qvtcas.class;
+
+
myQVT.executeModelsTX_CG(txClass, "model1");
// myQVT.executeModelsTX_CG(txClass, "model2");
// myQVT.executeModelsTX_CG(txClass, "model3");

Back to the top