tmf: Update tmf.core unit tests to JUnit4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / uml2sd / TmfSyncSequenceDiagramEventTest.java
index 5f1f44d07a0f9fcfce6e91c4040fb674e963674a..f14840f74464dcb0997884f43658cc7fb45bd81a 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2013 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -8,10 +8,14 @@
  *
  * Contributors:
  *   Bernd Hufmann - Initial API and implementation
+ *   Alexandre Montplaisir - Port to JUnit4
  *******************************************************************************/
+
 package org.eclipse.linuxtools.tmf.core.tests.uml2sd;
 
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
@@ -22,14 +26,13 @@ import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
 import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.uml2sd.TmfSyncSequenceDiagramEvent;
 
+import org.junit.Test;
+
 /**
- * <b><u>TmfSyncSequenceDiagramEventTest</u></b>
- * <p>
- * Implement me. Please.
- * <p>
+ * TmfSyncSequenceDiagramEventTest
  */
-@SuppressWarnings({"nls","javadoc"})
-public class TmfSyncSequenceDiagramEventTest extends TestCase {
+@SuppressWarnings("nls")
+public class TmfSyncSequenceDiagramEventTest {
 
     private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
     private final String fTypeId  = "Some type";
@@ -45,19 +48,18 @@ public class TmfSyncSequenceDiagramEventTest extends TestCase {
     private final ITmfEvent fEvent1;
     private final TmfEventField fContent1;
 
-    public TmfSyncSequenceDiagramEventTest () {
+    /**
+     * Constructor for the test case
+     */
+    public TmfSyncSequenceDiagramEventTest() {
         fContent1 = new TmfEventField(ITmfEventField.ROOT_FIELD_ID, "Some content");
         fEvent1 = new TmfEvent(null, fTimestamp1, fSource, fType, fContent1, fReference);
     }
 
-    @Override
-    public void setUp() throws Exception {
-    }
-
-    @Override
-    public void tearDown() throws Exception {
-    }
-
+    /**
+     * Main test
+     */
+    @Test
     public void testTmfSyncSequenceDiagramEvent() {
         TmfSyncSequenceDiagramEvent event = null;
         try {
This page took 0.024006 seconds and 5 git commands to generate.