From: Juergen H. <jho...@us...> - 2006-04-20 19:21:00
|
Update of /cvsroot/springframework/spring/test/org/springframework/transaction In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15553/test/org/springframework/transaction Modified Files: TransactionNamespaceHandlerTests.java Log Message: polishing Index: TransactionNamespaceHandlerTests.java =================================================================== RCS file: /cvsroot/springframework/spring/test/org/springframework/transaction/TransactionNamespaceHandlerTests.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TransactionNamespaceHandlerTests.java 16 Feb 2006 18:54:25 -0000 1.3 --- TransactionNamespaceHandlerTests.java 20 Apr 2006 19:20:56 -0000 1.4 *************** *** 1,4 **** /* ! * Copyright 2002-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 1,4 ---- /* ! * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 20,23 **** --- 20,26 ---- import junit.framework.TestCase; + + import org.springframework.aop.support.AopUtils; + import org.springframework.beans.ITestBean; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; *************** *** 25,30 **** import org.springframework.transaction.interceptor.TransactionAttributeSource; import org.springframework.transaction.interceptor.TransactionInterceptor; - import org.springframework.beans.ITestBean; - import org.springframework.aop.support.AopUtils; /** --- 28,31 ---- *************** *** 35,45 **** private ApplicationContext context; private Method getAgeMethod; private Method setAgeMethod; public void setUp() throws Exception { ! this.context = new ClassPathXmlApplicationContext("org/springframework/transaction/transactionNamespaceHandlerTests.xml"); ! getAgeMethod = ITestBean.class.getMethod("getAge",new Class[0]); ! setAgeMethod = ITestBean.class.getMethod("setAge",new Class[] {int.class}); } --- 36,48 ---- private ApplicationContext context; + private Method getAgeMethod; + private Method setAgeMethod; public void setUp() throws Exception { ! this.context = new ClassPathXmlApplicationContext("transactionNamespaceHandlerTests.xml", getClass()); ! this.getAgeMethod = ITestBean.class.getMethod("getAge", new Class[0]); ! this.setAgeMethod = ITestBean.class.getMethod("setAge", new Class[] {int.class}); } *************** *** 88,90 **** --- 91,94 ---- return (ITestBean)context.getBean("testBean"); } + } |