harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r640708 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignedObjectTest.java
Date Tue, 25 Mar 2008 06:09:15 GMT
Author: smishura
Date: Mon Mar 24 23:09:00 2008
New Revision: 640708

URL: http://svn.apache.org/viewvc?rev=640708&view=rev
Log:
Formatting

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

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignedObjectTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignedObjectTest.java?rev=640708&r1=640707&r2=640708&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignedObjectTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignedObjectTest.java
Mon Mar 24 23:09:00 2008
@@ -15,38 +15,36 @@
  *  limitations under the License.
  */
 
-/**
-* @author Boris V. Kuznetsov
-* @version $Revision$
-*/
-
 package org.apache.harmony.security.tests.java.security;
-import java.security.*;
-import java.util.Properties;
 
-import org.apache.harmony.security.tests.support.TestKeyPair;
+import java.security.NoSuchAlgorithmException;
+import java.security.Signature;
+import java.security.SignedObject;
+import java.util.Properties;
 
 import junit.framework.TestCase;
 
+import org.apache.harmony.security.tests.support.TestKeyPair;
+
 /**
  * Tests for <code>SignedObject</code> constructor and methods
  */
 public class SignedObjectTest extends TestCase {
 
     public void testSignedObject() throws Exception {
-		TestKeyPair tkp = null;
-	    Properties prop;
-	    
-        Signature sig = Signature.getInstance("SHA1withDSA");		
-    	
-    	try {
-			tkp = new TestKeyPair("DSA");
-		} catch (NoSuchAlgorithmException e) {
-    		e.printStackTrace();
-    		return;
-		}
-    	prop = new Properties();
-    	prop.put("aaa", "bbb");
+        TestKeyPair tkp = null;
+        Properties prop;
+
+        Signature sig = Signature.getInstance("SHA1withDSA");
+
+        try {
+            tkp = new TestKeyPair("DSA");
+        } catch (NoSuchAlgorithmException e) {
+            e.printStackTrace();
+            return;
+        }
+        prop = new Properties();
+        prop.put("aaa", "bbb");
 
         SignedObject so = new SignedObject(prop, tkp.getPrivate(), sig);
 
@@ -56,5 +54,5 @@
         assertTrue("verify() failed", so.verify(tkp.getPublic(), sig));
 
         assertNotNull("signature is null", so.getSignature());
-	}
+    }
 }



Mime
View raw message