1 16 17 package org.springframework.aop.interceptor; 18 19 import junit.framework.TestCase; 20 21 import org.springframework.beans.ITestBean; 22 import org.springframework.context.support.ClassPathXmlApplicationContext; 23 24 28 public class ExposeInvocationInterceptorTests extends TestCase { 29 30 public void testXmlConfig() { 31 ClassPathXmlApplicationContext xac = new ClassPathXmlApplicationContext("org/springframework/aop/interceptor/exposeInvocation.xml"); 32 ITestBean tb = (ITestBean) xac.getBean("proxy"); 33 String name= "tony"; 34 tb.setName(name); 35 assertEquals(name, tb.getName()); 37 } 38 39 } 40 | Popular Tags |