tmf : Make waitForInitialization() return a boolean
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / src / org / eclipse / tracecompass / tmf / core / tests / statesystem / ExperimentStateSystemModuleTest.java
index 141293a7bc535fd89a4989e6149b6ed14fb22790..48b4a0be866086dbb48a171dcf7e4329f6217cd7 100644 (file)
@@ -15,6 +15,7 @@ package org.eclipse.tracecompass.tmf.core.tests.statesystem;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 import java.util.concurrent.TimeUnit;
@@ -106,7 +107,7 @@ public class ExperimentStateSystemModuleTest {
     }
 
     /**
-     * Make sure that the state system is initialized after calling 
+     * Make sure that the state system is initialized after calling
      * {@link TmfStateSystemAnalysisModule#waitForInitialization()}.
      */
     @Test
@@ -114,7 +115,7 @@ public class ExperimentStateSystemModuleTest {
         assertNull(fModule.getStateSystem());
         fModule.schedule();
 
-        fModule.waitForInitialization();
+        assertTrue("Initialization succeeded", fModule.waitForInitialization());
         assertNotNull(fModule.getStateSystem());
     }
 
This page took 0.024817 seconds and 5 git commands to generate.