harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r504444 - in /harmony/enhanced/classlib/trunk/modules: auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java security/src/test/api/java/tests/api/java/security/PrincipalTest.java
Date Wed, 07 Feb 2007 05:43:06 GMT
Author: smishura
Date: Tue Feb  6 21:43:05 2007
New Revision: 504444

URL: http://svn.apache.org/viewvc?view=rev&rev=504444
Log:
Move test to correct module('auth')

Removed:
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PrincipalTest.java
Modified:
    harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java

Modified: harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java?view=diff&rev=504444&r1=504443&r2=504444
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/x500/X500PrincipalTest.java
Tue Feb  6 21:43:05 2007
@@ -206,6 +206,17 @@
     }
 
     /**
+     * @tests javax.security.auth.x500.X500Principal#equals(Object)
+     */
+    public void test_equalsLjava_lang_Object() {
+        X500Principal xp1 = new X500Principal(
+                "C=US, ST=California, L=San Diego, O=Apache, OU=Project Harmony, CN=Test
cert");
+        assertEquals(
+                "C=US,ST=California,L=San Diego,O=Apache,OU=Project Harmony,CN=Test cert",
+                xp1.getName());
+    }
+
+    /**
      * Inits X500Principal with byte array, where Oid does fall into any keyword, but not
given as a keyword
      * Value is given as hex value
      * (extra spaces are given)



Mime
View raw message