harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r406878 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization: CodeSignerTest.java TimestampTest.java
Date Tue, 16 May 2006 09:10:49 GMT
Author: smishura
Date: Tue May 16 02:10:48 2006
New Revision: 406878

URL: http://svn.apache.org/viewcvs?rev=406878&view=rev
Log:
Removing assertDeserialized method - use serialized Date value instead of the current

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java
  (contents, props changed)

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java?rev=406878&r1=406877&r2=406878&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java
Tue May 16 02:10:48 2006
@@ -46,20 +46,8 @@
      */
     protected Object[] getData() {
         CertPath cpath = TestCertUtils.getCertPath();
-        Timestamp ts = new Timestamp(new Date(), cpath);
+        Timestamp ts = new Timestamp(new Date(1146633204309L), cpath);
         return new Object[] { new CodeSigner(cpath, ts),
                 new CodeSigner(cpath, null) };
     }
-
-    protected void assertDeserialized(Object oref, Object otest) {
-        CodeSigner ref = (CodeSigner) oref;
-        CodeSigner test = (CodeSigner) otest;
-        assertEquals(ref.getSignerCertPath(), test.getSignerCertPath());
-        /*
-         * this does not work - assertEquals( ref.getTimestamp(),
-         * test.getTimestamp()); as the ref always have the current date/time,
-         * and the test was stored some time ago, so the dates never match.
-         */
-    }
-
-}
\ No newline at end of file
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/CodeSignerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java?rev=406878&r1=406877&r2=406878&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java
Tue May 16 02:10:48 2006
@@ -45,18 +45,6 @@
      */
     protected Object[] getData() {
         CertPath cpath = TestCertUtils.getCertPath();
-        return new Object[] { new Timestamp(new Date(), cpath) };
+        return new Object[] { new Timestamp(new Date(1146633251341L), cpath) };
     }
-
-    protected void assertDeserialized(Object oref, Object otest) {
-        Timestamp ref = (Timestamp) oref;
-        Timestamp test = (Timestamp) otest;
-        assertEquals(ref.getSignerCertPath(), test.getSignerCertPath());
-        /*
-         * this does not work - assertEquals( ref.getTimestamp(),
-         * test.getTimestamp()); as the ref always have the current date/time,
-         * and the test was stored some time ago, so the dates never match.
-         */
-    }
-
-}
\ No newline at end of file
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/TimestampTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message