ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / src / org / eclipse / linuxtools / tmf / ui / tests / statistics / AllTests.java
index 406204d7d4663e6e731209542af8c2e1bc8e9e73..c1f8a1986ed7990dd3afb415acef7a3ac659250d 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
@@ -9,32 +9,27 @@
  * Contributors:
  *   Mathieu Denis <mathieu.denis@polymtl.ca> - Initial API and Implementation
  *   Bernd Hufmann - Fixed suite name
+ *   Alexandre Montplaisir - Port to JUnit4
  *******************************************************************************/
-package org.eclipse.linuxtools.tmf.ui.tests.statistics;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+package org.eclipse.linuxtools.tmf.ui.tests.statistics;
 
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
 
 /**
  * Test suite for statistic tests.
  */
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TmfBaseColumnDataProviderTest.class,
+    TmfBaseColumnDataTest.class,
+    TmfBaseStatisticsDataTest.class,
+    TmfStatisticsTest.class,
+    TmfStatisticsTreeNodeTest.class,
+    TmfStatisticsTreeManagerTest.class,
+    TmfTreeContentProviderTest.class
+})
 public class AllTests {
 
-    /**
-     * @return the test suite
-     */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(AllTests.class.getName());
-        // $JUnit-BEGIN$
-        suite.addTestSuite(TmfBaseColumnDataProviderTest.class);
-        suite.addTestSuite(TmfBaseColumnDataTest.class);
-        suite.addTestSuite(TmfBaseStatisticsDataTest.class);
-        suite.addTestSuite(TmfStatisticsTreeNodeTest.class);
-        suite.addTestSuite(TmfStatisticsTreeRootFactoryTest.class);
-        suite.addTestSuite(TmfTreeContentProviderTest.class);
-        suite.addTestSuite(TmfStatisticsTest.class);
-        // $JUnit-END$
-        return suite;
-    }
 }
This page took 0.026906 seconds and 5 git commands to generate.