tmf : Make waitForInitialization() return a boolean
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / src / org / eclipse / tracecompass / tmf / core / tests / statesystem / StateSystemAnalysisModuleTest.java
index 56dc6ce7e488eafb166e5089cd296f7f46261d83..1ccf3445c9f3df1c186b2098ca108f7bd63f872e 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.Map;
@@ -86,7 +87,7 @@ public class StateSystemAnalysisModuleTest {
     }
 
     /**
-     * Make sure that the state system is initialized after calling 
+     * Make sure that the state system is initialized after calling
      * {@link TmfStateSystemAnalysisModule#waitForInitialization()}.
      */
     @Test
@@ -94,7 +95,7 @@ public class StateSystemAnalysisModuleTest {
         assertNull(module.getStateSystem());
         module.schedule();
 
-        module.waitForInitialization();
+        assertTrue("Initialization succeeded", module.waitForInitialization());
         assertNotNull(module.getStateSystem());
     }
 
This page took 0.02385 seconds and 5 git commands to generate.