directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1074599 - in /directory/shared/branches/akarasulu/integ: pom.xml src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java src/test/resources/log4j.properties
Date Fri, 25 Feb 2011 15:58:44 GMT
Author: akarasulu
Date: Fri Feb 25 15:58:44 2011
New Revision: 1074599

URL: http://svn.apache.org/viewvc?rev=1074599&view=rev
Log:
adding test and dep to integ for extras codec api

Modified:
    directory/shared/branches/akarasulu/integ/pom.xml
    directory/shared/branches/akarasulu/integ/src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java
    directory/shared/branches/akarasulu/integ/src/test/resources/log4j.properties

Modified: directory/shared/branches/akarasulu/integ/pom.xml
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/integ/pom.xml?rev=1074599&r1=1074598&r2=1074599&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/integ/pom.xml (original)
+++ directory/shared/branches/akarasulu/integ/pom.xml Fri Feb 25 15:58:44 2011
@@ -62,7 +62,7 @@
 
     <dependency>
       <groupId>${project.groupId}</groupId>
-      <artifactId>shared-ldap-extras-codec</artifactId>
+      <artifactId>shared-ldap-extras-codec-api</artifactId>
       <scope>test</scope>
     </dependency>
 

Modified: directory/shared/branches/akarasulu/integ/src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/integ/src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java?rev=1074599&r1=1074598&r2=1074599&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/integ/src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java
(original)
+++ directory/shared/branches/akarasulu/integ/src/test/java/org/apache/directory/shared/ldap/codec/api/StandaloneLdapCodecServiceTest.java
Fri Feb 25 15:58:44 2011
@@ -25,6 +25,8 @@ import static org.junit.Assert.assertTru
 
 import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.PasswordPolicy;
+import org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest;
+import org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequestImpl;
 import org.apache.directory.shared.ldap.model.message.Control;
 import org.junit.Test;
 
@@ -48,8 +50,27 @@ public class StandaloneLdapCodecServiceT
 
         CodecControl<? extends Control> control = codec.newControl( PasswordPolicy.OID
);
         assertNotNull( control );
-        System.out.println( control );
         assertNotNull( codec );
         codec.shutdown();
     }
+
+
+    /**
+     * Test an extended operation.
+     */
+    @Test
+    public void testLoadingExtendedOperation()
+    {
+        StandaloneLdapCodecService codec = new StandaloneLdapCodecService();
+        StoredProcedureRequest req = new StoredProcedureRequestImpl();
+        req.setLanguage( "Java" );
+        req.setProcedure( "bogusProc" );
+        
+        assertNotNull( req );
+        assertNotNull( codec );
+        
+        StoredProcedureRequest decorator = ( StoredProcedureRequest ) codec.decorate( req
);
+        assertNotNull( decorator );
+        codec.shutdown();
+    }
 }

Modified: directory/shared/branches/akarasulu/integ/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/integ/src/test/resources/log4j.properties?rev=1074599&r1=1074598&r2=1074599&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/integ/src/test/resources/log4j.properties (original)
+++ directory/shared/branches/akarasulu/integ/src/test/resources/log4j.properties Fri Feb
25 15:58:44 2011
@@ -19,4 +19,4 @@ log4j.rootCategory=ERROR, stdout
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
-log4j.org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService=INFO
+log4j.org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService=DEBUG



Mime
View raw message