lttng: Port unit tests to JUnit4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.core.tests / src / org / eclipse / linuxtools / lttng2 / kernel / core / tests / stateprovider / CtfKernelStateInputTest.java
index c7723096e2e8a6aef86950c7ecaefd66f2454f75..518d0d9c72b182af5f0bf35745c00d01efeb23cc 100644 (file)
@@ -17,32 +17,33 @@ import static org.junit.Assert.assertEquals;
 import org.eclipse.linuxtools.internal.lttng2.kernel.core.stateprovider.CtfKernelStateInput;
 import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
 import org.eclipse.linuxtools.tmf.core.statesystem.IStateChangeInput;
-import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
 /**
  * Tests for the LTTng 2.0 kernel state provider
  *
- * @author alexmont
- *
+ * @author Alexandre Montplaisir
  */
-@SuppressWarnings("javadoc")
 public class CtfKernelStateInputTest {
 
     static IStateChangeInput input;
 
+    /**
+     * Set-up.
+     *
+     * @throws TmfTraceException
+     *             If we can't find the test traces
+     */
     @BeforeClass
     public static void initialize() throws TmfTraceException {
         input = new CtfKernelStateInput(CtfTestFiles.getTestTrace());
 
     }
 
-    @AfterClass
-    public static void cleanup() {
-        //
-    }
-
+    /**
+     * Test loading the state provider.
+     */
     @Test
     public void testOpening() {
         long testStartTime;
@@ -50,12 +51,4 @@ public class CtfKernelStateInputTest {
         assertEquals(testStartTime, CtfTestFiles.startTime);
     }
 
-    //FIXME re-enable once we offer history-less state systems again
-//    @Test
-//    public void testRunning() {
-//        StateSystem ss = new StateSystem();
-//        input.assignTargetStateSystem(ss);
-//        input.run();
-//    }
-
 }
This page took 0.03615 seconds and 5 git commands to generate.