directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1066095 [2/2] - in /directory/shared/trunk: dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/ dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/ dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/rep...
Date Tue, 01 Feb 2011 16:56:04 GMT
Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java Tue Feb  1 16:56:03 2011
@@ -60,7 +60,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -97,7 +97,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -132,7 +132,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -167,7 +167,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -202,7 +202,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -237,7 +237,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -272,7 +272,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_requestValue.xml" ).openStream(),
                 "UTF-8" );
@@ -299,7 +299,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_base64_requestValue.xml" )
                 .openStream(), "UTF-8" );
@@ -356,7 +356,7 @@ public class ExtendedRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ExtendedRequestTest.class.getResource( "request_with_empty_requestValue.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java Tue Feb  1 16:56:03 2011
@@ -68,7 +68,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -105,7 +105,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -140,7 +140,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -175,7 +175,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -210,7 +210,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -265,7 +265,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(),
                 "UTF-8" );
@@ -294,7 +294,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -324,7 +324,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_empty_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -353,7 +353,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -393,7 +393,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_1_empty_referral.xml" )
                 .openStream(), "UTF-8" );
@@ -424,7 +424,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(),
                 "UTF-8" );
@@ -473,7 +473,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -513,7 +513,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -552,7 +552,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_responseName.xml" ).openStream(),
                 "UTF-8" );
@@ -586,7 +586,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_empty_responseName.xml" )
                 .openStream(), "UTF-8" );
@@ -623,7 +623,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_response.xml" ).openStream(),
                 "UTF-8" );
@@ -650,7 +650,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 ExtendedResponseTest.class.getResource( "response_with_base64_response.xml" ).openStream(), "UTF-8" );
@@ -677,7 +677,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_empty_response.xml" ).openStream(),
                 "UTF-8" );
@@ -704,7 +704,7 @@ public class ExtendedResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ExtendedResponseTest.class.getResource( "response_with_responseName_and_response.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java Tue Feb  1 16:56:03 2011
@@ -59,7 +59,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -96,7 +96,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -131,7 +131,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -166,7 +166,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -201,7 +201,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -236,7 +236,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -291,7 +291,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_dn_and_newrdn_attributes.xml" )
                 .openStream(), "UTF-8" );
@@ -320,7 +320,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 ModifyDNRequestTest.class.getResource( "request_with_deleteoldrdn_true.xml" ).openStream(), "UTF-8" );
@@ -347,7 +347,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_deleteoldrdn_1.xml" ).openStream(),
                 "UTF-8" );
@@ -374,7 +374,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_deleteoldrdn_false.xml" )
                 .openStream(), "UTF-8" );
@@ -401,7 +401,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_deleteoldrdn_0.xml" ).openStream(),
                 "UTF-8" );
@@ -438,7 +438,7 @@ public class ModifyDNRequestTest extends
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyDNRequestTest.class.getResource( "request_with_newSuperior_attribute.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -103,7 +103,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -138,7 +138,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -173,7 +173,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -208,7 +208,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -263,7 +263,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(),
                 "UTF-8" );
@@ -292,7 +292,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -322,7 +322,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_empty_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -351,7 +351,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -391,7 +391,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_1_empty_referral.xml" )
                 .openStream(), "UTF-8" );
@@ -422,7 +422,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(),
                 "UTF-8" );
@@ -471,7 +471,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -511,7 +511,7 @@ public class ModifyDNResponseTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyDNResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java Tue Feb  1 16:56:03 2011
@@ -67,7 +67,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 ModifyRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(), "UTF-8" );
@@ -104,7 +104,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -138,7 +138,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -173,7 +173,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -208,7 +208,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( ModifyRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(), "UTF-8" );
@@ -243,7 +243,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -289,7 +289,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_modification.xml" ).openStream(),
                 "UTF-8" );
@@ -327,7 +327,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_modification_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -370,7 +370,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_2_modifications.xml" ).openStream(),
                 "UTF-8" );
