Package org.nutz.aop.asm.test

Examples of org.nutz.aop.asm.test.Aop1.argsVoid()


    agent.addInterceptor(MethodMatcherFactory.matcher(".*"), new LoggingMethodInterceptor());
    Mirror<Aop1> mirror = Mirror.me(agent.define(Nutzs.cd(), Aop1.class));
    Aop1 aop1 = mirror.born("Nutz");
    aop1.nonArgsVoid();
    assertFalse(interceptor.runned);
    aop1.argsVoid(null);
    assertTrue(interceptor.runned);
  }

}

View Full Code Here


  @Test
  public void testArgs() throws Throwable {
    Aop1 a1 = getNewInstance(Aop1.class);
    a1.nonArgsVoid();
    a1.argsVoid("Wendal is the best!");
    a1.mixObjectsVoid("Arg1", new Object(), 1, null);
    a1.mixArgsVoid("XX", "WendalXXX", 0, 'c', 1L, 9090L);
    a1.mixArgsVoid2("Aop1",
            Boolean.TRUE,
            8888,
View Full Code Here

    for (Constructor<?> constructor : constructors) {
      System.out.println("找个一个Constructor: " + constructor);
    }
    Aop1 a1 = Mirror.me(classZ).born("Wendal");
    a1.nonArgsVoid();
    a1.argsVoid("Wendal is the best!");
    a1.mixObjectsVoid("Arg1", new Object(), 1, null);
    a1.mixArgsVoid("XX", "WendalXXX", 0, 'c', 1L, 9090L);
    a1.mixArgsVoid2("Aop1",
            Boolean.TRUE,
            8888,
View Full Code Here

    @Test
    public void testArgs() throws Throwable {
        Aop1 a1 = getNewInstance(Aop1.class);
        a1.nonArgsVoid();
        a1.argsVoid("Wendal is the best!");
        a1.mixObjectsVoid("Arg1", new Object(), 1, null);
        a1.mixArgsVoid("XX", "WendalXXX", 0, 'c', 1L, 9090L);
        a1.mixArgsVoid2("Aop1",
                        Boolean.TRUE,
                        8888,
View Full Code Here

        agent.addInterceptor(MethodMatcherFactory.matcher(".*"), new LoggingMethodInterceptor());
        Mirror<Aop1> mirror = Mirror.me(agent.define(Nutzs.cd(), Aop1.class));
        Aop1 aop1 = mirror.born("Nutz");
        aop1.nonArgsVoid();
        assertFalse(interceptor.runned);
        aop1.argsVoid(null);
        assertTrue(interceptor.runned);
    }

}

View Full Code Here

    @Test
    public void testArgs() throws Throwable {
        Aop1 a1 = getNewInstance(Aop1.class);
        a1.nonArgsVoid();
        a1.argsVoid("Wendal is the best!");
        a1.mixObjectsVoid("Arg1", new Object(), 1, null);
        a1.mixArgsVoid("XX", "WendalXXX", 0, 'c', 1L, 9090L);
        a1.mixArgsVoid2("Aop1",
                        Boolean.TRUE,
                        8888,
View Full Code Here

        for (Constructor<?> constructor : constructors) {
            System.out.println("找个一个Constructor: " + constructor);
        }
        Aop1 a1 = Mirror.me(classZ).born("Wendal");
        a1.nonArgsVoid();
        a1.argsVoid("Wendal is the best!");
        a1.mixObjectsVoid("Arg1", new Object(), 1, null);
        a1.mixArgsVoid("XX", "WendalXXX", 0, 'c', 1L, 9090L);
        a1.mixArgsVoid2("Aop1",
                        Boolean.TRUE,
                        8888,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.