directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1066095 [1/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
Author: elecharny
Date: Tue Feb  1 16:56:03 2011
New Revision: 1066095

URL: http://svn.apache.org/viewvc?rev=1066095&view=rev
Log:
Removed the declaration of the LdapCodecService from the Dsml grammars

Modified:
    directory/shared/trunk/dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/Dsmlv2Engine.java
    directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Container.java
    directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Parser.java
    directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2ResponseParser.java
    directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/reponse/Dsmlv2ResponseGrammar.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/abandonRequest/AbandonRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addRequest/AddRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addResponse/AddResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareResponse/CompareResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchRequest/SearchRequestTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/SearchResponseTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultDone/SearchResultDoneTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
    directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/searchResponse/searchResultReference/SearchResultReferenceTest.java

Modified: directory/shared/trunk/dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/Dsmlv2Engine.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/Dsmlv2Engine.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/Dsmlv2Engine.java (original)
+++ directory/shared/trunk/dsml-engine/src/main/java/org/apache/directory/shared/dsmlv2/engine/Dsmlv2Engine.java Tue Feb  1 16:56:03 2011
@@ -48,8 +48,11 @@ import org.apache.directory.shared.dsmlv
 import org.apache.directory.shared.dsmlv2.request.BatchRequest.Processing;
 import org.apache.directory.shared.dsmlv2.request.BatchRequest.ResponseOrder;
 import org.apache.directory.shared.i18n.I18n;
+import org.apache.directory.shared.ldap.codec.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.model.cursor.Cursor;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
+import org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.shared.ldap.model.message.AbandonRequest;
 import org.apache.directory.shared.ldap.model.message.AddRequest;
 import org.apache.directory.shared.ldap.model.message.AddResponse;
@@ -109,6 +112,8 @@ public class Dsmlv2Engine
 
     /** The batch response. */
     private BatchResponseDsml batchResponse;
+    
+    private ILdapCodecService codec = new DefaultLdapCodecService();
 
 
     /**
@@ -140,7 +145,7 @@ public class Dsmlv2Engine
      */
     public String processDSML( String dsmlInput ) throws XmlPullParserException
     {
-        parser = new Dsmlv2Parser();
+        parser = new Dsmlv2Parser( codec );
         parser.setInput( dsmlInput );
 
         return processDSML();
@@ -161,7 +166,7 @@ public class Dsmlv2Engine
      */
     public String processDSMLFile( String fileName ) throws XmlPullParserException, FileNotFoundException
     {
-        parser = new Dsmlv2Parser();
+        parser = new Dsmlv2Parser( codec );
         parser.setInputFile( fileName );
 
         return processDSML();
@@ -182,7 +187,7 @@ public class Dsmlv2Engine
      */
     public String processDSML( InputStream inputStream, String inputEncoding ) throws XmlPullParserException
     {
-        parser = new Dsmlv2Parser();
+        parser = new Dsmlv2Parser( codec );
         parser.setInput( inputStream, inputEncoding );
         return processDSML();
     }

Modified: directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Container.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Container.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Container.java (original)
+++ directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Container.java Tue Feb  1 16:56:03 2011
@@ -21,8 +21,10 @@
 package org.apache.directory.shared.dsmlv2;
 
 
+import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.dsmlv2.reponse.BatchResponse;
 import org.apache.directory.shared.dsmlv2.request.BatchRequest;
+import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.xmlpull.v1.XmlPullParser;
 
 
@@ -55,8 +57,31 @@ public class Dsmlv2Container implements 
     /**  The associated grammar */
     private AbstractGrammar grammar;
 
+    /** The codec service */
+    private final ILdapCodecService codec;
 
     /**
+     * Creates a new LdapMessageContainer object. We will store ten grammars,
+     * it's enough ...
+     */
+    public Dsmlv2Container( ILdapCodecService codec )
+    {
+        this.codec= codec;
+    }
+    
+    
+    /**
+     * Gets the {@link ILdapCodecService} associated with this {@link Asn1Container}.
+     *
+     * @return
+     */
+    public ILdapCodecService getLdapCodecService()
+    {
+        return codec;
+    }
+    
+    
+    /**
      * Gets the DSML Batch Request
      * 
      * @return

Modified: directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Parser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Parser.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Parser.java (original)
+++ directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2Parser.java Tue Feb  1 16:56:03 2011
@@ -31,6 +31,7 @@ import java.io.StringReader;
 import org.apache.directory.shared.dsmlv2.request.BatchRequest;
 import org.apache.directory.shared.dsmlv2.request.Dsmlv2Grammar;
 import org.apache.directory.shared.i18n.I18n;
+import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.model.message.Message;
 import org.xmlpull.v1.XmlPullParser;
 import org.xmlpull.v1.XmlPullParserException;
@@ -55,9 +56,9 @@ public class Dsmlv2Parser
      * @throws XmlPullParserException
      *      if an error occurs while the initialization of the parser
      */
-    public Dsmlv2Parser() throws XmlPullParserException
+    public Dsmlv2Parser( ILdapCodecService codec ) throws XmlPullParserException
     {
-        this.container = new Dsmlv2Container();
+        this.container = new Dsmlv2Container( codec );
 
         this.container.setGrammar( Dsmlv2Grammar.getInstance() );
 

Modified: directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2ResponseParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2ResponseParser.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2ResponseParser.java (original)
+++ directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/Dsmlv2ResponseParser.java Tue Feb  1 16:56:03 2011
@@ -31,6 +31,7 @@ import java.io.StringReader;
 import org.apache.directory.shared.dsmlv2.reponse.BatchResponse;
 import org.apache.directory.shared.dsmlv2.reponse.Dsmlv2ResponseGrammar;
 import org.apache.directory.shared.i18n.I18n;
+import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.model.message.Response;
 import org.xmlpull.v1.XmlPullParser;
 import org.xmlpull.v1.XmlPullParserException;
@@ -55,9 +56,9 @@ public class Dsmlv2ResponseParser
      * @throws XmlPullParserException
      *      if an error occurs while the initialization of the parser
      */
-    public Dsmlv2ResponseParser() throws XmlPullParserException
+    public Dsmlv2ResponseParser( ILdapCodecService codec ) throws XmlPullParserException
     {
-        this.container = new Dsmlv2Container();
+        this.container = new Dsmlv2Container( codec );
 
         this.container.setGrammar( Dsmlv2ResponseGrammar.getInstance() );
 

Modified: directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/reponse/Dsmlv2ResponseGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/reponse/Dsmlv2ResponseGrammar.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/reponse/Dsmlv2ResponseGrammar.java (original)
+++ directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/reponse/Dsmlv2ResponseGrammar.java Tue Feb  1 16:56:03 2011
@@ -39,9 +39,7 @@ import org.apache.directory.shared.dsmlv
 import org.apache.directory.shared.dsmlv2.Tag;
 import org.apache.directory.shared.dsmlv2.reponse.ErrorResponse.ErrorResponseType;
 import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.codec.DefaultLdapCodecService;
 import org.apache.directory.shared.ldap.codec.ICodecControl;
-import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.codec.decorators.AddResponseDecorator;
 import org.apache.directory.shared.ldap.codec.decorators.BindResponseDecorator;
 import org.apache.directory.shared.ldap.codec.decorators.CompareResponseDecorator;
@@ -94,8 +92,6 @@ public final class Dsmlv2ResponseGrammar
     /** The instance of grammar. Dsmlv2ResponseGrammar is a singleton */
     private static Dsmlv2ResponseGrammar instance = new Dsmlv2ResponseGrammar();
     
-    private ILdapCodecService codec = new DefaultLdapCodecService();
-    
     /** The DSMLv2 description tags */
     private static final Set<String> DSMLV2_DESCR_TAGS;
     static
@@ -799,7 +795,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            AddResponseDecorator addResponse = new AddResponseDecorator( codec, new AddResponseImpl() );
+            AddResponseDecorator addResponse = new AddResponseDecorator( container.getLdapCodecService(), new AddResponseImpl() );
 
             container.getBatchResponse().addResponse( addResponse );
 
@@ -841,7 +837,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            BindResponseDecorator bindResponse = new BindResponseDecorator( codec, new BindResponseImpl() );
+            BindResponseDecorator bindResponse = new BindResponseDecorator( container.getLdapCodecService(), new BindResponseImpl() );
 
             container.getBatchResponse().addResponse( bindResponse );
 
@@ -884,7 +880,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            CompareResponseDecorator compareResponse = new CompareResponseDecorator( codec, new CompareResponseImpl() );
+            CompareResponseDecorator compareResponse = new CompareResponseDecorator( container.getLdapCodecService(), new CompareResponseImpl() );
 
             container.getBatchResponse().addResponse( compareResponse );
 
@@ -926,7 +922,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            DeleteResponseDecorator delResponse = new DeleteResponseDecorator( codec, new DeleteResponseImpl() );
+            DeleteResponseDecorator delResponse = new DeleteResponseDecorator( container.getLdapCodecService(), new DeleteResponseImpl() );
 
             container.getBatchResponse().addResponse( delResponse );
 
@@ -968,7 +964,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            ModifyResponseDecorator modifyResponse = new ModifyResponseDecorator( codec, new ModifyResponseImpl() );
+            ModifyResponseDecorator modifyResponse = new ModifyResponseDecorator( container.getLdapCodecService(), new ModifyResponseImpl() );
 
             container.getBatchResponse().addResponse( modifyResponse );
 
@@ -1010,7 +1006,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            ModifyDnResponseDecorator modifyDNResponse = new ModifyDnResponseDecorator( codec, new ModifyDnResponseImpl() );
+            ModifyDnResponseDecorator modifyDNResponse = new ModifyDnResponseDecorator( container.getLdapCodecService(), new ModifyDnResponseImpl() );
 
             container.getBatchResponse().addResponse( modifyDNResponse );
 
@@ -1064,11 +1060,11 @@ public final class Dsmlv2ResponseGrammar
 
             if ( attributeValue != null )
             {
-                extendedResponse = new ExtendedResponseDecorator( codec, new ExtendedResponseImpl( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ) );
+                extendedResponse = new ExtendedResponseDecorator( container.getLdapCodecService(), new ExtendedResponseImpl( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ) );
             }
             else
             {
-                extendedResponse = new ExtendedResponseDecorator( codec, new ExtendedResponseImpl( -1 ) );
+                extendedResponse = new ExtendedResponseDecorator( container.getLdapCodecService(), new ExtendedResponseImpl( -1 ) );
             }
 
             container.getBatchResponse().addResponse( extendedResponse );
@@ -1217,7 +1213,7 @@ public final class Dsmlv2ResponseGrammar
                 throw new XmlPullParserException( I18n.err( I18n.ERR_03006 ), xpp, null );
             }
 
-            control = codec.decorate( new BasicControl( attributeValue ) );
+            control = container.getLdapCodecService().decorate( new BasicControl( attributeValue ) );
             parent.addControl( control );
         }
         else
@@ -1563,7 +1559,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            SearchResultEntryDecorator searchResultEntry = new SearchResultEntryDecorator( codec, new SearchResultEntryImpl() );
+            SearchResultEntryDecorator searchResultEntry = new SearchResultEntryDecorator( container.getLdapCodecService(), new SearchResultEntryImpl() );
 
             SearchResponse searchResponse = ( SearchResponse ) container.getBatchResponse().getCurrentResponse();
 
@@ -1610,7 +1606,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            SearchResultReferenceDecorator searchResultReference = new SearchResultReferenceDecorator( codec, new SearchResultReferenceImpl() );
+            SearchResultReferenceDecorator searchResultReference = new SearchResultReferenceDecorator( container.getLdapCodecService(), new SearchResultReferenceImpl() );
 
             SearchResponse searchResponse = ( SearchResponse ) container.getBatchResponse().getCurrentResponse();
 
@@ -1638,7 +1634,7 @@ public final class Dsmlv2ResponseGrammar
     {
         public void action( Dsmlv2Container container ) throws XmlPullParserException
         {
-            SearchResultDoneDecorator searchResultDone = new SearchResultDoneDecorator( codec, new SearchResultDoneImpl() );
+            SearchResultDoneDecorator searchResultDone = new SearchResultDoneDecorator( container.getLdapCodecService(), new SearchResultDoneImpl() );
 
             searchResultDone.getLdapResult();
 

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractResponseTest.java Tue Feb  1 16:56:03 2011
@@ -21,11 +21,11 @@
 package org.apache.directory.shared.dsmlv2;
 
 
-import org.apache.directory.shared.dsmlv2.Dsmlv2ResponseParser;
-import org.xmlpull.v1.XmlPullParserException;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
+import org.xmlpull.v1.XmlPullParserException;
+
 /**
  * This class had to be used to create a Response TestCase
  *
@@ -45,7 +45,7 @@ public abstract class AbstractResponseTe
     {
         try
         {
-            Dsmlv2ResponseParser parser = new Dsmlv2ResponseParser();
+            Dsmlv2ResponseParser parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( testClass.getResource( filename ).openStream(), "UTF-8" );
 

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/AbstractTest.java Tue Feb  1 16:56:03 2011
@@ -21,12 +21,12 @@
 package org.apache.directory.shared.dsmlv2;
 
 
-import org.apache.directory.shared.dsmlv2.Dsmlv2Parser;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
 import org.apache.directory.shared.ldap.codec.DefaultLdapCodecService;
 import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.xmlpull.v1.XmlPullParserException;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 
 /**
  * This class had to be used to create a Request TestCase
@@ -38,7 +38,6 @@ public abstract class AbstractTest
     /** The LDAP encoder decoder service */
     private ILdapCodecService codec = new DefaultLdapCodecService();
     
-    
     public ILdapCodecService getCodec()
     {
         return codec;
@@ -57,7 +56,7 @@ public abstract class AbstractTest
     {
         try
         {
-            Dsmlv2Parser parser = new Dsmlv2Parser();
+            Dsmlv2Parser parser = new Dsmlv2Parser( codec );
 
             parser.setInput( testClass.getResource( filename ).openStream(), "UTF-8" );
 

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/abandonRequest/AbandonRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/abandonRequest/AbandonRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/abandonRequest/AbandonRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/abandonRequest/AbandonRequestTest.java Tue Feb  1 16:56:03 2011
@@ -69,7 +69,7 @@ public class AbandonRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_abandonID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -106,7 +106,7 @@ public class AbandonRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -134,7 +134,7 @@ public class AbandonRequestTest extends 
 
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( AbandonRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
@@ -170,7 +170,7 @@ public class AbandonRequestTest extends 
 
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -206,7 +206,7 @@ public class AbandonRequestTest extends 
 
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -242,7 +242,7 @@ public class AbandonRequestTest extends 
 
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -278,7 +278,7 @@ public class AbandonRequestTest extends 
 
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AbandonRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addRequest/AddRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addRequest/AddRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addRequest/AddRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addRequest/AddRequestTest.java Tue Feb  1 16:56:03 2011
@@ -74,7 +74,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_dn_attribute.xml" ).openStream(), "UTF-8" );
 
@@ -100,7 +100,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -137,7 +137,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -171,7 +171,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 AddRequestTest.class.getResource( "request_with_1_control_base64_value.xml" ).openStream(), "UTF-8" );
@@ -206,7 +206,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_control_empty_value.xml" ).openStream(),
                 "UTF-8" );
@@ -241,7 +241,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(), "UTF-8" );
 
@@ -275,7 +275,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -310,7 +310,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_attr_without_value.xml" ).openStream(),
                 "UTF-8" );
@@ -347,7 +347,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_attr_empty_value.xml" ).openStream(),
                 "UTF-8" );
@@ -384,7 +384,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_attr_with_value.xml" ).openStream(),
                 "UTF-8" );
@@ -423,7 +423,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_attr_with_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -463,7 +463,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_2_attr_with_value.xml" ).openStream(),
                 "UTF-8" );
@@ -516,7 +516,7 @@ public class AddRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AddRequestTest.class.getResource( "request_with_1_attr_with_2_values.xml" ).openStream(),
                 "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addResponse/AddResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addResponse/AddResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addResponse/AddResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/addResponse/AddResponseTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -103,7 +103,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -137,7 +137,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -172,7 +172,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(), "UTF-8" );
 
@@ -206,7 +206,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -261,7 +261,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( AddResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(), "UTF-8" );
@@ -290,7 +290,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -320,7 +320,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_empty_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -350,7 +350,7 @@ public class AddResponseTest extends Abs
 
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(), "UTF-8" );
 
@@ -382,7 +382,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_1_empty_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -413,7 +413,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( AddResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(), "UTF-8" );
@@ -447,7 +447,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -487,7 +487,7 @@ public class AddResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AddResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" ).openStream(),
                 "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java Tue Feb  1 16:56:03 2011
@@ -69,7 +69,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_principal_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -96,7 +96,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -133,7 +133,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -167,7 +167,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_1_control_base64_value.xml" )
                 .openStream(), "UTF-8" );
