From df438594be0ce591ca97ebb8cddf665460a73f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Tue, 19 Nov 2024 10:04:21 +0100 Subject: [PATCH] UpdateUnitVersionsCommandTests add information on fail Test randomly fails, but it is unclear why. Hopefully the additional text will help to understand the reason. https://github.com/eclipse-pde/eclipse.pde/issues/666 --- .../extension/tests/UpdateUnitVersionsCommandTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests/UpdateUnitVersionsCommandTests.java b/ui/org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests/UpdateUnitVersionsCommandTests.java index 73a16b5d07..b05ac0389b 100644 --- a/ui/org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests/UpdateUnitVersionsCommandTests.java +++ b/ui/org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests/UpdateUnitVersionsCommandTests.java @@ -88,8 +88,10 @@ private void confirmVersionUpdates(Map expected) throws Exceptio for (Entry unit : expected.entrySet()) { String expectedID = unit.getKey(); String expectedVersion = unit.getValue(); - assertTrue("ID: " + expectedID + " not found in actual", actual.containsKey(expectedID)); - assertEquals("ID: " + expectedID + " has the incorrect version.", expectedVersion, actual.get(expectedID)); + assertTrue("ID: " + expectedID + " not found in actual. updatedText=" + updatedText, + actual.containsKey(expectedID)); + assertEquals("ID: " + expectedID + " has the incorrect version. updatedText=" + updatedText, + expectedVersion, actual.get(expectedID)); } }