*/
public class BaseOnlyAdvisedChildProxyTestCase extends AOPMicrocontainerTest
{
public void testAdvisedBaseClass() throws Exception
{
Base base = (Base)getBean("Base");
assertTrue(base instanceof Advised);
assertFalse(base instanceof AspectManaged);
Child plainChild = (Child)getBean("PlainChild");
assertTrue(plainChild instanceof Advised);
assertFalse(plainChild instanceof AspectManaged);
Child proxiedChild = (Child)getBean("ProxiedChild");
assertTrue(proxiedChild instanceof Advised);
assertTrue(proxiedChild instanceof AspectManaged);
TestInterceptor.reset();
base.baseOnly();
assertEquals(1, TestInterceptor.interceptions);
assertNotNull(TestInterceptor.invoked);
assertEquals("baseOnly", TestInterceptor.invoked.getName());
assertNull(TestInterceptor.classAnnotation);
assertNull(TestInterceptor.methodAnnotation);
assertNull(TestInterceptor.metadata);
TestInterceptor.reset();
base.baseOverridden();
assertEquals(0, TestInterceptor.interceptions);
}