directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1075084 - /directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Date Sun, 27 Feb 2011 15:54:14 GMT
Author: akarasulu
Date: Sun Feb 27 15:54:14 2011
New Revision: 1075084

URL: http://svn.apache.org/viewvc?rev=1075084&view=rev
Log:
check before initializing

Modified:
    directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java

Modified: directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java?rev=1075084&r1=1075083&r2=1075084&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
(original)
+++ directory/shared/branches/akarasulu/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Sun Feb 27 15:54:14 2011
@@ -47,7 +47,11 @@ public abstract class AbstractCodecServi
     public static void setupLdapCodecService()
     {
         codec = new DefaultLdapCodecService();
-        LdapCodecServiceFactory.initialize( codec );
+        
+        if ( LdapCodecServiceFactory.isInitialized() == false )
+        {
+            LdapCodecServiceFactory.initialize( codec );
+        }
         encoder = new LdapEncoder( codec );
     }
 



Mime
View raw message