harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463624 - in /incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text: FieldPositionTest.java NumberFormatTest.java
Date Fri, 13 Oct 2006 10:06:51 GMT
Author: hindessm
Date: Fri Oct 13 03:06:50 2006
New Revision: 463624

URL: http://svn.apache.org/viewvc?view=rev&rev=463624
Log:
Converting things like:

  assertTrue(blah == [true|false|null]) to assert[True|False|Null]
  assertEquals(blah, [true,false,null]) to assert[True|False|Null]
  assertEquals([true,false,null], blah) to assert[True|False|Null]

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/FieldPositionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/FieldPositionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/FieldPositionTest.java?view=diff&rev=463624&r1=463623&r2=463624
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/FieldPositionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/FieldPositionTest.java
Fri Oct 13 03:06:50 2006
@@ -29,7 +29,7 @@
 		FieldPosition fpos = new FieldPosition(DateFormat.MONTH_FIELD);
 		assertEquals("Test1: Constructor failed to set field identifier!",
 				DateFormat.MONTH_FIELD, fpos.getField());
-		assertEquals("Constructor failed to set field attribute!", null, fpos
+		assertNull("Constructor failed to set field attribute!", fpos
 				.getFieldAttribute());
 	}
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java?view=diff&rev=463624&r1=463623&r2=463624
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
Fri Oct 13 03:06:50 2006
@@ -139,9 +139,8 @@
         assertEquals(
                 "Test5: NumberFormat.getIntegerInstance().getMaximumFractionDigits() returned
wrong value",
                 0, format.getMaximumFractionDigits());
-        assertEquals(
-                "Test6: NumberFormat.getIntegerInstance().isParseIntegerOnly() returned wrong
value",
-                true, format.isParseIntegerOnly());
+        assertTrue("Test6: NumberFormat.getIntegerInstance().isParseIntegerOnly() returned
wrong value",
+                format.isParseIntegerOnly());
 
         // try with a locale that has a different integer pattern
         format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale);
@@ -161,9 +160,9 @@
         assertEquals(
                 "Test11: NumberFormat.getIntegerInstance(new Locale(\"ar\", \"AE\")).getMaximumFractionDigits()
returned wrong value",
                 0, format.getMaximumFractionDigits());
-        assertEquals(
-                "Test12: NumberFormat.getIntegerInstance(new Locale(\"ar\", \"AE\")).isParseIntegerOnly()
returned wrong value",
-                true, format.isParseIntegerOnly());
+        assertTrue(
+                   "Test12: NumberFormat.getIntegerInstance(new Locale(\"ar\", \"AE\")).isParseIntegerOnly()
returned wrong value",
+                   format.isParseIntegerOnly());
     }
 
     /**



Mime
View raw message