harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r494721 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java
Date Wed, 10 Jan 2007 05:38:36 GMT
Author: smishura
Date: Tue Jan  9 21:38:30 2007
New Revision: 494721

URL: http://svn.apache.org/viewvc?view=rev&rev=494721
Log:
Regression test for HARMONY-2882:
[classlib][security]PKIXParameters.setDate(null) has no effect on the original date value
on RI but Harmony sets it to null.

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java?view=diff&rev=494721&r1=494720&r2=494721
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/PKIXParametersTest.java
Tue Jan  9 21:38:30 2007
@@ -996,6 +996,12 @@
         // set another 'date'
         p.setDate(new Date(333L));
         assertEquals(333L, p.getDate().getTime());
+        
+        // Regression for HARMONY-2882 (non-bug difference from RI)
+        p = new PKIXParameters(taSet);
+        p.setDate(new Date(555L));
+        p.setDate(null); // reset 'date' back to current time
+        assertNull(p.getDate());
     }
 
     /**



Mime
View raw message