*/
public class BaseAdvisedChildAdvisedAndProxyTestCase extends AOPMicrocontainerTest
{
public void testAdvisedBaseClass() throws Exception
{
Base base = (Base)getBean("Base");
assertTrue(base instanceof Advised);
assertFalse(base 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(1, TestInterceptor.interceptions);
assertNotNull(TestInterceptor.invoked);
assertEquals("baseOverridden", TestInterceptor.invoked.getName());
assertNull(TestInterceptor.classAnnotation);
assertNull(TestInterceptor.methodAnnotation);