directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1034274 - in /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec: LdapDecoderTest.java LdapMessageTest.java bind/BindRequestTest.java
Date Fri, 12 Nov 2010 06:06:31 GMT
Author: felixk
Date: Fri Nov 12 06:06:31 2010
New Revision: 1034274

URL: http://svn.apache.org/viewvc?rev=1034274&view=rev
Log:
Fix change error message from commit http://svn.apache.org/viewvc?rev=1034208&view=rev

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapMessageTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java?rev=1034274&r1=1034273&r2=1034274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
Fri Nov 12 06:06:31 2010
@@ -322,7 +322,7 @@ public class LdapDecoderTest
         }
         catch ( DecoderException de )
         {
-            assertEquals( "ERR_00002_BAD_TRANSITION Bad transition !", de.getMessage() );
+            assertEquals( "ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state
MESSAGE_ID_STATE, tag 0x2E", de.getMessage() );
             return;
         }
 
@@ -373,7 +373,7 @@ public class LdapDecoderTest
         }
         catch ( DecoderException de )
         {
-            assertEquals( "ERR_00002_BAD_TRANSITION Bad transition !", de.getMessage() );
+            assertEquals( "ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state
MESSAGE_ID_STATE, tag 0x2D", de.getMessage() );
             return;
         }
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapMessageTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapMessageTest.java?rev=1034274&r1=1034273&r2=1034274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapMessageTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/LdapMessageTest.java
Fri Nov 12 06:06:31 2010
@@ -257,7 +257,7 @@ public class LdapMessageTest
                     default:
                         String res = de.getMessage();
 
-                        if ( res.equals( "ERR_00002_BAD_TRANSITION Bad transition !" )
+                        if ( res.startsWith( "ERR_00001_BAD_TRANSITION_FROM_STATE" )
                             || res.startsWith( "Universal tag " )
                             || res.startsWith( "ERR_00010_TRUNCATED_PDU Truncated PDU" )
)
                         {

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java?rev=1034274&r1=1034273&r2=1034274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestTest.java
Fri Nov 12 06:06:31 2010
@@ -316,7 +316,7 @@ public class BindRequestTest
         }
         catch ( DecoderException de )
         {
-            assertEquals( "ERR_00002_BAD_TRANSITION Bad transition !", de.getMessage() );
+            assertEquals( "ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state
VERSION_STATE, tag 0x80", de.getMessage() );
             return;
         }
 



Mime
View raw message