Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 64186 invoked from network); 2 Dec 2010 16:31:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 16:31:05 -0000 Received: (qmail 82117 invoked by uid 500); 2 Dec 2010 16:31:05 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 82060 invoked by uid 500); 2 Dec 2010 16:31:04 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 82053 invoked by uid 99); 2 Dec 2010 16:31:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 16:31:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 16:31:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 43AE523889E9; Thu, 2 Dec 2010 16:29:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1041434 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java Date: Thu, 02 Dec 2010 16:29:31 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101202162931.43AE523889E9@eris.apache.org> Author: elecharny Date: Thu Dec 2 16:29:19 2010 New Revision: 1041434 URL: http://svn.apache.org/viewvc?rev=1041434&view=rev Log: Some fixes Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java?rev=1041434&r1=1041433&r2=1041434&view=diff ============================================================================== --- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java (original) +++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/value/AuthorizationDataTest.java Thu Dec 2 16:29:19 2010 @@ -20,17 +20,19 @@ package org.apache.directory.server.kerberos.shared.messages.value; +import static org.junit.Assert.assertTrue; + import java.nio.ByteBuffer; import java.util.Arrays; import org.apache.directory.junit.tools.Concurrent; import org.apache.directory.junit.tools.ConcurrentJunitRunner; -import org.apache.directory.server.kerberos.shared.messages.value.types.AuthorizationType; +import org.apache.directory.shared.kerberos.codec.types.AuthorizationType; +import org.apache.directory.shared.kerberos.components.AuthorizationData; +import org.apache.directory.shared.kerberos.components.AuthorizationDataEntry; import org.junit.Test; import org.junit.runner.RunWith; -import static org.junit.Assert.assertTrue; - /** * Test the AuthorizationData encoding and decoding * @@ -44,7 +46,7 @@ public class AuthorizationDataTest public void testAuthorizationDataOneAD() throws Exception { AuthorizationData ad = new AuthorizationData(); - ad.add( new AuthorizationDataEntry( AuthorizationType.AD_KDC_ISSUED, new byte[] + ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_KDC_ISSUED, new byte[] { 0x01, 0x02, 0x03, 0x04 } ) ); ByteBuffer encoded = ByteBuffer.allocate( ad.computeLength() ); @@ -69,11 +71,11 @@ public class AuthorizationDataTest public void testAuthorizationDataThreeAD() throws Exception { AuthorizationData ad = new AuthorizationData(); - ad.add( new AuthorizationDataEntry( AuthorizationType.AD_KDC_ISSUED, new byte[] + ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_KDC_ISSUED, new byte[] { 0x01, 0x02, 0x03, 0x04 } ) ); - ad.add( new AuthorizationDataEntry( AuthorizationType.AD_IF_RELEVANT, new byte[] + ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_IF_RELEVANT, new byte[] { 0x05, 0x06, 0x07, 0x08 } ) ); - ad.add( new AuthorizationDataEntry( AuthorizationType.AD_MANDATORY_TICKET_EXTENSIONS, new byte[] + ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_MANDATORY_TICKET_EXTENSIONS, new byte[] { 0x09, 0x0A, 0x0B, 0x0C } ) ); ByteBuffer encoded = ByteBuffer.allocate( ad.computeLength() );