Monster merge from the integration branch. Still some problems left and JUnits failing.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / src / org / eclipse / linuxtools / tmf / tests / trace / TmfContextTest.java
index 54550ed484b3b7f0e62e9920814e6531f7dcf694..f5e0d9a13152a7b185c5471ccfa69dd6bd88c87d 100644 (file)
@@ -73,7 +73,7 @@ public class TmfContextTest extends TestCase {
        public void testTmfContextDefault() {
                TmfContext context = new TmfContext();
                assertEquals("getLocation", null, context.getLocation());
-               assertEquals("getRank",        0, context.getRank());
+               assertEquals("getRank", TmfContext.UNKNOWN_RANK, context.getRank());
        }
 
        public void testTmfContextNoRank() {
@@ -85,9 +85,9 @@ public class TmfContextTest extends TestCase {
                assertEquals("getLocation", fLocation2, context2.getLocation());
                assertEquals("getLocation", fLocation3, context3.getLocation());
 
-               assertEquals("getRank", 0, context1.getRank());
-               assertEquals("getRank", 0, context2.getRank());
-               assertEquals("getRank", 0, context3.getRank());
+               assertEquals("getRank", TmfContext.UNKNOWN_RANK, context1.getRank());
+               assertEquals("getRank", TmfContext.UNKNOWN_RANK, context2.getRank());
+               assertEquals("getRank", TmfContext.UNKNOWN_RANK, context3.getRank());
        }
 
        public void testTmfContext() {
This page took 0.024178 seconds and 5 git commands to generate.