Package org.apache.directory.shared.ldap.codec.standalone

Examples of org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService


     * Initialize the codec service
     */
    @BeforeClass
    public static void setupLdapCodecService()
    {
        codec = new StandaloneLdapCodecService();
        encoder = new LdapEncoder( codec );
    }
View Full Code Here


     * Test method for {@link org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService#StandaloneLdapCodecService()}.
     */
    @Test
    public void testLoadingExtras()
    {
        StandaloneLdapCodecService codec = new StandaloneLdapCodecService();
       
        assertTrue( codec.isControlRegistered( PasswordPolicy.OID ) );

        CodecControl<? extends Control> control = codec.newControl( PasswordPolicy.OID );
        assertNotNull( control );
        assertNotNull( codec );
        codec.shutdown();
    }
View Full Code Here

     * Test an extended operation.
     */
    @Test
    public void testLoadingExtendedOperation()
    {
        StandaloneLdapCodecService codec = new StandaloneLdapCodecService();
        StoredProcedureRequest req = new StoredProcedureRequestImpl();
        req.setLanguage( "Java" );
        req.setProcedure( Strings.getBytesUtf8( "bogusProc" ) );
       
        assertNotNull( req );
        assertNotNull( codec );
       
        StoredProcedureRequest decorator = ( StoredProcedureRequest ) codec.decorate( req );
        assertNotNull( decorator );
        codec.shutdown();
    }
View Full Code Here

     * Test method for {@link org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService#StandaloneLdapCodecService()}.
     */
    @Test
    public void testLoadingExtras()
    {
        StandaloneLdapCodecService codec = new StandaloneLdapCodecService();
       
        assertTrue( codec.isControlRegistered( PasswordPolicy.OID ) );

        CodecControl<? extends Control> control = codec.newControl( PasswordPolicy.OID );
        assertNotNull( control );
        assertNotNull( codec );
        codec.shutdown();
    }
View Full Code Here

     * Test an extended operation.
     */
    @Test
    public void testLoadingExtendedOperation()
    {
        StandaloneLdapCodecService codec = new StandaloneLdapCodecService();
        StoredProcedureRequest req = new StoredProcedureRequestImpl();
        req.setLanguage( "Java" );
        req.setProcedure( Strings.getBytesUtf8( "bogusProc" ) );
       
        assertNotNull( req );
        assertNotNull( codec );
       
        StoredProcedureRequest decorator = ( StoredProcedureRequest ) codec.decorate( req );
        assertNotNull( decorator );
        codec.shutdown();
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.