Browse Source

refactoring .testsuite .aop.aspectj tests in preparation for migration to .context

conversation
Chris Beams 16 years ago
parent
commit
81efa4d23c
  1. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ProceedTests.java
  2. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ProceedTests.xml
  3. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.java
  4. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.xml

3
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ProceedTests.java

@ -43,7 +43,8 @@ public final class ProceedTests { @@ -43,7 +43,8 @@ public final class ProceedTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("proceedTests_.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean = (SimpleBean) ctx.getBean("testBean");
firstTestAspect = (ProceedTestingAspect) ctx.getBean("firstTestAspect");
secondTestAspect = (ProceedTestingAspect) ctx.getBean("secondTestAspect");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/proceedTests_.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ProceedTests.xml

3
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.java

@ -42,7 +42,8 @@ public final class TargetPointcutSelectionTests { @@ -42,7 +42,8 @@ public final class TargetPointcutSelectionTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("targetPointcutSelectionTests_.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testImpl1 = (TestInterface) ctx.getBean("testImpl1");
testImpl2 = (TestInterface) ctx.getBean("testImpl2");
testAspectForTestImpl1 = (TestAspect) ctx.getBean("testAspectForTestImpl1");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/targetPointcutSelectionTests_.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.xml

Loading…
Cancel
Save