@@ -202,7 +202,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 AuthRequestTest.class.getResource( "request_with_1_control_empty_value.xml" ).openStream(), "UTF-8" );
@@ -237,7 +237,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(), "UTF-8" );
 
@@ -271,7 +271,7 @@ public class AuthRequestTest extends Abs
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( AuthRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 AuthResponseTest.class.getResource( "response_with_requestID_attribute.xml" ).openStream(), "UTF-8" );
@@ -103,7 +103,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -137,7 +137,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -172,7 +172,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( AuthResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(), "UTF-8" );
@@ -207,7 +207,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -262,7 +262,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(),
                 "UTF-8" );
@@ -291,7 +291,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -321,7 +321,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 AuthResponseTest.class.getResource( "response_with_empty_error_message.xml" ).openStream(), "UTF-8" );
@@ -350,7 +350,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( AuthResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(), "UTF-8" );
@@ -390,7 +390,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_1_empty_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -421,7 +421,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(),
                 "UTF-8" );
@@ -470,7 +470,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( AuthResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -510,7 +510,7 @@ public class AuthResponseTest extends Ab
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 AuthResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" ).openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java Tue Feb  1 16:56:03 2011
@@ -64,7 +64,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -101,7 +101,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -128,7 +128,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_AuthRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -166,7 +166,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_AddRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -204,7 +204,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_CompareRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -242,7 +242,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_AbandonRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -280,7 +280,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_DelRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -318,7 +318,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_ExtendedRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -356,7 +356,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_ModDNRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -394,7 +394,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_ModifyRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -432,7 +432,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_SearchRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -470,7 +470,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_AddRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -508,7 +508,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_CompareRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -546,7 +546,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_AbandonRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -584,7 +584,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_DelRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -622,7 +622,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_ExtendedRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -660,7 +660,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_ModDNRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -698,7 +698,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_ModifyRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -736,7 +736,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_2_SearchRequest.xml" ).openStream(),
                 "UTF-8" );
