harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r406892 - /incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/
Date Tue, 16 May 2006 10:18:18 GMT
Author: smishura
Date: Tue May 16 03:18:17 2006
New Revision: 406892

URL: http://svn.apache.org/viewcvs?rev=406892&view=rev
Log:
Removing assertDeserialized methods - Throwable objects are compared by testing framework's
comparator

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/BadPaddingExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ExemptionMechanismExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/IllegalBlockSizeExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/NoSuchPaddingExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ShortBufferExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/BadPaddingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/BadPaddingExceptionTest.java?rev=406892&r1=406891&r2=406892&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/BadPaddingExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/BadPaddingExceptionTest.java
Tue May 16 03:18:17 2006
@@ -42,17 +42,6 @@
                 new BadPaddingException(null), new BadPaddingException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        BadPaddingException ref = (BadPaddingException) oref;
-        BadPaddingException test = (BadPaddingException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(BadPaddingExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ExemptionMechanismExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ExemptionMechanismExceptionTest.java?rev=406892&r1=406891&r2=406892&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ExemptionMechanismExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ExemptionMechanismExceptionTest.java
Tue May 16 03:18:17 2006
@@ -42,17 +42,6 @@
                 new ExemptionMechanismException(null), new ExemptionMechanismException(msgs[1])
};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        ExemptionMechanismException ref = (ExemptionMechanismException) oref;
-        ExemptionMechanismException test = (ExemptionMechanismException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(ExemptionMechanismExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/IllegalBlockSizeExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/IllegalBlockSizeExceptionTest.java?rev=406892&r1=406891&r2=406892&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/IllegalBlockSizeExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/IllegalBlockSizeExceptionTest.java
Tue May 16 03:18:17 2006
@@ -42,17 +42,6 @@
                 new IllegalBlockSizeException(null), new IllegalBlockSizeException(msgs[1])
};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        IllegalBlockSizeException ref = (IllegalBlockSizeException) oref;
-        IllegalBlockSizeException test = (IllegalBlockSizeException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(IllegalBlockSizeExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/NoSuchPaddingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/NoSuchPaddingExceptionTest.java?rev=406892&r1=406891&r2=406892&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/NoSuchPaddingExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/NoSuchPaddingExceptionTest.java
Tue May 16 03:18:17 2006
@@ -42,17 +42,6 @@
                 new NoSuchPaddingException(null), new NoSuchPaddingException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        NoSuchPaddingException ref = (NoSuchPaddingException) oref;
-        NoSuchPaddingException test = (NoSuchPaddingException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(NoSuchPaddingExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ShortBufferExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ShortBufferExceptionTest.java?rev=406892&r1=406891&r2=406892&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ShortBufferExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/java/javax/crypto/serialization/ShortBufferExceptionTest.java
Tue May 16 03:18:17 2006
@@ -42,17 +42,6 @@
                 new ShortBufferException(null), new ShortBufferException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        ShortBufferException ref = (ShortBufferException) oref;
-        ShortBufferException test = (ShortBufferException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(ShortBufferExceptionTest.class);
     }



Mime
View raw message