@@ -438,7 +438,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_operation_add.xml" ).openStream(),
                 "UTF-8" );
@@ -471,7 +471,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_operation_delete.xml" ).openStream(),
                 "UTF-8" );
@@ -504,7 +504,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_operation_replace.xml" ).openStream(),
                 "UTF-8" );
@@ -547,7 +547,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_modification_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -584,7 +584,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_modification_with_2_values.xml" )
                 .openStream(), "UTF-8" );
@@ -624,7 +624,7 @@ public class ModifyRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( ModifyRequestTest.class.getResource( "request_with_modification_with_empty_value.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -103,7 +103,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -138,7 +138,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -173,7 +173,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -208,7 +208,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -263,7 +263,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(),
                 "UTF-8" );
@@ -292,7 +292,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -322,7 +322,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_empty_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -351,7 +351,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -391,7 +391,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_1_empty_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -422,7 +422,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(),
                 "UTF-8" );
@@ -471,7 +471,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -511,7 +511,7 @@ public class ModifyResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ModifyResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchRequest/SearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchRequest/SearchRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchRequest/SearchRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchRequest/SearchRequestTest.java Tue Feb  1 16:56:03 2011
@@ -86,7 +86,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_dn_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -113,7 +113,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 SearchRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(), "UTF-8" );
@@ -150,7 +150,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -184,7 +184,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -219,7 +219,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -254,7 +254,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( SearchRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(), "UTF-8" );
@@ -289,7 +289,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -345,7 +345,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_scope_baseObject.xml" ).openStream(),
                 "UTF-8" );
@@ -373,7 +373,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_scope_singleLevel.xml" ).openStream(),
                 "UTF-8" );
@@ -401,7 +401,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_scope_wholeSubtree.xml" ).openStream(),
                 "UTF-8" );
@@ -449,7 +449,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_derefAliases_derefAlways.xml" )
                 .openStream(), "UTF-8" );
@@ -477,7 +477,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_derefAliases_derefFindingBaseObj.xml" )
                 .openStream(), "UTF-8" );
@@ -505,7 +505,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_derefAliases_derefInSearching.xml" )
                 .openStream(), "UTF-8" );
@@ -533,7 +533,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_derefAliases_neverDerefAliases.xml" )
                 .openStream(), "UTF-8" );
@@ -572,7 +572,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 SearchRequestTest.class.getResource( "request_with_sizeLimit_attribute.xml" ).openStream(), "UTF-8" );
@@ -611,7 +611,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 SearchRequestTest.class.getResource( "request_with_timeLimit_attribute.xml" ).openStream(), "UTF-8" );
@@ -649,7 +649,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_typesOnly_true.xml" ).openStream(),
                 "UTF-8" );
@@ -676,7 +676,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_typesOnly_1.xml" ).openStream(),
                 "UTF-8" );
@@ -703,7 +703,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_typesOnly_false.xml" ).openStream(),
                 "UTF-8" );
@@ -730,7 +730,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_typesOnly_0.xml" ).openStream(),
                 "UTF-8" );
@@ -777,7 +777,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_attributes_but_no_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -813,7 +813,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_attributes_1_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -845,7 +845,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "request_with_attributes_2_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -899,7 +899,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_and.xml" ).openStream(),
                 "UTF-8" );
@@ -928,7 +928,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( SearchRequestTest.class.getResource( "filters/request_with_or.xml" ).openStream(), "UTF-8" );
@@ -957,7 +957,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_not.xml" ).openStream(),
                 "UTF-8" );
@@ -996,7 +996,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 SearchRequestTest.class.getResource( "filters/request_with_approxMatch.xml" ).openStream(), "UTF-8" );
@@ -1031,7 +1031,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_approxMatch_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -1066,7 +1066,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_approxMatch_with_empty_value.xml" ).openStream(), "UTF-8" );
@@ -1131,7 +1131,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_greaterOrEqual.xml" )
                 .openStream(), "UTF-8" );