@@ -774,7 +774,7 @@ public class BatchRequestTest extends Ab
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( BatchRequestTest.class.getResource( "request_with_1_AuthRequest_1_AddRequest.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java Tue Feb  1 16:56:03 2011
@@ -62,7 +62,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -99,7 +99,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_0_response.xml" ).openStream(),
                 "UTF-8" );
@@ -126,7 +126,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_AddResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -164,7 +164,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_AuthResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -202,7 +202,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_CompareResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -240,7 +240,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_DelResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -278,7 +278,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_ErrorResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -316,7 +316,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 BatchResponseTest.class.getResource( "response_with_1_ExtendedResponse.xml" ).openStream(), "UTF-8" );
@@ -354,7 +354,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_ModDNResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -392,7 +392,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_ModifyResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -430,7 +430,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_1_SearchResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -468,7 +468,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_AddResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -506,7 +506,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_AuthResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -544,7 +544,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_CompareResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -582,7 +582,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_DelResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -620,7 +620,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_ErrorResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -658,7 +658,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput(
                 BatchResponseTest.class.getResource( "response_with_2_ExtendedResponse.xml" ).openStream(), "UTF-8" );
@@ -696,7 +696,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_ModDNResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -734,7 +734,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_ModifyResponse.xml" ).openStream(),
                 "UTF-8" );
