directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r992752 - in /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec: LdapDecoderTest.java LdapMessageTest.java
Date Sun, 05 Sep 2010 10:15:35 GMT
Author: kayyagari
Date: Sun Sep  5 10:15:35 2010
New Revision: 992752

URL: http://svn.apache.org/viewvc?rev=992752&view=rev
Log:
o fixed the error message keys in assertions

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

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=992752&r1=992751&r2=992752&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
Sun Sep  5 10:15:35 2010
@@ -270,7 +270,7 @@ public class LdapDecoderTest
         }
         catch ( DecoderException de )
         {
-            assertEquals( "ERR_00008 The current Value length 48 is above the expected length
47", de.getMessage() );
+            assertEquals( "ERR_VALUE_LENGTH_ABOVE_EXPECTED_LENGTH_00008 The current Value
length 48 is above the expected length 47", 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=992752&r1=992751&r2=992752&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
Sun Sep  5 10:15:35 2010
@@ -258,7 +258,7 @@ public class LdapMessageTest
                         String res = de.getMessage();
 
                         if ( res.equals( "ERR_00002 Bad transition !" ) || res.startsWith(
"Universal tag " )
-                            || res.startsWith( "ERR_00010 Truncated PDU" ) )
+                            || res.startsWith( "ERR_TRUNCATED_PDU_00010 Truncated PDU" )
)
                         {
                             assertTrue( true );
                         }



Mime
View raw message