You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2018/03/24 19:54:26 UTC

[directory-ldap-api] branch master updated: Fixed some test failure

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 65d26a1  Fixed some test failure
65d26a1 is described below

commit 65d26a16f13cb7311007f160ca51f1706857bd70
Author: Emmanuel Lécharny <el...@symas.com>
AuthorDate: Sat Mar 24 20:54:20 2018 +0100

    Fixed some test failure
---
 .../resources/org/apache/directory/api/i18n/errors.properties     | 8 ++++----
 .../directory/api/ldap/model/name/AvaSerializationTest.java       | 6 +++---
 .../api/ldap/model/name/SchemaAwareAvaSerializationTest.java      | 4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties b/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
index 936f438..92a3cdf 100644
--- a/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
+++ b/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
@@ -712,10 +712,10 @@ ERR_13612_POSITION_NOT_IN_RANGE=The posn({0}) should be in the range [0, {1}]
 ERR_13613_VALUE_NOT_IN_HEX_FORM_ODD_NUMBER=This value is not in hex form, we have an odd number of hex chars
 ERR_13614_VALUE_NOT_IN_HEX_FORM=This value is not in hex form
 ERR_13615_UNESCAPED_CHARS_NOT_ALLOWED=Unescaped special characters are not allowed
-ERR_13616_CANNOT_SERIALIZE_AVA_UPNAME_NULL=Cannot serialize an wrong ATAV, the upName should not be null or empty
-ERR_13617_CANNOT_SERIALIZE_AVA_UPTYPE_NULL=Cannot serialize an wrong ATAV, the upType should not be null or empty
-ERR_13618_CANNOT_SERIALIZE_AVA_NORMTYPE_NULL=Cannot serialize an wrong ATAV, the normType should not be null or empty
-ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL=Cannot serialize an wrong ATAV, the value should not be null
+ERR_13616_CANNOT_SERIALIZE_AVA_UPNAME_NULL=Cannot serialize a wrong ATAV, the upName should not be null or empty
+ERR_13617_CANNOT_SERIALIZE_AVA_UPTYPE_NULL=Cannot serialize a wrong ATAV, the upType should not be null or empty
+ERR_13618_CANNOT_SERIALIZE_AVA_NORMTYPE_NULL=Cannot serialize a wrong ATAV, the normType should not be null or empty
+ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL=Cannot serialize a wrong ATAV, the value should not be null
 ERR_13620_CANNOT_NORMALIZE_VALUE=Cannot normalize the value
 ERR_13621_ASSERTION_FAILURE=Assertion failure
 ERR_13622_DN_OR_RDN_NULL=Either the dn or the rdn is null
diff --git a/integ/src/test/java/org/apache/directory/api/ldap/model/name/AvaSerializationTest.java b/integ/src/test/java/org/apache/directory/api/ldap/model/name/AvaSerializationTest.java
index 36ec4e0..0bcbab1 100644
--- a/integ/src/test/java/org/apache/directory/api/ldap/model/name/AvaSerializationTest.java
+++ b/integ/src/test/java/org/apache/directory/api/ldap/model/name/AvaSerializationTest.java
@@ -152,7 +152,7 @@ public class AvaSerializationTest
         catch ( IOException ioe )
         {
             String message = ioe.getMessage();
-            assertEquals( "Cannot serialize a wrong ATAV, the value should not be null", message );
+            assertEquals( "ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL Cannot serialize a wrong ATAV, the value should not be null", message );
         }
     }
 
@@ -173,7 +173,7 @@ public class AvaSerializationTest
         catch ( IOException ioe )
         {
             String message = ioe.getMessage();
-            assertEquals( "Cannot serialize a wrong ATAV, the value should not be null", message );
+            assertEquals( "ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL Cannot serialize a wrong ATAV, the value should not be null", message );
         }
     }
 
@@ -313,7 +313,7 @@ public class AvaSerializationTest
         catch ( IOException ioe )
         {
             String message = ioe.getMessage();
-            assertEquals( "Cannot serialize a wrong ATAV, the value should not be null", message );
+            assertEquals( "ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL Cannot serialize a wrong ATAV, the value should not be null", message );
         }
     }
 
diff --git a/integ/src/test/java/org/apache/directory/api/ldap/model/name/SchemaAwareAvaSerializationTest.java b/integ/src/test/java/org/apache/directory/api/ldap/model/name/SchemaAwareAvaSerializationTest.java
index cc7446e..7d3f792 100644
--- a/integ/src/test/java/org/apache/directory/api/ldap/model/name/SchemaAwareAvaSerializationTest.java
+++ b/integ/src/test/java/org/apache/directory/api/ldap/model/name/SchemaAwareAvaSerializationTest.java
@@ -203,7 +203,7 @@ public class SchemaAwareAvaSerializationTest
         catch ( IOException ioe )
         {
             String message = ioe.getMessage();
-            assertEquals( "Cannot serialize a wrong ATAV, the value should not be null", message );
+            assertEquals( "ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL Cannot serialize a wrong ATAV, the value should not be null", message );
         }
     }
 
@@ -222,7 +222,7 @@ public class SchemaAwareAvaSerializationTest
         catch ( IOException ioe )
         {
             String message = ioe.getMessage();
-            assertEquals( "Cannot serialize an wrong ATAV, the value should not be null", message );
+            assertEquals( "ERR_13619_CANNOT_SERIALIZE_AVA_VALUE_NULL Cannot serialize a wrong ATAV, the value should not be null", message );
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
elecharny@apache.org.