@@ -1166,7 +1166,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_greaterOrEqual_base64_value.xml" ).openStream(), "UTF-8" );
@@ -1201,7 +1201,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_greaterOrEqual_with_empty_value.xml" ).openStream(), "UTF-8" );
@@ -1266,7 +1266,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 SearchRequestTest.class.getResource( "filters/request_with_lessOrEqual.xml" ).openStream(), "UTF-8" );
@@ -1301,7 +1301,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_lessOrEqual_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -1336,7 +1336,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_lessOrEqual_with_empty_value.xml" ).openStream(), "UTF-8" );
@@ -1401,7 +1401,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_equalityMatch.xml" )
                 .openStream(), "UTF-8" );
@@ -1435,7 +1435,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class
                 .getResource( "filters/request_with_equalityMatch_base64_value.xml" ).openStream(), "UTF-8" );
@@ -1470,7 +1470,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_equalityMatch_with_empty_value.xml" ).openStream(), "UTF-8" );
@@ -1535,7 +1535,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_present.xml" ).openStream(),
                 "UTF-8" );
@@ -1578,7 +1578,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_extensibleMatch.xml" )
                 .openStream(), "UTF-8" );
@@ -1613,7 +1613,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_base64_value.xml" ).openStream(), "UTF-8" );
@@ -1648,7 +1648,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_empty_value.xml" ).openStream(), "UTF-8" );
@@ -1703,7 +1703,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_dnAttributes_true.xml" ).openStream(), "UTF-8" );
@@ -1736,7 +1736,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_dnAttributes_1.xml" ).openStream(), "UTF-8" );
@@ -1769,7 +1769,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_dnAttributes_false.xml" ).openStream(), "UTF-8" );
@@ -1802,7 +1802,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_dnAttributes_0.xml" ).openStream(), "UTF-8" );
@@ -1845,7 +1845,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_extensibleMatch_with_matchingRule.xml" ).openStream(), "UTF-8" );
@@ -1878,7 +1878,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_extensibleMatch_with_name.xml" )
                 .openStream(), "UTF-8" );
@@ -1911,7 +1911,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings.xml" ).openStream(),
                 "UTF-8" );
@@ -1954,7 +1954,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_initial.xml" )
                 .openStream(), "UTF-8" );
@@ -1987,7 +1987,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_substrings_1_base64_initial.xml" ).openStream(), "UTF-8" );
@@ -2020,7 +2020,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class
                 .getResource( "filters/request_with_substrings_1_empty_initial.xml" ).openStream(), "UTF-8" );
@@ -2053,7 +2053,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class
                 .getResource( "filters/request_with_substrings_1_initial_1_any.xml" ).openStream(), "UTF-8" );
@@ -2092,7 +2092,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource(
                 "filters/request_with_substrings_1_initial_1_final.xml" ).openStream(), "UTF-8" );
@@ -2127,7 +2127,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_any.xml" )
                 .openStream(), "UTF-8" );
@@ -2163,7 +2163,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_base64_any.xml" )
                 .openStream(), "UTF-8" );
@@ -2199,7 +2199,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_empty_any.xml" )
                 .openStream(), "UTF-8" );
@@ -2234,7 +2234,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_2_any.xml" )
                 .openStream(), "UTF-8" );
@@ -2273,7 +2273,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_any_1_final.xml" )
                 .openStream(), "UTF-8" );
@@ -2312,7 +2312,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_final.xml" )
                 .openStream(), "UTF-8" );
@@ -2345,7 +2345,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_base64_final.xml" )
                 .openStream(), "UTF-8" );
