[551235] Give more details in EdgeOnFigureWithAlphaAnchorTest in case of failure
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=551235
Change-Id: Id0372228a218121eeee3b4f0016b4f2b97780df7
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeOnFigureWithAlphaAnchorTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeOnFigureWithAlphaAnchorTest.java
index 8a6bacf..f3563df 100644
--- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeOnFigureWithAlphaAnchorTest.java
+++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeOnFigureWithAlphaAnchorTest.java
@@ -429,12 +429,12 @@
(onBoundingBoxExpected && extremityIsOnBoundingBox) || (!onBoundingBoxExpected && !extremityIsOnBoundingBox));
if (!onBoundingBoxExpected) {
- assertTrue(getInsideMessage(messagePrefix, referenceName), bounds.contains(extremity));
+ assertTrue(getInsideMessage(messagePrefix, referenceName, bounds, extremity), bounds.contains(extremity));
}
}
- private String getInsideMessage(String prefix, String referenceName) {
- return prefix + " point of \"" + referenceName + "\" should be inside the figure";
+ private String getInsideMessage(String prefix, String referenceName, Rectangle bounds, Point extremity) {
+ return prefix + " point (" + extremity + ") of \"" + referenceName + "\" should be inside the figure (" + bounds + ")";
}
private String getBoundingBoxMessage(String prefix, String referenceName, boolean onBoundingBoxExpected) {