directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1129199 - /directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
Date Mon, 30 May 2011 14:42:59 GMT
Author: elecharny
Date: Mon May 30 14:42:59 2011
New Revision: 1129199

URL: http://svn.apache.org/viewvc?rev=1129199&view=rev
Log:
Fixed the @Ignored test

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

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java?rev=1129199&r1=1129198&r2=1129199&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
Mon May 30 14:42:59 2011
@@ -23,16 +23,16 @@ import static org.junit.Assert.assertEqu
 
 import javax.security.auth.kerberos.KerberosPrincipal;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.server.kerberos.shared.store.TicketFactory;
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
 import org.apache.directory.shared.kerberos.messages.Ticket;
 import org.apache.directory.shared.util.Strings;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 /**
  * Test the Ticket encoding and decoding
  * 
@@ -43,7 +43,7 @@ import org.junit.runner.RunWith;
 public class TicketTest
 {
     @Test
-    @Ignore
+    //@Ignore
     public void testTicket() throws Exception
     {
         TicketFactory ticketFactory = new TicketFactory();
@@ -60,29 +60,28 @@ public class TicketTest
         
         byte[] expectedResult = new byte[]
             {
-              0x61, (byte)0x81, (byte)0xF7,
-                0x30,  (byte)0x81, (byte)0xF4, 
+              0x61, (byte)0x81, (byte)0xFA,
+                0x30, (byte)0x81, (byte)0xF7, 
                   (byte)0xA0, 0x03,
                     0x02, 0x01, 0x05,
                   (byte)0xA1, 0x0D,
                     0x1B, 0x0B, 
                       'E', 'X', 'A', 'M', 'P', 'L', 'E', '.', 'C', 'O', 'M',
-                  (byte)0xA2, 0x1D,
-                    0x30, 0x1B,
+                  (byte)0xA2, 0x28,
+                    0x30, 0x26,
                       (byte)0xA0, 0x03, 
                         0x02, 0x01, 0x01, 
-                      (byte)0xA1, 0x14, 
-                        0x30, 0x12, 
-                          0x1B, 0x06, 
-                            'k', 'a', 'd', 'm', 'i', 'n',
-                          0x1B, 0x08,
-                            'c', 'h', 'a', 'n', 'g', 'e', 'p', 'w',
-                  (byte)0xA3, (byte)0x81, (byte)0xBE, 
-                    0x30, (byte)0x81, (byte)0xBB,
+                      (byte)0xA1, 0x1F, 
+                        0x30, 0x1D, 
+                          0x1B, 0x1B, 
+                            'k', 'a', 'd', 'm', 'i', 'n', '/',
+                            'c', 'h', 'a', 'n', 'g', 'e', 'p', 'w', '@', 'E', 'X', 'A', 'M',
'P', 'L', 'E', '.', 'C', 'O', 'M',
+                  (byte)0xA3, (byte)0x81, (byte)0xB6, 
+                    0x30, (byte)0x81, (byte)0xB3,
                       (byte)0xA0, 0x03,
                         0x02, 0x01, 0x03,
-                      (byte)0xA2, (byte)0x81, (byte)0xB3,
-                        0x04, (byte)0x81, (byte)0xB0
+                      (byte)0xA2, (byte)0x81, (byte)0xAB,
+                        0x04, (byte)0x81, (byte)0xA8
             };
 
         // We will just compared the first bytes (everything before the encrypted data)



Mime
View raw message