Hi Alex,

the following test :
public class StandaloneLdapCodecServiceTest
{
    /**
* 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 );
        System.out.println( control );
        assertNotNull( codec );
        codec.shutdown();
    }
}


is failing when run alone in eclipse, while it passes when we run the full tests.

After some debugging in eclipse, it appears that the PasswordPolicy control is not registered in Felix.

One possible reason for the test passing in CL is that the felix cache might have been updated by another test.

This has to be fixed so that the test also passes in eclipse.

--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to