Hi,
I found two use-cases for which the constructor invocation does not happen...
UseCase 1: creating an instance within the class itself:
Class EShopApp
{
[...]
public static EShopApp create()
{
return new EShopApp(); // the constructor interceptor is NOT called!
}
[...]
}
public class TestEShop
extends junit.framework.TestCase
{
[...]
protected void setUp() throws Exception {
{
EShopApp eSA = new EShopApp(); // the constructor interceptor is NOT called!
this.setEShop(eSA);
}
[...]
}
Usecase 1 looks definately like a bug.
For usecase 2 you'll have to elaborate on your setup as JBoss AOP has an extensive testsuite that runs under ant and junit.