Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/org.eclipse.qvtd.build.etl.tests/src/org/eclipse/qvtd/build/etl/tests/QVTdMtcTests.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/org.eclipse.qvtd.build.etl.tests/src/org/eclipse/qvtd/build/etl/tests/QVTdMtcTests.java b/tests/org.eclipse.qvtd.build.etl.tests/src/org/eclipse/qvtd/build/etl/tests/QVTdMtcTests.java
index c66c1b390..df8e9b1ff 100644
--- a/tests/org.eclipse.qvtd.build.etl.tests/src/org/eclipse/qvtd/build/etl/tests/QVTdMtcTests.java
+++ b/tests/org.eclipse.qvtd.build.etl.tests/src/org/eclipse/qvtd/build/etl/tests/QVTdMtcTests.java
@@ -122,7 +122,7 @@ public class QVTdMtcTests extends LoadTestCase {
/*
* UmlToRdbms has a loop from NonLeafAttribute in mapping complexAttributeComplexAttributes_LM,
* probably breakable by classComplexAttributes_LM, but still we can't schedule it.
- */
+ *
@Test
public void testUmlToRdbms() throws Exception {
@@ -145,11 +145,12 @@ public class QVTdMtcTests extends LoadTestCase {
URI middleURI = samplesBaseUri.appendSegment("SimpleUMLtoRDBMS_trace.xmi");
URI expectedOutputURI = samplesBaseUri.appendSegment("SimpleRDBMSPeople_expected.xmi");
- QVTiPivotEvaluator testEvaluator = myQVT.createEvaluator(mtc.getiModel());
- testEvaluator.getEnvironmentFactory().setEvaluationTracingEnabled(true);
- testEvaluator.loadModel("uml", inputURI);
- testEvaluator.createModel("middle", middleURI, null);
- testEvaluator.createModel("rdbms", outputURI, null);
+/ * Fails because scheduler uses realized variable in expressions
+ BasicQVTiExecutor qvtiExecutor = new BasicQVTiExecutor(myQVT.getEnvironmentFactory(), mtc.getTransformation(mtc.getiModel().getResource()));
+ qvtiExecutor.getEnvironmentFactory().setEvaluationTracingEnabled(true);
+ qvtiExecutor.loadModel("uml", inputURI);
+ qvtiExecutor.createModel("middle", middleURI, null);
+ qvtiExecutor.createModel("rdbms", outputURI, null);
System.out.println("Executing QVTi transformation on test models.");
testEvaluator.execute();
@@ -157,11 +158,10 @@ public class QVTdMtcTests extends LoadTestCase {
Resource actual = myQVT.getEnvironmentFactory().getResourceSet().getResource(outputURI, true);
assertSameModel(expected, actual);
- testEvaluator.dispose();
- */
+ qvtiExecutor.dispose(); * /
mtc.disposeModels();
myQVT.dispose();
- }
+ } */
@Test
public void testUpperToLower() throws Exception {

Back to the top