harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r422299 - /incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
Date Sat, 15 Jul 2006 22:09:01 GMT
Author: ndbeyer
Date: Sat Jul 15 15:09:01 2006
New Revision: 422299

URL: http://svn.apache.org/viewvc?rev=422299&view=rev
Log:
Apply modified patch for HARMONY-879: [classlib][text] DecimalFormat.setMultiplier(-1) throws
IllegalArgumentException while RI set negative value

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java?rev=422299&r1=422298&r2=422299&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
Sat Jul 15 15:09:01 2006
@@ -1453,6 +1453,10 @@
         assertEquals("Wrong format", "50", df.format(5));
         assertEquals("Wrong parse", 5, df.parse("50", new ParsePosition(0))
                 .intValue());
+        
+        // regression test for HARMONY-879
+        df.setMultiplier(-1);
+        assertEquals("Wrong  multiplier for negative value", -1, df.getMultiplier());
     }
 
     /**



Mime
View raw message