@@ -772,7 +772,7 @@ public class BatchResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( BatchResponseTest.class.getResource( "response_with_2_SearchResponse.xml" ).openStream(),
                 "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java Tue Feb  1 16:56:03 2011
@@ -70,7 +70,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_dn_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -97,7 +97,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -134,7 +134,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( CompareRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
@@ -169,7 +169,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser
                 .setInput( CompareRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
@@ -204,7 +204,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -239,7 +239,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(),
                 "UTF-8" );
@@ -274,7 +274,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -309,7 +309,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_1_complete_assertion.xml" )
                 .openStream(), "UTF-8" );
@@ -340,7 +340,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class
                 .getResource( "request_with_1_complete_assertion_base64_value.xml" ).openStream(), "UTF-8" );
@@ -371,7 +371,7 @@ public class CompareRequestTest extends 
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( CompareRequestTest.class.getResource( "request_with_1_assertion_empty_value.xml" )
                 .openStream(), "UTF-8" );

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

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java Tue Feb  1 16:56:03 2011
@@ -69,7 +69,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_dn_attribute.xml" ).openStream(), "UTF-8" );
 
@@ -95,7 +95,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -132,7 +132,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -166,7 +166,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput(
                 DelRequestTest.class.getResource( "request_with_1_control_base64_value.xml" ).openStream(), "UTF-8" );
