harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r497742 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java
Date Fri, 19 Jan 2007 08:48:45 GMT
Author: smishura
Date: Fri Jan 19 00:48:45 2007
New Revision: 497742

URL: http://svn.apache.org/viewvc?view=rev&rev=497742
Log:
Test for HARMONY-2678:
[classlib][security]AlgorithmParameters fails to getInstance from "OAEP"

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

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java?view=diff&rev=497742&r1=497741&r2=497742
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java
Fri Jan 19 00:48:45 2007
@@ -561,6 +561,15 @@
             // expected
         }
     }
+
+    /**
+     * Tests OAEP AlgorithmParameters provider
+     */
+    public void testOAEPProvider() throws Exception {
+        AlgorithmParameters params = AlgorithmParameters.getInstance("OAEP");
+
+        assertEquals("Algorithm", "OAEP", params.getAlgorithm());
+    }
     
 	private void checkUnititialized(AlgorithmParameters ap) {
         assertNull("Uninitialized: toString() failed", ap.toString());



Mime
View raw message