You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by tv...@apache.org on 2011/01/25 18:50:58 UTC

svn commit: r1063376 - /turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java

Author: tv
Date: Tue Jan 25 17:50:58 2011
New Revision: 1063376

URL: http://svn.apache.org/viewvc?rev=1063376&view=rev
Log:
Fix test to be a good Testcontainer citizen

Modified:
    turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java

Modified: turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java?rev=1063376&r1=1063375&r2=1063376&view=diff
==============================================================================
--- turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java (original)
+++ turbine/fulcrum/trunk/template/src/test/org/apache/fulcrum/template/TemplateServiceTest.java Tue Jan 25 17:50:58 2011
@@ -20,12 +20,9 @@ package org.apache.fulcrum.template;
  */
 
 
-import junit.awtui.TestRunner;
-import junit.framework.Test;
-import junit.framework.TestSuite;
 import org.apache.avalon.framework.component.ComponentException;
-import org.apache.fulcrum.template.TemplateService;
 import org.apache.fulcrum.testcontainer.BaseUnitTest;
+
 /**
  * TemplateServiceTest
  *
@@ -37,8 +34,6 @@ public class TemplateServiceTest extends
 {
     private TemplateService templateService = null;
 
-
-
     /**
      * Defines the testcase name for JUnit.
      *
@@ -48,26 +43,8 @@ public class TemplateServiceTest extends
     {
         super(name);
     }
-    /**
-     * Start the tests.
-     *
-     * @param args the arguments. Not used
-     */
-    public static void main(String args[])
-    {
-        TestRunner.main(new String[] { TemplateServiceTest.class.getName()});
-    }
-    /**
-     * Creates the test suite.
-     *
-     * @return a test suite (<code>TestSuite</code>) that includes all methods
-     *         starting with "test"
-     */
-    public static Test suite()
-    {
-        // All methods starting with "test" will be executed in the test suite.
-        return new TestSuite(TemplateServiceTest.class);
-    }
+
+    @Override
     protected void setUp() throws Exception
     {
         super.setUp();
@@ -81,13 +58,13 @@ public class TemplateServiceTest extends
             fail(e.getMessage());
         }
     }
+
     /**
      * Simple test that verify an object can be created and deleted.
      * @throws Exception
      */
     public void testSimpleAddGetCacheObject() throws Exception
     {
-
-
+        // TODO: write some tests
     }
-  }
+}