You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/12/19 09:46:03 UTC

svn commit: r488582 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParametersTest.java

Author: smishura
Date: Tue Dec 19 00:46:02 2006
New Revision: 488582

URL: http://svn.apache.org/viewvc?view=rev&rev=488582
Log:
Minor update

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=488582&r1=488581&r2=488582
==============================================================================
--- 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 Tue Dec 19 00:46:02 2006
@@ -145,6 +145,7 @@
         
         //
         // test: if format param is null
+        // Regression test for HARMONY-2680
         //
         paramSpi = new MyAlgorithmParameters() {
             protected byte[] engineGetEncoded(String format) throws IOException {
@@ -230,6 +231,7 @@
 
         //
         // test: if paramSpec is null
+        // Regression test for HARMONY-2733
         //
         paramSpi = new MyAlgorithmParameters() {
 
@@ -467,6 +469,7 @@
 
         //
         // test: if params and format are null
+        // Regression test for HARMONY-2724
         //
         paramSpi = new MyAlgorithmParameters() {
 
@@ -499,16 +502,18 @@
         assertTrue("toString() failed", MyAlgorithmParameters.runEngineToString);
     }
 
-	private class MyProvider extends Provider {
-		MyProvider() {
-			super("MyProvider", 1.0, "Provider for testing");
-            put("AlgorithmParameters.ABC", MyAlgorithmParameters.class.getName());
-		}
-		
-		MyProvider(String name, double version, String info) {
-			super(name, version, info);
-		}
-	}
+    @SuppressWarnings("serial")
+    private class MyProvider extends Provider {
+        MyProvider() {
+            super("MyProvider", 1.0, "Provider for testing");
+            put("AlgorithmParameters.ABC", MyAlgorithmParameters.class
+                    .getName());
+        }
+
+        MyProvider(String name, double version, String info) {
+            super(name, version, info);
+        }
+    }
 	
 	private class MyAlgorithmParameterSpec implements java.security.spec.AlgorithmParameterSpec{
 	}