directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
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}.
     public void testLoadingExtras()
         StandaloneLdapCodecService codec = new 

         assertTrue( codec.isControlRegistered( PasswordPolicy.OID ) );

         CodecControl<? extends Control> control = codec.newControl( 
PasswordPolicy.OID );
         assertNotNull( control );
         System.out.println( control );
         assertNotNull( codec );

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.

Emmanuel L├ęcharny

View raw message