Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Redor2016-05-24 12:54:47 +0000
committerLaurent Redor2016-05-24 13:46:44 +0000
commit81484fb9b62c8098572164f95e7a428da2d5d7fe (patch)
tree35ede177406b1689f4573c705037b4c8c6fdce53
parent3110d15a103a894399e5e66bdc69110377946e70 (diff)
downloadorg.eclipse.sirius-81484fb9b62c8098572164f95e7a428da2d5d7fe.tar.gz
org.eclipse.sirius-81484fb9b62c8098572164f95e7a428da2d5d7fe.tar.xz
org.eclipse.sirius-81484fb9b62c8098572164f95e7a428da2d5d7fe.zip
484544: Add test that reveals this NPE
Bug: 484544 Change-Id: I9151e3fb94de14202990986db72e5f5fe184fc54 Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/GoToMarkerTraceabilityWithUserInteractionTest.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/GoToMarkerTraceabilityWithUserInteractionTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/GoToMarkerTraceabilityWithUserInteractionTest.java
index c41202c02d..45a408f9b3 100644
--- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/GoToMarkerTraceabilityWithUserInteractionTest.java
+++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/GoToMarkerTraceabilityWithUserInteractionTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2014 THALES GLOBAL SERVICES.
+ * Copyright (c) 2010, 2016 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -291,6 +291,18 @@ public class GoToMarkerTraceabilityWithUserInteractionTest extends AbstractScena
}
/**
+ * Ensure that there is no NPE when no representation element exists
+ * (corresponding to the semantic element of the marker).
+ */
+ public void testTraceabilityWhenNoRepresentationElementExists() {
+ setUpMarker(REPRESENTATION_EMPTY_DIAGRAM, "emptyDiagram", "platform:/resource/DesignerTestProject/vp1038.ecore#/");
+
+ callGoToMarkerOnAllOpenedEditors(traceMarker);
+
+ SWTBotUtils.waitAllUiEvents();
+ }
+
+ /**
* Ensures that the given dialectEditor's selection is corresponding to the
* given semanticElement. For instance : if the semantic Element is
* 'EClass1' and the editor's selection is a DNode which associated semantic

Back to the top