harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r566013 - /harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
Date Wed, 15 Aug 2007 03:15:01 GMT
Author: leoli
Date: Tue Aug 14 20:15:01 2007
New Revision: 566013

URL: http://svn.apache.org/viewvc?view=rev&rev=566013
Log:
Add testcase for org.ietf.jgss.Oid to ensure it support kerberos v5.

Modified:
    harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java

Modified: harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java?view=diff&rev=566013&r1=566012&r2=566013
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
Tue Aug 14 20:15:01 2007
@@ -313,4 +313,11 @@
         } catch (GSSException e) {
         }
     }
+    
+    public void test_KerberosV5() throws Exception {
+        Oid oid = new Oid("1.2.840.113554.1.2.2");
+        byte[] expectedDer = new byte[] { 6, 9, 42, -122, 72, -122, -9, 18, 1,
+                2, 2 };
+        assertTrue(Arrays.equals(expectedDer, oid.getDER()));
+    }
 }



Mime
View raw message