From cc703e6c1cda98bce1846a3b1b800b793f39fda2 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 14 May 2014 17:23:02 -0400 Subject: [PATCH] Lttng: Log test assert failures. Add messages to two assert statements that otherwise produce identical output. Change-Id: I05e2b077a49fc9c9b21c9d394f9d25adbc261969 Signed-off-by: Andrew Ferrazzutti Reviewed-on: https://git.eclipse.org/r/26551 Tested-by: Hudson CI Reviewed-by: Alexander Kurtakov Tested-by: Alexander Kurtakov --- .../ui/tests/model/component/TraceControlUstSessionTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.linuxtools.lttng2.control.ui.tests/src/org/eclipse/linuxtools/lttng2/control/ui/tests/model/component/TraceControlUstSessionTests.java b/org.eclipse.linuxtools.lttng2.control.ui.tests/src/org/eclipse/linuxtools/lttng2/control/ui/tests/model/component/TraceControlUstSessionTests.java index 6081a2b60f..760f2cc623 100644 --- a/org.eclipse.linuxtools.lttng2.control.ui.tests/src/org/eclipse/linuxtools/lttng2/control/ui/tests/model/component/TraceControlUstSessionTests.java +++ b/org.eclipse.linuxtools.lttng2.control.ui.tests/src/org/eclipse/linuxtools/lttng2/control/ui/tests/model/component/TraceControlUstSessionTests.java @@ -526,7 +526,7 @@ public class TraceControlUstSessionTests { fFacility.destroySession(session); // Verify that no more session components exist - assertEquals(0, groups[1].getChildren().length); + assertEquals("Session components still exist.", 0, groups[1].getChildren().length); //------------------------------------------------------------------------- // Disconnect node @@ -540,6 +540,6 @@ public class TraceControlUstSessionTests { fFacility.executeCommand(node, "delete"); - assertEquals(0,fFacility.getControlView().getTraceControlRoot().getChildren().length); + assertEquals("Node not deleted.", 0, fFacility.getControlView().getTraceControlRoot().getChildren().length); } } \ No newline at end of file -- 2.34.1