Fix another pile of Javadoc warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / event / TmfEventTypeManagerTest.java
index 5216666c7e7dac0eb404f131f27719b815d5196c..b5a8da94c96764f561b55fee322af64e4117257a 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************
  * Copyright (c) 2012 Ericsson
- * 
+ *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *   Francois Chouinard - Initial API and implementation
  *******************************************************************************/
@@ -22,10 +22,7 @@ import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
 import org.eclipse.linuxtools.tmf.core.event.TmfEventTypeManager;
 
 /**
- * <b><u>TmfEventTypeManagerTest</u></b>
- * <p>
  * Test suite for the TmfEventTypeManager class.
- * <p>
  */
 @SuppressWarnings("nls")
 public class TmfEventTypeManagerTest extends TestCase {
@@ -81,6 +78,9 @@ public class TmfEventTypeManagerTest extends TestCase {
     // Getters
     // ------------------------------------------------------------------------
 
+    /**
+     *
+     */
     public void testGetContexts() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -95,6 +95,9 @@ public class TmfEventTypeManagerTest extends TestCase {
         assertEquals("getContexts", fContext2, contexts[1]);
     }
 
+    /**
+     *
+     */
     public void testGetTypes() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -104,23 +107,26 @@ public class TmfEventTypeManagerTest extends TestCase {
 
         ITmfEventType[] types = fInstance.getTypes(fContext1);
         assertEquals("getTypes", 2, types.length);
-        if (fType0 == types[0])
+        if (fType0 == types[0]) {
             assertSame("getTypes", fType1, types[1]);
-        else {
+        else {
             assertSame("getTypes", fType0, types[1]);
             assertSame("getTypes", fType1, types[0]);
         }
 
         types = fInstance.getTypes(fContext2);
         assertEquals("getTypes", 2, types.length);
-        if (fType2 == types[0])
+        if (fType2 == types[0]) {
             assertSame("getTypes", fType3, types[1]);
-        else {
+        else {
             assertSame("getTypes", fType2, types[1]);
             assertSame("getTypes", fType3, types[0]);
         }
     }
 
+    /**
+     *
+     */
     public void testGetType() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -151,14 +157,20 @@ public class TmfEventTypeManagerTest extends TestCase {
     // Operations
     // ------------------------------------------------------------------------
 
+    /**
+     *
+     */
     public void testClear() {
         fInstance.clear();
         assertEquals("clear", 0, fInstance.getContexts().length);
-        assertNull("clear", fInstance.getTypes(null));
+        assertEquals("clear", 0, fInstance.getTypes(null).length);
         assertNull("clear", fInstance.getType(null, null));
         assertEquals("clear", "TmfEventTypeManager [fEventTypes={}]", fInstance.toString());
     }
 
+    /**
+     *
+     */
     public void testClearContext() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -173,7 +185,7 @@ public class TmfEventTypeManagerTest extends TestCase {
         assertEquals("clear context", fContext2, contexts[0]);
 
         ITmfEventType[] types = fInstance.getTypes(fContext1);
-        assertNull("clear context", types);
+        assertEquals("clear context", 0, types.length);
 
         ITmfEventType type = fInstance.getType(fContext1, fType0.getName());
         assertNull("clear context", type);
@@ -182,14 +194,17 @@ public class TmfEventTypeManagerTest extends TestCase {
 
         types = fInstance.getTypes(fContext2);
         assertEquals("clear context", 2, types.length);
-        if (fType2 == types[0])
+        if (fType2 == types[0]) {
             assertSame("clear context", fType3, types[1]);
-        else {
+        else {
             assertSame("clear context", fType2, types[1]);
             assertSame("clear context", fType3, types[0]);
         }
     }
 
+    /**
+     *
+     */
     public void testBasicAdd() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -209,6 +224,9 @@ public class TmfEventTypeManagerTest extends TestCase {
         assertNotSame("add", fType0, type);
     }
 
+    /**
+     *
+     */
     public void testAdd() {
         fInstance.clear();
         fInstance.add(fContext1, fType0);
@@ -224,18 +242,18 @@ public class TmfEventTypeManagerTest extends TestCase {
 
         ITmfEventType[] types = fInstance.getTypes(fContext1);
         assertEquals("add", 2, types.length);
-        if (fType0 == types[0])
+        if (fType0 == types[0]) {
             assertSame("add", fType1, types[1]);
-        else {
+        else {
             assertSame("add", fType0, types[1]);
             assertSame("add", fType1, types[0]);
         }
 
         types = fInstance.getTypes(fContext2);
         assertEquals("add", 2, types.length);
-        if (fType2 == types[0])
+        if (fType2 == types[0]) {
             assertSame("add", fType3, types[1]);
-        else {
+        else {
             assertSame("add", fType2, types[1]);
             assertSame("add", fType3, types[0]);
         }
@@ -259,6 +277,9 @@ public class TmfEventTypeManagerTest extends TestCase {
     // Object
     // ------------------------------------------------------------------------
 
+    /**
+     *
+     */
     public void testToString() {
         fInstance.clear();
         assertEquals("toString", "TmfEventTypeManager [fEventTypes={}]", fInstance.toString());
This page took 0.026191 seconds and 5 git commands to generate.