Revision: 8540
Author: [email protected]
Date: Fri Aug 13 12:36:25 2010
Log: Split BigDecimal/BigInteger tests out of EmulSuite.

Suggested by: scottb
Review by: scottb

http://code.google.com/p/google-web-toolkit/source/detail?r=8540

Added:
 /trunk/user/test/com/google/gwt/emultest/BigDecimalSuite.java
 /trunk/user/test/com/google/gwt/emultest/BigIntegerSuite.java
Modified:
 /trunk/user/test/com/google/gwt/emultest/EmulSuite.java

=======================================
--- /dev/null
+++ /trunk/user/test/com/google/gwt/emultest/BigDecimalSuite.java Fri Aug 13 12:36:25 2010
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.emultest;
+
+import com.google.gwt.emultest.java.math.BigDecimalArithmeticTest;
+import com.google.gwt.emultest.java.math.BigDecimalCompareTest;
+import com.google.gwt.emultest.java.math.BigDecimalConstructorsTest;
+import com.google.gwt.emultest.java.math.BigDecimalConvertTest;
+import com.google.gwt.emultest.java.math.BigDecimalScaleOperationsTest;
+import com.google.gwt.junit.tools.GWTTestSuite;
+
+import junit.framework.Test;
+
+/**
+ * Test JRE emulation of BigDecimal.
+ */
+public class BigDecimalSuite {
+
+  /** Note: due to compiler error, only can use one Test Case at a time. */
+  public static Test suite() {
+    GWTTestSuite suite = new GWTTestSuite("Tests for BigDecimal");
+    suite.addTestSuite(BigDecimalArithmeticTest.class);
+    suite.addTestSuite(BigDecimalCompareTest.class);
+    suite.addTestSuite(BigDecimalConstructorsTest.class);
+    suite.addTestSuite(BigDecimalConvertTest.class);
+    suite.addTestSuite(BigDecimalScaleOperationsTest.class);
+    return suite;
+  }
+}
=======================================
--- /dev/null
+++ /trunk/user/test/com/google/gwt/emultest/BigIntegerSuite.java Fri Aug 13 12:36:25 2010
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.emultest;
+
+import com.google.gwt.emultest.java.math.BigIntegerAddTest;
+import com.google.gwt.emultest.java.math.BigIntegerAndTest;
+import com.google.gwt.emultest.java.math.BigIntegerCompareTest;
+import com.google.gwt.emultest.java.math.BigIntegerConstructorsTest;
+import com.google.gwt.emultest.java.math.BigIntegerConvertTest;
+import com.google.gwt.emultest.java.math.BigIntegerDivideTest;
+import com.google.gwt.emultest.java.math.BigIntegerHashCodeTest;
+import com.google.gwt.emultest.java.math.BigIntegerModPowTest;
+import com.google.gwt.emultest.java.math.BigIntegerMultiplyTest;
+import com.google.gwt.emultest.java.math.BigIntegerNotTest;
+import com.google.gwt.emultest.java.math.BigIntegerOperateBitsTest;
+import com.google.gwt.emultest.java.math.BigIntegerOrTest;
+import com.google.gwt.emultest.java.math.BigIntegerSubtractTest;
+import com.google.gwt.emultest.java.math.BigIntegerToStringTest;
+import com.google.gwt.emultest.java.math.BigIntegerXorTest;
+import com.google.gwt.junit.tools.GWTTestSuite;
+
+import junit.framework.Test;
+
+/**
+ * Test JRE emulation of BigInteger.
+ */
+public class BigIntegerSuite {
+
+  /** Note: due to compiler error, only can use one Test Case at a time. */
+  public static Test suite() {
+    GWTTestSuite suite = new GWTTestSuite("Tests for BigInteger");
+    suite.addTestSuite(BigIntegerAddTest.class);
+    suite.addTestSuite(BigIntegerAndTest.class);
+    suite.addTestSuite(BigIntegerCompareTest.class);
+    suite.addTestSuite(BigIntegerConstructorsTest.class);
+    suite.addTestSuite(BigIntegerConvertTest.class);
+    suite.addTestSuite(BigIntegerDivideTest.class);
+    suite.addTestSuite(BigIntegerHashCodeTest.class);
+    suite.addTestSuite(BigIntegerModPowTest.class);
+    suite.addTestSuite(BigIntegerMultiplyTest.class);
+    suite.addTestSuite(BigIntegerNotTest.class);
+    suite.addTestSuite(BigIntegerOperateBitsTest.class);
+    suite.addTestSuite(BigIntegerOrTest.class);
+    suite.addTestSuite(BigIntegerSubtractTest.class);
+    suite.addTestSuite(BigIntegerToStringTest.class);
+    suite.addTestSuite(BigIntegerXorTest.class);
+    return suite;
+  }
+}
=======================================
--- /trunk/user/test/com/google/gwt/emultest/EmulSuite.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/test/com/google/gwt/emultest/EmulSuite.java Fri Aug 13 12:36:25 2010
@@ -30,26 +30,6 @@
 import com.google.gwt.emultest.java.lang.StringBufferTest;
 import com.google.gwt.emultest.java.lang.StringTest;
 import com.google.gwt.emultest.java.lang.SystemTest;
