directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r688125 - in /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations: GracefulDisconnectTest.java GracefulShutdownTest.java
Date Fri, 22 Aug 2008 17:12:55 GMT
Author: elecharny
Date: Fri Aug 22 10:12:54 2008
New Revision: 688125

URL: http://svn.apache.org/viewvc?rev=688125&view=rev
Log:
o Uncommented tests.
o Switching to Junit 4 for those tests

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java?rev=688125&r1=688124&r2=688125&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
Fri Aug 22 10:12:54 2008
@@ -29,6 +29,7 @@
 import org.apache.directory.shared.ldap.codec.extended.operations.GracefulDisconnectContainer;
 import org.apache.directory.shared.ldap.codec.extended.operations.GracefulDisconnectDecoder;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -43,7 +44,8 @@
 {
     /**
      * Test the decoding of a GracefulDisconnect
-     *
+     */
+	@Test
     public void testDecodeGracefulDisconnectSuccess()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -103,11 +105,12 @@
             fail( ee.getMessage() );
         }
     }
-*/
+    
 
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline only
      */
+	@Test
     public void testDecodeGracefulDisconnectTimeOffline()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -160,6 +163,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a delay only
      */
+	@Test
     public void testDecodeGracefulDisconnectDelay()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -213,6 +217,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline and a delay
      */
+	@Test
     public void testDecodeGracefulDisconnectTimeOfflineDelay()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -266,7 +271,8 @@
 
     /**
      * Test the decoding of a GracefulDisconnect with replicatedContexts only
-     *
+     */
+	@Test
     public void testDecodeGracefulDisconnectReplicatedContextsOnly()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -326,12 +332,12 @@
             fail( ee.getMessage() );
         }
     }
-*/
 
 
     /**
      * Test the decoding of a empty GracefulDisconnect
      */
+	@Test
     public void testDecodeGracefulDisconnectEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -385,6 +391,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline off limit
      */
+	@Test
     public void testDecodeGracefulDisconnectTimeOfflineOffLimit()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -415,6 +422,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a delay off limit
      */
+	@Test
     public void testDecodeGracefulDisconnectDelayOffLimit()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -448,6 +456,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with an empty TimeOffline
      */
+	@Test
     public void testDecodeGracefulDisconnectTimeOfflineEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -477,6 +486,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with an empty delay
      */
+	@Test
     public void testDecodeGracefulDisconnectDelayEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -507,6 +517,7 @@
      * Test the decoding of a GracefulDisconnect with an empty replicated
      * contexts
      */
+	@Test
     public void testDecodeGracefulDisconnectReplicatedContextsEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
@@ -537,6 +548,7 @@
      * Test the decoding of a GracefulDisconnect with an invalid replicated
      * context
      */
+	@Test
     public void testDecodeGracefulDisconnectReplicatedContextsInvalid()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java?rev=688125&r1=688124&r2=688125&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java
Fri Aug 22 10:12:54 2008
@@ -29,6 +29,7 @@
 import org.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdown;
 import org.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdownContainer;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -44,6 +45,7 @@
     /**
      * Test the decoding of a GracefulShutdown
      */
+	@Test
     public void testDecodeGracefulShutdownSuccess()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -98,6 +100,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a timeOffline only
      */
+	@Test
     public void testDecodeGracefulShutdownTimeOffline()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -149,6 +152,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay only
      */
+	@Test
     public void testDecodeGracefulShutdownDelay()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -201,6 +205,7 @@
     /**
      * Test the decoding of a empty GracefulShutdown
      */
+	@Test
     public void testDecodeGracefulShutdownEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -251,6 +256,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay above 128
      */
+	@Test
     public void testDecodeGracefulShutdownDelayHigh()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -304,6 +310,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay equals 32767
      */
+	@Test
     public void testDecodeGracefulShutdownDelay32767()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -357,6 +364,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay above 32768
      */
+	@Test
     public void testDecodeGracefulShutdownDelay32768()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -414,6 +422,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a timeOffline off limit
      */
+	@Test
     public void testDecodeGracefulShutdownTimeOfflineOffLimit()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -444,6 +453,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay off limit
      */
+	@Test
     public void testDecodeGracefulShutdownDelayOffLimit()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -477,6 +487,7 @@
     /**
      * Test the decoding of a GracefulShutdown with an empty TimeOffline
      */
+	@Test
     public void testDecodeGracefulShutdownTimeOfflineEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();
@@ -506,6 +517,7 @@
     /**
      * Test the decoding of a GracefulShutdown with an empty delay
      */
+	@Test
     public void testDecodeGracefulShutdownDelayEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();



Mime
View raw message