Esempio n. 1
0
  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);
  }