directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r477298 [3/3] - in /directory/trunks/shared/ldap/src: main/java/org/apache/directory/shared/ldap/codec/ main/java/org/apache/directory/shared/ldap/codec/actions/ main/java/org/apache/directory/shared/ldap/exception/ main/java/org/apache/dir...
Date Mon, 20 Nov 2006 19:29:44 GMT
Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java
Mon Nov 20 11:29:41 2006
@@ -45,18 +45,22 @@
     {
         super( messageId, EXTENSION_OID );
 
-        switch ( rcode.getValue() )
+        switch ( rcode )
         {
-            case ( ResultCodeEnum.SUCCESS_VAL  ):
+            case SUCCESS :
                 break;
-            case ( ResultCodeEnum.OPERATIONSERROR_VAL  ):
+            
+            case OPERATIONS_ERROR :
                 break;
-            case ( ResultCodeEnum.INSUFFICIENTACCESSRIGHTS_VAL  ):
+            
+            case INSUFFICIENT_ACCESS_RIGHTS :
                 break;
+            
             default:
                 throw new IllegalArgumentException( "The result code can only be one of:
" + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONSERROR + ", " + ResultCodeEnum.INSUFFICIENTACCESSRIGHTS
);
+                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS
);
         }
+        
         super.getLdapResult().setMatchedDn( null );
         super.getLdapResult().setResultCode( rcode );
     }

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java
Mon Nov 20 11:29:41 2006
@@ -44,18 +44,22 @@
     {
         super( messageId, EXTENSION_OID );
 
-        switch ( rcode.getValue() )
+        switch ( rcode )
         {
-            case ( ResultCodeEnum.SUCCESS_VAL  ):
+            case SUCCESS :
                 break;
-            case ( ResultCodeEnum.OPERATIONSERROR_VAL  ):
+            
+            case OPERATIONS_ERROR :
                 break;
-            case ( ResultCodeEnum.INSUFFICIENTACCESSRIGHTS_VAL  ):
+            
+            case INSUFFICIENT_ACCESS_RIGHTS :
                 break;
+            
             default:
                 throw new IllegalArgumentException( "The result code can only be one of:
" + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONSERROR + ", " + ResultCodeEnum.INSUFFICIENTACCESSRIGHTS
);
+                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS
);
         }
+        
         super.getLdapResult().setMatchedDn( null );
         super.getLdapResult().setResultCode( rcode );
     }

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java
Mon Nov 20 11:29:41 2006
@@ -111,27 +111,31 @@
 
     public static NoticeOfDisconnect UNAVAILABLE = new NoticeOfDisconnect( ResultCodeEnum.UNAVAILABLE
);
 
-    public static NoticeOfDisconnect PROTOCOLERROR = new NoticeOfDisconnect( ResultCodeEnum.PROTOCOLERROR
);
+    public static NoticeOfDisconnect PROTOCOLERROR = new NoticeOfDisconnect( ResultCodeEnum.PROTOCOL_ERROR
);
 
-    public static NoticeOfDisconnect STRONGAUTHREQUIRED = new NoticeOfDisconnect( ResultCodeEnum.STRONGAUTHREQUIRED
);
+    public static NoticeOfDisconnect STRONGAUTHREQUIRED = new NoticeOfDisconnect( ResultCodeEnum.STRONG_AUTH_REQUIRED
);
 
 
     private NoticeOfDisconnect(ResultCodeEnum rcode)
     {
         super( 0, EXTENSION_OID );
 
-        switch ( rcode.getValue() )
+        switch ( rcode )
         {
-            case ( ResultCodeEnum.UNAVAILABLE_VAL  ):
+            case UNAVAILABLE :
                 break;
-            case ( ResultCodeEnum.PROTOCOLERROR_VAL  ):
+                
+            case PROTOCOL_ERROR :
                 break;
-            case ( ResultCodeEnum.STRONGAUTHREQUIRED_VAL  ):
+                
+            case STRONG_AUTH_REQUIRED :
                 break;
+                
             default:
                 throw new IllegalArgumentException( "The result code can only be one of:
" + ResultCodeEnum.UNAVAILABLE
-                    + ", " + ResultCodeEnum.PROTOCOLERROR + ", " + ResultCodeEnum.STRONGAUTHREQUIRED
);
+                    + ", " + ResultCodeEnum.PROTOCOL_ERROR + ", " + ResultCodeEnum.STRONG_AUTH_REQUIRED
);
         }
+        
         super.getLdapResult().setErrorMessage( "The server will disconnect!" );
         super.getLdapResult().setMatchedDn( null );
         super.getLdapResult().setResultCode( rcode );

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapResultTest.java
Mon Nov 20 11:29:41 2006
@@ -32,6 +32,7 @@
 import org.apache.directory.shared.ldap.codec.add.AddResponse;
 import org.apache.directory.shared.ldap.codec.util.LdapResultEnum;
 import org.apache.directory.shared.ldap.codec.util.LdapURL;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import java.nio.ByteBuffer;
