directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r895188 - /directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java
Date Sat, 02 Jan 2010 13:23:58 GMT
Author: elecharny
Date: Sat Jan  2 13:23:58 2010
New Revision: 895188

URL: http://svn.apache.org/viewvc?rev=895188&view=rev
Log:
o Stopped the server at the end of the test
o Minor refactoring

Modified:
    directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java

Modified: directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java?rev=895188&r1=895187&r2=895188&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java
(original)
+++ directory/apacheds/branches/apacheds-schema/server-annotations/src/test/java/org/apache/directory/server/factory/CreateKdcServerAnnotationTest.java
Sat Jan  2 13:23:58 2010
@@ -20,12 +20,10 @@
 
 package org.apache.directory.server.factory;
 
-
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
 
 import org.apache.directory.server.annotations.CreateKdcServer;
 import org.apache.directory.server.annotations.CreateTransport;
-import org.apache.directory.server.annotations.TransportType;
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.annotations.CreateDS;
 import org.apache.directory.server.core.factory.DSAnnotationProcessor;
@@ -33,7 +31,7 @@
 import org.junit.Test;
 
 /**
- * TODO CreateKdcServerAnnotationTest.
+ * Test the Kerberos Server annotation processing
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
@@ -44,9 +42,10 @@
                  maxTicketLifetime = 1000,
                  maxRenewableLifetime = 2000,
                  transports = 
-                     { @CreateTransport(protocol = "TCP"),
-                       @CreateTransport(protocol = "UDP")
-                     })
+                 { 
+                     @CreateTransport(protocol = "TCP"),
+                     @CreateTransport(protocol = "UDP")
+                 })
 public class CreateKdcServerAnnotationTest
 {
     @Test
@@ -65,5 +64,7 @@
         assertEquals( "krbtgt/apache.org@apache.org", server.getServicePrincipal().getName()
);
         assertEquals( 1000, server.getMaximumTicketLifetime() );
         assertEquals( 2000, server.getMaximumRenewableLifetime() );
+        
+        server.stop();
     }
 }



Mime
View raw message