Package org.springframework.tests.aop.advice

Examples of org.springframework.tests.aop.advice.MethodCounter


  @Test
  public void testRegexpApplied() throws Exception {
    BeanFactory bf = getBeanFactory();
    ITestBean test = (ITestBean) bf.getBean("test");
    MethodCounter counter = (MethodCounter) bf.getBean("countingAdvice");
    assertEquals(0, counter.getCalls());
    test.getName();
    assertEquals(1, counter.getCalls());
  }
View Full Code Here

TOP

Related Classes of org.springframework.tests.aop.advice.MethodCounter

Copyright © 2018 www.massapicom. 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.