commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r631652 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/
Date Wed, 27 Feb 2008 17:12:43 GMT
Author: niallp
Date: Wed Feb 27 09:12:38 2008
New Revision: 631652

URL: http://svn.apache.org/viewvc?rev=631652&view=rev
Log:
Remove previous ExtendedMesageFormat tests and update package suite to include ExtendedMessageFormatTest

Removed:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatBaselineTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/MessageFormatExtensionTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/MessageFormatTest.java
Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/TextTestSuite.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java?rev=631652&r1=631651&r2=631652&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
Wed Feb 27 09:12:38 2008
@@ -27,7 +27,9 @@
 import java.util.Locale;
 import java.util.Map;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 /**
  * Test case for {@link ExtendedMessageFormat}.
@@ -44,6 +46,17 @@
                                                  Locale.GERMANY};
 
     private Map registry = new HashMap();
+
+    /**
+     * Return a new test suite containing this test case.
+     * 
+     * @return a new test suite containing this test case
+     */
+    public static Test suite() {
+        TestSuite suite = new TestSuite(ExtendedMessageFormatTest.class);
+        suite.setName("ExtendedMessageFormat Tests");
+        return suite;
+    }
 
     /**
      * Create a new test case.

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/TextTestSuite.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/TextTestSuite.java?rev=631652&r1=631651&r2=631652&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/TextTestSuite.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/TextTestSuite.java Wed
Feb 27 09:12:38 2008
@@ -50,42 +50,13 @@
         TestSuite suite = new TestSuite();
         suite.setName("Commons-Lang-Text Tests");
         suite.addTest(CompositeFormatTest.suite());
+        suite.addTest(ExtendedMessageFormatTest.suite());
         suite.addTest(StrBuilderTest.suite());
         suite.addTest(StrBuilderAppendInsertTest.suite());
         suite.addTest(StrLookupTest.suite());
         suite.addTest(StrMatcherTest.suite());
         suite.addTest(StrSubstitutorTest.suite());
         suite.addTest(StrTokenizerTest.suite());
-        suite.addTestSuite(MessageFormatTest.US.class);
-        suite.addTestSuite(MessageFormatTest.UK.class);
-        suite.addTestSuite(MessageFormatTest.DE.class);
-        suite.addTestSuite(MessageFormatTest.IT.class);
-        suite.addTestSuite(MessageFormatTest.JP.class);
-        suite.addTestSuite(MessageFormatTest.CA.class);
-        suite.addTestSuite(MessageFormatTest.CN.class);
-        suite.addTestSuite(MessageFormatTest.FR.class);
-        suite.addTestSuite(MessageFormatTest.KR.class);
-        suite.addTestSuite(MessageFormatTest.TW.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.US.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.UK.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.DE.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.IT.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.JP.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.CA.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.CN.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.FR.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.KR.class);
-        suite.addTestSuite(ExtendedMessageFormatBaselineTest.TW.class);
-        suite.addTestSuite(MessageFormatExtensionTest.US.class);
-        suite.addTestSuite(MessageFormatExtensionTest.UK.class);
-        suite.addTestSuite(MessageFormatExtensionTest.DE.class);
-        suite.addTestSuite(MessageFormatExtensionTest.IT.class);
-        suite.addTestSuite(MessageFormatExtensionTest.JP.class);
-        suite.addTestSuite(MessageFormatExtensionTest.CA.class);
-        suite.addTestSuite(MessageFormatExtensionTest.CN.class);
-        suite.addTestSuite(MessageFormatExtensionTest.FR.class);
-        suite.addTestSuite(MessageFormatExtensionTest.KR.class);
-        suite.addTestSuite(MessageFormatExtensionTest.TW.class);
         return suite;
     }
 



Mime
View raw message