harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r482929 - in /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security: Signer2Test.java SignerTest.java
Date Wed, 06 Dec 2006 06:57:47 GMT
Author: smishura
Date: Tue Dec  5 22:57:46 2006
New Revision: 482929

URL: http://svn.apache.org/viewvc?view=rev&rev=482929
Log:
Merge test case for java.security.Signer.toString()

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

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/Signer2Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/Signer2Test.java?view=diff&rev=482929&r1=482928&r2=482929
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/Signer2Test.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/Signer2Test.java
Tue Dec  5 22:57:46 2006
@@ -74,13 +74,4 @@
 		signer.setKeyPair(pair);
 		signer.getPrivateKey();
 	}
-
-	/**
-	 * @tests java.security.Signer#toString()
-	 */
-	public void test_toString() {
-		SignerImpl signer = new SignerImpl("test");
-		assertEquals("Unexpected return from toString method",
-				"[Signer]test", signer.toString());
-	}
 }

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignerTest.java?view=diff&rev=482929&r1=482928&r2=482929
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignerTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/SignerTest.java
Tue Dec  5 22:57:46 2006
@@ -57,11 +57,11 @@
     }
 
     /**
-     * verify  Signer.toString()
+     * @tests java.security.Signer#toString()
      */
-    public void testToString() throws Exception {
+    public void test_toString() throws Exception {
         Signer s1 = new SignerStub("testToString1");
-        s1.toString();
+        assertEquals("[Signer]testToString1", s1.toString());
 
         Signer s2 = new SignerStub("testToString2", IdentityScope.getSystemScope());
         s2.toString();



Mime
View raw message