@@ -2378,7 +2378,7 @@ public class SearchRequestTest extends A
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( SearchRequestTest.class.getResource( "filters/request_with_substrings_1_empty_final.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/SearchResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/SearchResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/SearchResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/SearchResponseTest.java Tue Feb  1 16:56:03 2011
@@ -51,7 +51,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -88,7 +88,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_1_SRD.xml" ).openStream(), "UTF-8" );
 
@@ -114,7 +114,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_1_SRE_1_SRD.xml" ).openStream(),
                 "UTF-8" );
@@ -143,7 +143,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_1_SRR_1_SRD.xml" ).openStream(),
                 "UTF-8" );
@@ -172,7 +172,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResponseTest.class.getResource( "response_with_1_SRE_1_SRR_1_SRD.xml" ).openStream(), "UTF-8" );
@@ -203,7 +203,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_2_SRE_1_SRD.xml" ).openStream(),
                 "UTF-8" );
@@ -232,7 +232,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResponseTest.class.getResource( "response_with_2_SRR_1_SRD.xml" ).openStream(),
                 "UTF-8" );
@@ -261,7 +261,7 @@ public class SearchResponseTest extends 
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResponseTest.class.getResource( "response_with_2_SRE_2_SRR_1_SRD.xml" ).openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultDone/SearchResultDoneTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultDone/SearchResultDoneTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultDone/SearchResultDoneTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultDone/SearchResultDoneTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -102,7 +102,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -138,7 +138,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -174,7 +174,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -210,7 +210,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -268,7 +268,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_result_code.xml" ).openStream(),
                 "UTF-8" );
@@ -298,7 +298,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -329,7 +329,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_empty_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -359,7 +359,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_1_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -400,7 +400,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_1_empty_referral.xml" )
                 .openStream(), "UTF-8" );
@@ -432,7 +432,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_2_referrals.xml" ).openStream(),
                 "UTF-8" );
@@ -482,7 +482,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -523,7 +523,7 @@ public class SearchResultDoneTest extend
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultDoneTest.class.getResource( "response_with_matchedDN_attribute.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java Tue Feb  1 16:56:03 2011
@@ -65,7 +65,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -101,7 +101,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -137,7 +137,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -173,7 +173,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -229,7 +229,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_dn_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -257,7 +257,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -295,7 +295,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_0_attr.xml" ).openStream(),
                 "UTF-8" );
@@ -320,7 +320,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResultEntryTest.class.getResource( "response_with_1_attr_0_value.xml" ).openStream(), "UTF-8" );
@@ -353,7 +353,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResultEntryTest.class.getResource( "response_with_1_attr_1_value.xml" ).openStream(), "UTF-8" );
@@ -392,7 +392,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_1_attr_1_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -435,7 +435,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultEntryTest.class.getResource( "response_with_1_attr_1_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -474,7 +474,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResultEntryTest.class.getResource( "response_with_1_attr_2_value.xml" ).openStream(), "UTF-8" );
@@ -517,7 +517,7 @@ public class SearchResultEntryTest exten
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResultEntryTest.class.getResource( "response_with_2_attr_1_value.xml" ).openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultReference/SearchResultReferenceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultReference/SearchResultReferenceTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultReference/SearchResultReferenceTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultReference/SearchResultReferenceTest.java Tue Feb  1 16:56:03 2011
@@ -63,7 +63,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_1_control.xml" ).openStream(),
                 "UTF-8" );
@@ -99,7 +99,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -135,7 +135,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 SearchResultReferenceTest.class.getResource( "response_with_2_controls.xml" ).openStream(), "UTF-8" );
@@ -170,7 +170,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -206,7 +206,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -254,7 +254,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_1_ref.xml" ).openStream(),
                 "UTF-8" );
@@ -293,7 +293,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_1_empty_ref.xml" )
                 .openStream(), "UTF-8" );
@@ -323,7 +323,7 @@ public class SearchResultReferenceTest e
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( SearchResultReferenceTest.class.getResource( "response_with_2_ref.xml" ).openStream(),
                 "UTF-8" );



Mime
View raw message