@@ -309,7 +310,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, addResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 
@@ -377,7 +378,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( LdapResultEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
+        assertEquals( ResultCodeEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 
@@ -452,7 +453,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( LdapResultEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
+        assertEquals( ResultCodeEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 
@@ -531,7 +532,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( LdapResultEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
+        assertEquals( ResultCodeEnum.REFERRAL, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -277,7 +277,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof AddResponseImpl );
-            assertEquals( ResultCodeEnum.NAMINGVIOLATION, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.NAMING_VIOLATION, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
 
@@ -337,7 +337,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof AddResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
 
@@ -471,7 +471,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof AddResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDATTRIBUTESYNTAX, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, ((AddResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.add.AddResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -95,7 +96,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, addResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 
@@ -211,7 +212,7 @@
         AddResponse addResponse = message.getAddResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, addResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, addResponse.getLdapResult().getResultCode()
);
         assertEquals( "", addResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -270,7 +270,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof BindResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((BindResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((BindResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )
@@ -966,7 +966,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof BindResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDCREDENTIALS, ((BindResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_CREDENTIALS, ((BindResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.bind.BindResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -96,7 +97,7 @@
         BindResponse br = message.getBindResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, br.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, br.getLdapResult().getResultCode() );
         assertEquals( "", br.getLdapResult().getMatchedDN() );
         assertEquals( "", br.getLdapResult().getErrorMessage() );
 
@@ -178,7 +179,7 @@
         BindResponse br = message.getBindResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, br.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, br.getLdapResult().getResultCode() );
         assertEquals( "", br.getLdapResult().getMatchedDN() );
         assertEquals( "", br.getLdapResult().getErrorMessage() );
 
@@ -265,7 +266,7 @@
         BindResponse br = message.getBindResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, br.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, br.getLdapResult().getResultCode() );
         assertEquals( "", br.getLdapResult().getMatchedDN() );
         assertEquals( "", br.getLdapResult().getErrorMessage() );
         assertEquals( "", StringTools.utf8ToString( br.getServerSaslCreds() ) );
@@ -346,7 +347,7 @@
         BindResponse br = message.getBindResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, br.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, br.getLdapResult().getResultCode() );
         assertEquals( "", br.getLdapResult().getMatchedDN() );
         assertEquals( "", br.getLdapResult().getErrorMessage() );
         assertEquals( "", StringTools.utf8ToString( br.getServerSaslCreds() ) );
@@ -433,7 +434,7 @@
         BindResponse br = message.getBindResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, br.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, br.getLdapResult().getResultCode() );
         assertEquals( "", br.getLdapResult().getMatchedDN() );
         assertEquals( "", br.getLdapResult().getErrorMessage() );
         assertEquals( "AB", StringTools.utf8ToString( br.getServerSaslCreds() ) );

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -280,7 +280,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof CompareResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((CompareResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((CompareResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
     }
@@ -326,7 +326,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof CompareResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDATTRIBUTESYNTAX, ((CompareResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, ((CompareResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
     }

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.compare.CompareResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -98,7 +99,7 @@
         CompareResponse compareResponse = message.getCompareResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, compareResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, compareResponse.getLdapResult().getResultCode()
);
         assertEquals( "", compareResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", compareResponse.getLdapResult().getErrorMessage() );
 
@@ -176,7 +177,7 @@
         CompareResponse compareResponse = message.getCompareResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, compareResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, compareResponse.getLdapResult().getResultCode()
);
         assertEquals( "", compareResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", compareResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -148,7 +148,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof DeleteResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((DeleteResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((DeleteResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.del.DelResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -99,7 +100,7 @@
         DelResponse delResponse = message.getDelResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 33, delResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.ALIAS_PROBLEM, delResponse.getLdapResult().getResultCode()
);
         assertEquals( "uid=akarasulu,dc=example,dc=com", delResponse.getLdapResult().getMatchedDN()
);
         assertEquals( "", delResponse.getLdapResult().getErrorMessage() );
 
@@ -220,7 +221,7 @@
         DelResponse delResponse = message.getDelResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 33, delResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.ALIAS_PROBLEM, delResponse.getLdapResult().getResultCode()
);
         assertEquals( "uid=akarasulu,dc=example,dc=com", delResponse.getLdapResult().getMatchedDN()
);
         assertEquals( "", delResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.extended.ExtendedResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -95,7 +96,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
@@ -180,7 +181,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
@@ -262,7 +263,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
 
@@ -335,7 +336,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
 
@@ -535,7 +536,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
@@ -611,7 +612,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
@@ -694,7 +695,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
@@ -771,7 +772,7 @@
         ExtendedResponse extendedResponse = message.getExtendedResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, extendedResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, extendedResponse.getLdapResult().getResultCode()
);
         assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -219,7 +219,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof ModifyResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((ModifyResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((ModifyResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )
@@ -980,7 +980,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof ModifyResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDATTRIBUTESYNTAX, ((ModifyResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, ((ModifyResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.modify.ModifyResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -97,7 +98,7 @@
         ModifyResponse modifyResponse = message.getModifyResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, modifyResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, modifyResponse.getLdapResult().getResultCode()
);
         assertEquals( "", modifyResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", modifyResponse.getLdapResult().getErrorMessage() );
 
@@ -174,7 +175,7 @@
         ModifyResponse modifyResponse = message.getModifyResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, modifyResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, modifyResponse.getLdapResult().getResultCode()
);
         assertEquals( "", modifyResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", modifyResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -166,7 +166,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof ModifyDnResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )
@@ -221,7 +221,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof ModifyDnResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )
@@ -276,7 +276,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof ModifyDnResponseImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((ModifyDnResponseImpl)response).getLdapResult().getResultCode()
);
             return;
         }
         catch ( NamingException ne )

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNResponse;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -98,7 +99,7 @@
         ModifyDNResponse modifyDNResponse = message.getModifyDNResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, modifyDNResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, modifyDNResponse.getLdapResult().getResultCode()
);
         assertEquals( "", modifyDNResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", modifyDNResponse.getLdapResult().getErrorMessage() );
 
@@ -176,7 +177,7 @@
         ModifyDNResponse modifyDNResponse = message.getModifyDNResponse();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, modifyDNResponse.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, modifyDNResponse.getLdapResult().getResultCode()
);
         assertEquals( "", modifyDNResponse.getLdapResult().getMatchedDN() );
         assertEquals( "", modifyDNResponse.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
Mon Nov 20 11:29:41 2006
@@ -1527,7 +1527,7 @@
             assertTrue( de instanceof ResponseCarryingException );
             Message response = ((ResponseCarryingException)de).getResponse();
             assertTrue( response instanceof SearchResponseDoneImpl );
-            assertEquals( ResultCodeEnum.INVALIDDNSYNTAX, ((SearchResponseDoneImpl)response).getLdapResult().getResultCode()
);
+            assertEquals( ResultCodeEnum.INVALID_DN_SYNTAX, ((SearchResponseDoneImpl)response).getLdapResult().getResultCode()
);
             return;
         }
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultDoneTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultDoneTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultDoneTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultDoneTest.java
Mon Nov 20 11:29:41 2006
@@ -34,6 +34,7 @@
 import org.apache.directory.shared.ldap.codec.LdapMessage;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.search.SearchResultDone;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
 
 import junit.framework.TestCase;
@@ -96,7 +97,7 @@
         SearchResultDone searchResultDone = message.getSearchResultDone();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, searchResultDone.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, searchResultDone.getLdapResult().getResultCode()
);
         assertEquals( "", searchResultDone.getLdapResult().getMatchedDN() );
         assertEquals( "", searchResultDone.getLdapResult().getErrorMessage() );
 
@@ -173,7 +174,7 @@
         SearchResultDone searchResultDone = message.getSearchResultDone();
 
         assertEquals( 1, message.getMessageId() );
-        assertEquals( 0, searchResultDone.getLdapResult().getResultCode() );
+        assertEquals( ResultCodeEnum.SUCCESS, searchResultDone.getLdapResult().getResultCode()
);
         assertEquals( "", searchResultDone.getLdapResult().getMatchedDN() );
         assertEquals( "", searchResultDone.getLdapResult().getErrorMessage() );
 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java
Mon Nov 20 11:29:41 2006
@@ -78,8 +78,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );
@@ -116,8 +116,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=apache,dc=org" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java
Mon Nov 20 11:29:41 2006
@@ -105,8 +105,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java?view=diff&rev=477298&r1=477297&r2=477298
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java
Mon Nov 20 11:29:41 2006
@@ -154,8 +154,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );
@@ -184,8 +184,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );
@@ -214,8 +214,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=apache,dc=org")  );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );
@@ -244,8 +244,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.SIZELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.SIZE_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         refs0.addLdapUrl( "ldap://someserver.com" );
@@ -274,8 +274,8 @@
         r0.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
         r1.setMatchedDn( new LdapDN( "dc=example,dc=com" ) );
 
-        r0.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
-        r1.setResultCode( ResultCodeEnum.TIMELIMITEXCEEDED );
+        r0.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
+        r1.setResultCode( ResultCodeEnum.TIME_LIMIT_EXCEEDED );
 
         Referral refs0 = new ReferralImpl();
         r0.setReferral( refs0 );



Mime
View raw message