@@ -0,0 +1,1886 @@
+/*%0A *  Licensed to the Apache Software Foundation (ASF) under one or more%0A *  contributor license agreements.  See the NOTICE file distributed with%0A *  this work for additional information regarding copyright ownership.%0A *  The ASF licenses this file to You under the Apache License, Version 2.0%0A *  (the %22License%22); you may not use this file except in compliance with%0A *  the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *  Unless required by applicable law or agreed to in writing, software%0A *  distributed under the License is distributed on an %22AS IS%22 BASIS,%0A *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A *  See the License for the specific language governing permissions and%0A *  limitations under the License.%0A */%0A%0A/**%0A* @author Boris V. Kuznetsov%0A* @version $Revision$%0A*/%0A%0Apackage org.apache.harmony.security.tests.java.security;%0Aimport java.security.*;%0Aimport java.util.Properties;%0A%0Aimport org.apache.harmony.security.tests.support.TestKeyPair;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Tests for %3Ccode%3ESignedObject%3C/code%3E constructor and methods%0A */%0Apublic class SignedObjectTest extends TestCase %7B%0A%0A    public void testSignedObject() throws Exception %7B%0A%09%09TestKeyPair tkp = null;%0A%09    Properties prop;%0A%09    %0A        Signature sig = Signature.getInstance(%22SHA1withDSA%22);%09%09%0A    %09%0A    %09try %7B%0A%09%09%09tkp = new TestKeyPair(%22DSA%22);%0A%09%09%7D catch (NoSuchAlgorithmException e) %7B%0A    %09%09e.printStackTrace();%0A    %09%09return;%0A%09%09%7D%0A    %09prop = new Properties();%0A    %09prop.put(%22aaa%22, %22bbb%22);%0A%0A        SignedObject so = new SignedObject(prop, tkp.getPrivate(), sig);%0A%0A        assertEquals(%22SHA1withDSA%22, so.getAlgorithm());%0A        assertEquals(prop, so.getObject());%0A%0A        assertTrue(%22verify() failed%22, so.verify(tkp.getPublic(), sig));%0A%0A        assertNotNull(%22signature is null%22, so.getSignature());%0A%09%7D%0A%7D%0A

Fix JUnit style