Improved one-time setup of test suites
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / src / org / eclipse / linuxtools / tmf / ui / tests / views / uml2sd / impl / TmfUml2SDSyncLoaderPagesTest.java
index 80b088ada75e79fd8f32feab6c85b840c4fccec2..8edd11104365a34253129d4c40f057e20c2e9700 100644 (file)
@@ -11,7 +11,9 @@
  *******************************************************************************/
 package org.eclipse.linuxtools.tmf.ui.tests.views.uml2sd.impl;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 public class TmfUml2SDSyncLoaderPagesTest extends TestCase {
 
@@ -20,6 +22,18 @@ public class TmfUml2SDSyncLoaderPagesTest extends TestCase {
     // ------------------------------------------------------------------------
     private Uml2SDTestFacility fFacility;
 
+    // ------------------------------------------------------------------------
+    // Static methods
+    // ------------------------------------------------------------------------ 
+
+    /**
+     * Returns test setup used when executing test case stand-alone.
+     * @return Test setup class 
+     */
+    public static Test suite() {
+        return new Uml2SDTestSetup(new TestSuite(TmfUml2SDSyncLoaderPagesTest.class));
+    }
+
     // ------------------------------------------------------------------------
     // Constructors
     // ------------------------------------------------------------------------
@@ -33,7 +47,6 @@ public class TmfUml2SDSyncLoaderPagesTest extends TestCase {
     public void setUp() throws Exception {
         super.setUp();
         fFacility = Uml2SDTestFacility.getInstance();
-        fFacility.init(false);
         fFacility.selectExperiment();
     }
 
@@ -41,7 +54,6 @@ public class TmfUml2SDSyncLoaderPagesTest extends TestCase {
     @Override
     public void tearDown() throws Exception {
         fFacility.disposeExperiment();
-        fFacility.dispose();
         fFacility = null;
         super.tearDown();
     }
This page took 0.025597 seconds and 5 git commands to generate.