directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject One Felix test is failing in eclipse, not when run on the CL
Date Fri, 18 Feb 2011 15:45:57 GMT
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


Mime
View raw message