Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2015-01-21 07:21:22 -0500
committerCamille Letavernier2015-01-21 07:21:22 -0500
commitc6bef09a9ae37c22bd71fc4ddd9df36c20b086ce (patch)
treee14d289fa9906211c7b2c3dca48aa2f78523c9d5
parentffe986d48d09feae88b1ce3309b2c0d6a695e7ed (diff)
downloadorg.eclipse.papyrus-c6bef09a9ae37c22bd71fc4ddd9df36c20b086ce.tar.gz
org.eclipse.papyrus-c6bef09a9ae37c22bd71fc4ddd9df36c20b086ce.tar.xz
org.eclipse.papyrus-c6bef09a9ae37c22bd71fc4ddd9df36c20b086ce.zip
410985: [Model Import] Papyrus shall enable to import semantics
information of other tools models https://bugs.eclipse.org/bugs/show_bug.cgi?id=410985 - Add an assert before open the editor, to avoid opening a blocking editor on an invalid model
-rw-r--r--tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests/src/org/eclipse/papyrus/migration/rsa/tests/qvt/AbstractTransformationTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests/src/org/eclipse/papyrus/migration/rsa/tests/qvt/AbstractTransformationTest.java b/tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests/src/org/eclipse/papyrus/migration/rsa/tests/qvt/AbstractTransformationTest.java
index 816720e43ae..1f67fed5697 100644
--- a/tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests/src/org/eclipse/papyrus/migration/rsa/tests/qvt/AbstractTransformationTest.java
+++ b/tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests/src/org/eclipse/papyrus/migration/rsa/tests/qvt/AbstractTransformationTest.java
@@ -75,6 +75,8 @@ public class AbstractTransformationTest extends AbstractPapyrusTest {
launcher.run(Collections.singletonList(sourceURI));
launcher.waitForCompletion();
+
+ Assert.assertTrue("The transformation didn't complete normally", launcher.getResult().isOK());
} else {
ImportTransformation transformation = new ImportTransformation(sourceURI);
transformation.run(false);

Back to the top