@@ -201,7 +201,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_1_control_empty_value.xml" ).openStream(),
                 "UTF-8" );
@@ -236,7 +236,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_2_controls.xml" ).openStream(), "UTF-8" );
 
@@ -270,7 +270,7 @@ public class DelRequestTest extends Abst
         Dsmlv2Parser parser = null;
         try
         {
-            parser = new Dsmlv2Parser();
+            parser = new Dsmlv2Parser( getCodec() );
 
             parser.setInput( DelRequestTest.class.getResource( "request_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java Tue Feb  1 16:56:03 2011
@@ -66,7 +66,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_requestID_attribute.xml" ).openStream(),
                 "UTF-8" );
@@ -103,7 +103,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_1_control.xml" ).openStream(), "UTF-8" );
 
@@ -137,7 +137,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_1_control_empty_value.xml" )
                 .openStream(), "UTF-8" );
@@ -172,7 +172,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_2_controls.xml" ).openStream(), "UTF-8" );
 
@@ -206,7 +206,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_3_controls_without_value.xml" )
                 .openStream(), "UTF-8" );
@@ -261,7 +261,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( DelResponseTest.class.getResource( "response_with_result_code.xml" ).openStream(), "UTF-8" );
@@ -290,7 +290,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -320,7 +320,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_empty_error_message.xml" ).openStream(),
                 "UTF-8" );
