lttng: Port unit tests to JUnit4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui.tests / src / org / eclipse / linuxtools / lttng2 / ui / tests / control / model / component / AllTests.java
index c255963ffac8e1e551299c430b6ddf55c68a4000..922b8ba54bef056b275ffb94b4fc768f2bec1d04 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,28 +8,28 @@
  *
  * Contributors:
  *   Bernd Hufmann - Initial API and implementation
+ *   Alexandre Montplaisir - Port to JUnit4
  *******************************************************************************/
+
 package org.eclipse.linuxtools.lttng2.ui.tests.control.model.component;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
 
-@SuppressWarnings("javadoc")
+/**
+ * Runner for the control.model.component unit tests.
+ */
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TraceControlComponentTest.class,
+    TraceControlKernelProviderTests.class,
+    TraceControlKernelSessionTests.class,
+    TraceControlPropertiesTest.class,
+    TraceControlTreeModelNoProvidersTest.class,
+    TraceControlTreeModelTest.class,
+    TraceControlUstProviderTests.class,
+    TraceControlUstSessionTests.class
+})
 public class AllTests {
 
-    public static Test suite() {
-
-        TestSuite suite = new TestSuite(AllTests.class.getName());
-        //$JUnit-BEGIN$
-        suite.addTestSuite(TraceControlComponentTest.class);
-        suite.addTestSuite(TraceControlTreeModelTest.class);
-        suite.addTestSuite(TraceControlTreeModelNoProvidersTest.class);
-        suite.addTestSuite(TraceControlKernelProviderTests.class);
-        suite.addTestSuite(TraceControlUstProviderTests.class);
-        suite.addTestSuite(TraceControlKernelSessionTests.class);
-        suite.addTestSuite(TraceControlUstSessionTests.class);
-        suite.addTestSuite(TraceControlPropertiesTest.class);
-        //$JUnit-END$
-        return new ModelImplTestSetup(suite);
-    }
 }
This page took 0.025558 seconds and 5 git commands to generate.