I'm not seeing any problems with the latest code... I just rebuilt the 
web site and all the tests seems to be passing.

There's quite a serious overhead in starting up the Ldap server which is 
why I made it a static field. Maven 1 seems to reload the class each 
time it runs a test so it doesn't make much difference but it's a lot 
faster running in IntelliJ or Maven 2.

Moving it to the constructor would probably be OK, but putting it in the 
setUp would slow things down a lot.

Carlos Sanchez wrote:
> The problem is in
> 
> org.acegisecurity.ldap.AbstractLdapServerTestCase
> 
> private static final LdapTestServer SERVER = new LdapTestServer();
> 
> This call causes an exception. As it's a static field it happens at
> the time the class is loaded, so the class can't be loaded. Static and
> junit ant tasks don't play well together.
> 
> The "new LdapTestServer()" should be moved to a setUp() method or the
> constructor to see the error.
> 

-- 
  Luke Taylor.                      Monkey Machine Ltd.
  PGP Key ID: 0x57E9523C            http://www.monkeymachine.ltd.uk



_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to