-import com.google.gwt.emultest.java.math.BigDecimalArithmeticTest;
-import com.google.gwt.emultest.java.math.BigDecimalCompareTest;
-import com.google.gwt.emultest.java.math.BigDecimalConstructorsTest;
-import com.google.gwt.emultest.java.math.BigDecimalConvertTest;
-import com.google.gwt.emultest.java.math.BigDecimalScaleOperationsTest;
-import com.google.gwt.emultest.java.math.BigIntegerAddTest;
-import com.google.gwt.emultest.java.math.BigIntegerAndTest;
-import com.google.gwt.emultest.java.math.BigIntegerCompareTest;
-import com.google.gwt.emultest.java.math.BigIntegerConstructorsTest;
-import com.google.gwt.emultest.java.math.BigIntegerConvertTest;
-import com.google.gwt.emultest.java.math.BigIntegerDivideTest;
-import com.google.gwt.emultest.java.math.BigIntegerHashCodeTest;
-import com.google.gwt.emultest.java.math.BigIntegerModPowTest;
-import com.google.gwt.emultest.java.math.BigIntegerMultiplyTest;
-import com.google.gwt.emultest.java.math.BigIntegerNotTest;
-import com.google.gwt.emultest.java.math.BigIntegerOperateBitsTest;
-import com.google.gwt.emultest.java.math.BigIntegerOrTest;
-import com.google.gwt.emultest.java.math.BigIntegerSubtractTest;
-import com.google.gwt.emultest.java.math.BigIntegerToStringTest;
-import com.google.gwt.emultest.java.math.BigIntegerXorTest;
 import com.google.gwt.emultest.java.math.RoundingModeTest;
 import com.google.gwt.emultest.java.security.MessageDigestTest;
 import com.google.gwt.emultest.java.sql.SqlDateTest;
@@ -80,12 +60,14 @@
  */
 public class EmulSuite {

-  /** Note: due to compiler error, only can use one Test Case at a time. */
+  /**
+   * Note: due to compiler error, only can use one Test Case at a time.
+   */
   public static Test suite() {
GWTTestSuite suite = new GWTTestSuite("Tests for com.google.gwt.emul.java");

     // $JUnit-BEGIN$
-    // java.lang
+    //-- java.lang
     suite.addTestSuite(BooleanTest.class);
     suite.addTestSuite(ByteTest.class);
     suite.addTestSuite(CharacterTest.class);
@@ -102,30 +84,12 @@
     suite.addTestSuite(StringTest.class);
     suite.addTestSuite(SystemTest.class);

-    // java.math
-    suite.addTestSuite(BigDecimalArithmeticTest.class);
-    suite.addTestSuite(BigDecimalCompareTest.class);
-    suite.addTestSuite(BigDecimalConstructorsTest.class);
-    suite.addTestSuite(BigDecimalConvertTest.class);
-    suite.addTestSuite(BigDecimalScaleOperationsTest.class);
-    suite.addTestSuite(BigIntegerAddTest.class);
-    suite.addTestSuite(BigIntegerAndTest.class);
-    suite.addTestSuite(BigIntegerCompareTest.class);
-    suite.addTestSuite(BigIntegerConstructorsTest.class);
-    suite.addTestSuite(BigIntegerConvertTest.class);
-    suite.addTestSuite(BigIntegerDivideTest.class);
-    suite.addTestSuite(BigIntegerHashCodeTest.class);
-    suite.addTestSuite(BigIntegerModPowTest.class);
-    suite.addTestSuite(BigIntegerMultiplyTest.class);
-    suite.addTestSuite(BigIntegerNotTest.class);
-    suite.addTestSuite(BigIntegerOperateBitsTest.class);
-    suite.addTestSuite(BigIntegerOrTest.class);
-    suite.addTestSuite(BigIntegerSubtractTest.class);
-    suite.addTestSuite(BigIntegerToStringTest.class);
-    suite.addTestSuite(BigIntegerXorTest.class);
+    //-- java.math
+    // BigDecimal is tested in {...@link BigDecimalSuite}
+    // BigInteger is tested in {...@link BigIntegerSuite}
     suite.addTestSuite(RoundingModeTest.class);

-    // java.util
+    //-- java.util
     suite.addTestSuite(ApacheMapTest.class);
     suite.addTestSuite(ArrayListTest.class);
     suite.addTestSuite(ArraysTest.class);
@@ -148,7 +112,7 @@
     suite.addTest(TreeMapSuiteSub.suite());
     suite.addTest(TreeSetSuiteSub.suite());

-    // java.security
+    //-- java.security
     suite.addTestSuite(MessageDigestTest.class);
     // $JUnit-END$

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to