Lttng: Log test assert failures.
authorAndrew Ferrazzutti <aferrazz@redhat.com>
Wed, 14 May 2014 21:23:02 +0000 (17:23 -0400)
committerAlexander Kurtakov <akurtako@redhat.com>
Thu, 15 May 2014 12:34:22 +0000 (08:34 -0400)
Add messages to two assert statements that otherwise produce
identical output.

Change-Id: I05e2b077a49fc9c9b21c9d394f9d25adbc261969
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/26551
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
org.eclipse.linuxtools.lttng2.control.ui.tests/src/org/eclipse/linuxtools/lttng2/control/ui/tests/model/component/TraceControlUstSessionTests.java

index 6081a2b60f7b8ffaf8a9c624d1f6f88f71294f18..760f2cc6238da5c144364bcd9884e656af067dc9 100644 (file)
@@ -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
This page took 0.027365 seconds and 5 git commands to generate.