commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r892118 [2/2] - in /commons/proper/lang/trunk/src/test/org/apache/commons/lang3: ./ builder/ exception/ math/ mutable/ reflect/ text/ time/
Date Fri, 18 Dec 2009 03:39:28 GMT
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsFragmentTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsFragmentTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsFragmentTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsFragmentTest.java
Fri Dec 18 03:39:13 2009
@@ -19,18 +19,10 @@
 import java.util.Calendar;
 import java.util.Date;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
 
 public class DateUtilsFragmentTest extends TestCase {
 
-    public static Test suite() {
-        TestSuite suite = new TestSuite(DateUtilsFragmentTest.class);
-        suite.setName("DateUtils Fragment Tests");
-        return suite;
-    }
-
     private static final int months = 7;   // second final prime before 12
     private static final int days = 23;    // second final prime before 31 (and valid)
     private static final int hours = 19;   // second final prime before 24

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsRoundingTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsRoundingTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsRoundingTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsRoundingTest.java
Fri Dec 18 03:39:13 2009
@@ -23,8 +23,6 @@
 import java.util.Locale;
 
 import junit.framework.TestCase;
-import junit.framework.Test;
-import junit.framework.TestSuite;
 
 /**
  * These Unit-tests will check all possible extremes when using some rounding-methods of
DateUtils.
@@ -43,12 +41,6 @@
 // TODO: Add DateUtils.ceil()-tests if method is available
 public class DateUtilsRoundingTest extends TestCase {
 
-    public static Test suite() {
-        TestSuite suite = new TestSuite(DateUtilsRoundingTest.class);
-        suite.setName("DateUtils Rounding Tests");
-        return suite;
-    }
-
     DateFormat dateTimeParser;
     
     Date januaryOneDate;

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DateUtilsTest.java Fri
Dec 18 03:39:13 2009
@@ -30,10 +30,7 @@
 import java.util.TimeZone;
 
 import junit.framework.AssertionFailedError;
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 import org.apache.commons.lang3.SystemUtils;
 
@@ -87,16 +84,6 @@
         super(name);
     }
 
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(DateUtilsTest.class);
-        suite.setName("DateUtils Tests");
-        return suite;
-    }
-
     @Override
     protected void setUp() throws Exception {
         super.setUp();
@@ -151,11 +138,6 @@
         TimeZone.setDefault(defaultZone);
     }
 
-    @Override
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     //-----------------------------------------------------------------------
     public void testConstructor() {
         assertNotNull(new DateUtils());

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DurationFormatUtilsTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
Fri Dec 18 03:39:13 2009
@@ -22,10 +22,7 @@
 import java.util.Calendar;
 import java.util.TimeZone;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 /**
  * TestCase for DurationFormatUtils.
@@ -38,16 +35,6 @@
  */
 public class DurationFormatUtilsTest extends TestCase {
 
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(DurationFormatUtilsTest.class);
-        suite.setName("DurationFormatUtils Tests");
-        return suite;
-    }
-
     public DurationFormatUtilsTest(String s) {
         super(s);
     }

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/FastDateFormatTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/FastDateFormatTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/FastDateFormatTest.java
Fri Dec 18 03:39:13 2009
@@ -23,10 +23,7 @@
 import java.util.Locale;
 import java.util.TimeZone;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 import org.apache.commons.lang3.SerializationUtils;
 
@@ -45,27 +42,6 @@
         super(name);
     }
 
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(FastDateFormatTest.class);
-        suite.setName("FastDateFormat Tests");
-
-        return suite;
-    }
-
-    @Override
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    @Override
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void test_getInstance() {
         FastDateFormat format1 = FastDateFormat.getInstance();
         FastDateFormat format2 = FastDateFormat.getInstance();

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/StopWatchTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/StopWatchTest.java?rev=892118&r1=892117&r2=892118&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/StopWatchTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/time/StopWatchTest.java Fri
Dec 18 03:39:13 2009
@@ -17,10 +17,7 @@
 package org.apache.commons.lang3.time;
 
 import junit.framework.Assert;
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 /**
  * TestCase for StopWatch.
@@ -30,16 +27,6 @@
  */
 public class StopWatchTest extends TestCase {
 
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(StopWatchTest.class);
-        suite.setName("StopWatch Tests");
-        return suite;
-    }
-
     public StopWatchTest(String s) {
         super(s);
     }



Mime
View raw message