directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1327517 - /directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java
Date Wed, 18 Apr 2012 14:16:15 GMT
Author: elecharny
Date: Wed Apr 18 14:16:15 2012
New Revision: 1327517

URL: http://svn.apache.org/viewvc?rev=1327517&view=rev
Log:
Fixed issues with JDK 7, as the KerberosPrincpal class is now more strict.

Modified:
    directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java?rev=1327517&r1=1327516&r2=1327517&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/KerberosUtilsTest.java
Wed Apr 18 14:16:15 2012
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ * 
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ * 
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ * 
  */
 package org.apache.directory.server.kerberos.shared;
 
@@ -55,7 +55,7 @@ public class KerberosUtilsTest
     @Test
     public void testKerberosNameSimple() throws Exception
     {
-        KerberosPrincipal kp = new KerberosPrincipal( "abc" );
+        KerberosPrincipal kp = new KerberosPrincipal( "abc@APACHE.ORG" );
         List<String> names = KerberosUtils.getNames( kp );
 
         assertEquals( 1, names.size() );
@@ -90,7 +90,7 @@ public class KerberosUtilsTest
     @Test
     public void testKerberosNameThree() throws Exception
     {
-        KerberosPrincipal kp = new KerberosPrincipal( "abc/def/ghi" );
+        KerberosPrincipal kp = new KerberosPrincipal( "abc/def/ghi@APACHE.ORG" );
         List<String> names = KerberosUtils.getNames( kp );
 
         assertEquals( 3, names.size() );



Mime
View raw message