Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-10-21 09:38:31 +0000
committerEd Willink2016-10-21 09:38:31 +0000
commit25e3fb0886c149126eb97f3a901a45f86575dc61 (patch)
tree531376631a1379122d9ffef9b0825260a7932a40
parent808691f999c7c76f157e29d0a865e7dfcfec6839 (diff)
downloadorg.eclipse.qvtd-25e3fb0886c149126eb97f3a901a45f86575dc61.tar.gz
org.eclipse.qvtd-25e3fb0886c149126eb97f3a901a45f86575dc61.tar.xz
org.eclipse.qvtd-25e3fb0886c149126eb97f3a901a45f86575dc61.zip
[unrelated] Class.forName rather than import of generated class
-rw-r--r--tests/org.eclipse.qvtd.cs2as.compiler.tests/src/org/eclipse/qvtd/cs2as/compiler/tests/OCL2QVTiTestCases.java4
1 files changed, 2 insertions, 2 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 059d9debc..e23bb3929 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
@@ -63,7 +63,6 @@ import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
-import cg._Source2Target_qvtp_qvtcas.Source2Target_qvtp_qvtcas;
import example1.source.SourcePackage;
import example1.target.TargetPackage;
import example2.classes.ClassesPackage;
@@ -271,7 +270,8 @@ public class OCL2QVTiTestCases extends LoadTestCase {
@Test
public void testExample1_CGManual() throws Exception {
MyQVT myQVT = new MyQVT("example1");
- Class<Source2Target_qvtp_qvtcas> txClass = Source2Target_qvtp_qvtcas.class;
+ @SuppressWarnings({"null", "unchecked"})
+ @NonNull Class<? extends Transformer> txClass = (Class<? extends Transformer>) Class.forName("cg._Source2Target_qvtp_qvtcas.Source2Target_qvtp_qvtcas");
myQVT.executeModelsTX_CG(txClass, "model1");
myQVT.executeModelsTX_CG(txClass, "model2");
myQVT.executeModelsTX_CG(txClass, "model3");

Back to the top