cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r124189 - in cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon: components/thread environment/commandline/test util/test
Date Wed, 05 Jan 2005 08:50:18 GMT
Author: antonio
Date: Wed Jan  5 00:50:15 2005
New Revision: 124189

URL: http://svn.apache.org/viewcvs?view=rev&rev=124189
Log:
Call super.tearDown() and super.setUp() methods.
Modified:
   cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java
   cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java
   cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java?view=diff&rev=124189&p1=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java&r1=124188&p2=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java&r2=124189
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/thread/AbstractTestCase.java
Wed Jan  5 00:50:15 2005
@@ -324,6 +324,7 @@
     protected void tearDown(  )
         throws Exception
     {
+        super.tearDown();
         m_controls = null;
     }
 

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java?view=diff&rev=124189&p1=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java&r1=124188&p2=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java&r2=124189
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/environment/commandline/test/CommandLineContextTestCase.java
Wed Jan  5 00:50:15 2005
@@ -67,6 +67,7 @@
      * The JUnit setup method
      */
     public void setUp() throws Exception {
+        super.setUp();
         commandLineContextDir = System.getProperty("java.io.tmpdir", "/tmp");
         new File(commandLineContextDir, "foo" + File.separator + "bar").mkdirs();
 
@@ -81,6 +82,7 @@
      * The teardown method for JUnit
      */
     public void tearDown() throws Exception {
+        super.tearDown();
         new File(commandLineContextDir, "foo" + File.separator + "bar").delete();
         new File(commandLineContextDir, "foo").delete();
     }

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java?view=diff&rev=124189&p1=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java&r1=124188&p2=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java&r2=124189
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
Wed Jan  5 00:50:15 2005
@@ -21,6 +21,7 @@
 import junit.framework.TestCase;
 
 import org.apache.cocoon.util.MIMEUtils;
+import org.apache.commons.lang.SystemUtils;
 
 /**
  * Test Cases for the MIMEUtils class.
@@ -28,12 +29,11 @@
  * Specifically, code for testing the parsing of mime.types files.
  *
  * @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
- * @version CVS $Id: MIMEUtilsTestCase.java,v 1.3 2004/03/05 13:03:04 bdelacretaz Exp $
+ * @version CVS $Id$
  */
 public class MIMEUtilsTestCase extends TestCase
 {
-
-    final String NL = System.getProperty("line.separator");
+    final String NL = SystemUtils.LINE_SEPARATOR;
     Map mimeMap;
     Map extMap;
     final String M2E = "MIME to extension mappings";
@@ -47,12 +47,14 @@
         junit.textui.TestRunner.run(MIMEUtilsTestCase.class);
     }
 
-    public void setUp() {
+    public void setUp() throws Exception {
+        super.setUp();
         mimeMap = new HashMap();
         extMap = new HashMap();
     }
 
-    public void tearDown() {
+    public void tearDown() throws Exception {
+        super.tearDown();
         mimeMap = null;
         extMap = null;
     }

Mime
View raw message