@@ -349,7 +349,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_1_referral.xml" ).openStream(), "UTF-8" );
 
@@ -388,7 +388,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_1_empty_referral.xml" ).openStream(),
                 "UTF-8" );
@@ -419,7 +419,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser
                 .setInput( DelResponseTest.class.getResource( "response_with_2_referrals.xml" ).openStream(), "UTF-8" );
@@ -468,7 +468,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_1_referral_and_error_message.xml" )
                 .openStream(), "UTF-8" );
@@ -508,7 +508,7 @@ public class DelResponseTest extends Abs
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( DelResponseTest.class.getResource( "response_with_matchedDN_attribute.xml" ).openStream(),
                 "UTF-8" );

Modified: directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java?rev=1066095&r1=1066094&r2=1066095&view=diff
==============================================================================
--- directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java (original)
+++ directory/shared/trunk/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java Tue Feb  1 16:56:03 2011
@@ -54,7 +54,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_requestID_attribute.xml" )
                 .openStream(), "UTF-8" );
@@ -101,7 +101,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_notAttempted.xml" ).openStream(),
                 "UTF-8" );
@@ -128,7 +128,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_couldNotConnect.xml" )
                 .openStream(), "UTF-8" );
@@ -155,7 +155,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_connectionClosed.xml" )
                 .openStream(), "UTF-8" );
@@ -182,7 +182,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_malformedRequest.xml" )
                 .openStream(), "UTF-8" );
@@ -209,7 +209,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_gatewayInternalError.xml" )
                 .openStream(), "UTF-8" );
@@ -236,7 +236,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_authenticationFailed.xml" )
                 .openStream(), "UTF-8" );
@@ -263,7 +263,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_unresolvableURI.xml" )
                 .openStream(), "UTF-8" );
@@ -290,7 +290,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_type_other.xml" ).openStream(),
                 "UTF-8" );
@@ -327,7 +327,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_message.xml" ).openStream(), "UTF-8" );
 
@@ -353,7 +353,7 @@ public class ErrorResponseTest extends A
         Dsmlv2ResponseParser parser = null;
         try
         {
-            parser = new Dsmlv2ResponseParser();
+            parser = new Dsmlv2ResponseParser( getCodec() );
 
             parser.setInput( ErrorResponseTest.class.getResource( "response_with_empty_message.xml" ).openStream(),
                 "UTF-8" );



Mime
View raw message