public void testStaticInnerClassFromOuterClass() { TestAspect.clear(); POJO pojo = new POJO(); assertFalse(TestAspect.constructor); TestAspect.clear(); pojo.executeStatic(); assertTrue(TestAspect.constructor); assertTrue(TestAspect.staticRead); assertTrue(TestAspect.staticWrite); assertTrue(TestAspect.normalRead); assertTrue(TestAspect.normalWrite); assertTrue(TestAspect.method); }
public void testPOJO() { TestAspect.clear(); POJO pojo = new POJO(Type.type.normalType, Type.type.staticType); pojo.nt = Type.type.normalType; NormalType ntype = pojo.nt; pojo.st = Type.type.staticType; StaticType stype = pojo.st; NormalType type = pojo.method(Type.type.staticType, Type.type.normalType); assertTrue(TestAspect.constructor); assertTrue(TestAspect.staticRead); assertTrue(TestAspect.staticWrite); assertTrue(TestAspect.normalRead); assertTrue(TestAspect.normalWrite); assertTrue(TestAspect.method); }
protected void onSetUp() throws Exception { testAspectForTestImpl1.count = 0; testAspectForAbstractTestImpl.count = 0; testInterceptor.count = 0; super.onSetUp(); }