Browse Source

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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@476 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Chris Beams 17 years ago
parent
commit
8b1e69cfd2
  1. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterAdviceBindingTests.java
  2. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterAdviceBindingTests.xml
  3. 8
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterReturningAdviceBindingTests.java
  4. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterReturningAdviceBindingTests.xml
  5. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterThrowingAdviceBindingTests.java
  6. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterThrowingAdviceBindingTests.xml
  7. 6
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceBindingTests.java
  8. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceBindingTests.xml
  9. 4
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceCircularTests.java
  10. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceCircularTests.xml
  11. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AspectAndAdvicePrecedenceTests.java
  12. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AspectAndAdvicePrecedenceTests.xml
  13. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisorTests.java
  14. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisorTests.xml
  15. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutAtAspectTests.java
  16. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutAtAspectTests.xml
  17. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutTests.java
  18. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutTests.xml
  19. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeforeAdviceBindingTests.java
  20. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeforeAdviceBindingTests.xml
  21. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclarationOrderIndependenceTests.java
  22. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclarationOrderIndependenceTests.xml
  23. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsDelegateRefTests.java
  24. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsDelegateRefTests.xml
  25. 6
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsTests.java
  26. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsTests.xml
  27. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingAtAspectJTests.java
  28. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingAtAspectJTests.xml
  29. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingTests.java
  30. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingTests.xml
  31. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests-ambiguous.xml
  32. 4
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests.java
  33. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests.xml
  34. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ProceedTests.java
  35. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-after.xml
  36. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-atAspectJ-after.xml
  37. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-atAspectJ-before.xml
  38. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-before.xml
  39. 12
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests.java
  40. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SharedPointcutWithArgsMismatchTests.java
  41. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SharedPointcutWithArgsMismatchTests.xml
  42. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SubtypeSensitiveMatchingTests.java
  43. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SubtypeSensitiveMatchingTests.xml
  44. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.java
  45. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsAtAspectJTests.java
  46. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsAtAspectJTests.xml
  47. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsTests.java
  48. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsTests.xml
  49. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/proceedTests_.xml
  50. 0
      org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/targetPointcutSelectionTests_.xml

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

@ -45,7 +45,8 @@ public final class AfterAdviceBindingTests { @@ -45,7 +45,8 @@ public final class AfterAdviceBindingTests {
@Before
public void setUp() throws Exception {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("after-advice-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
AdviceBindingTestAspect afterAdviceAspect = (AdviceBindingTestAspect) ctx.getBean("testAspect");
testBeanProxy = (ITestBean) ctx.getBean("testBean");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/after-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterAdviceBindingTests.xml

8
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterReturningAdviceBindingTests.java

@ -26,7 +26,6 @@ import org.springframework.aop.framework.Advised; @@ -26,7 +26,6 @@ import org.springframework.aop.framework.Advised;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.ITestBean;
import org.springframework.beans.TestBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
@ -52,13 +51,10 @@ public final class AfterReturningAdviceBindingTests { @@ -52,13 +51,10 @@ public final class AfterReturningAdviceBindingTests {
this.afterAdviceAspect = anAspect;
}
protected String getConfigPath() {
return "afterReturning-advice-tests.xml";
}
@Before
public void setUp() throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext(getConfigPath(), getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
afterAdviceAspect = (AfterReturningAdviceBindingTestAspect) ctx.getBean("testAspect");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/afterReturning-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterReturningAdviceBindingTests.xml

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

@ -41,7 +41,8 @@ public final class AfterThrowingAdviceBindingTests { @@ -41,7 +41,8 @@ public final class AfterThrowingAdviceBindingTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("afterThrowing-advice-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean = (ITestBean) ctx.getBean("testBean");
afterThrowingAdviceAspect = (AfterThrowingAdviceBindingTestAspect) ctx.getBean("testAspect");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/afterThrowing-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AfterThrowingAdviceBindingTests.xml

6
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceBindingTests.java

@ -46,13 +46,9 @@ public class AroundAdviceBindingTests { @@ -46,13 +46,9 @@ public class AroundAdviceBindingTests {
protected ApplicationContext ctx;
protected String getConfigPath() {
return "around-advice-tests.xml";
}
@Before
public void onSetUp() throws Exception {
ctx = new ClassPathXmlApplicationContext(getConfigPath(), getClass());
ctx = new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
AroundAdviceBindingTestAspect aroundAdviceAspect = ((AroundAdviceBindingTestAspect) ctx.getBean("testAspect"));

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/around-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceBindingTests.xml

4
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceCircularTests.java

@ -27,10 +27,6 @@ import org.springframework.aop.support.AopUtils; @@ -27,10 +27,6 @@ import org.springframework.aop.support.AopUtils;
*/
public final class AroundAdviceCircularTests extends AroundAdviceBindingTests {
protected String getConfigPath() {
return "around-advice-circular-tests.xml";
}
@Test
public void testBothBeansAreProxies() {
Object tb = ctx.getBean("testBean");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/around-advice-circular-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AroundAdviceCircularTests.xml

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

@ -48,7 +48,8 @@ public final class AspectAndAdvicePrecedenceTests { @@ -48,7 +48,8 @@ public final class AspectAndAdvicePrecedenceTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("advice-precedence-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
highPrecedenceAspect = (PrecedenceTestAspect) ctx.getBean("highPrecedenceAspect");
lowPrecedenceAspect = (PrecedenceTestAspect) ctx.getBean("lowPrecedenceAspect");
highPrecedenceSpringAdvice = (SimpleSpringBeforeAdvice) ctx.getBean("highPrecedenceSpringAdvice");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/advice-precedence-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/AspectAndAdvicePrecedenceTests.xml

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

@ -38,7 +38,8 @@ public final class AspectJExpressionPointcutAdvisorTests { @@ -38,7 +38,8 @@ public final class AspectJExpressionPointcutAdvisorTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("aspectj.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean = (ITestBean) ctx.getBean("testBean");
interceptor = (CallCountingInterceptor) ctx.getBean("interceptor");
}

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

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

@ -47,7 +47,8 @@ public final class BeanNamePointcutAtAspectTests { @@ -47,7 +47,8 @@ public final class BeanNamePointcutAtAspectTests {
@org.junit.Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("bean-name-pointcut-atAspect-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
counterAspect = (CounterAspect) ctx.getBean("counterAspect");
testBean1 = (ITestBean) ctx.getBean("testBean1");
testBean2 = (ITestBean) ctx.getBean("testBean2");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/bean-name-pointcut-atAspect-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutAtAspectTests.xml

2
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutTests.java

@ -54,7 +54,7 @@ public final class BeanNamePointcutTests { @@ -54,7 +54,7 @@ public final class BeanNamePointcutTests {
@Before
public void setUp() {
ctx = new ClassPathXmlApplicationContext("bean-name-pointcut-tests.xml", getClass());
ctx = new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean1 = (ITestBean) ctx.getBean("testBean1");
testBean2 = (ITestBean) ctx.getBean("testBean2");
testBeanContainingNestedBean = (ITestBean) ctx.getBean("testBeanContainingNestedBean");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/bean-name-pointcut-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutTests.xml

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

@ -50,7 +50,8 @@ public final class BeforeAdviceBindingTests { @@ -50,7 +50,8 @@ public final class BeforeAdviceBindingTests {
@Before
public void setUp() throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext(getConfigPath(), getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBeanProxy = (ITestBean) ctx.getBean("testBean");
assertTrue(AopUtils.isAopProxy(testBeanProxy));

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/before-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/BeforeAdviceBindingTests.xml

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

@ -39,7 +39,8 @@ public final class DeclarationOrderIndependenceTests { @@ -39,7 +39,8 @@ public final class DeclarationOrderIndependenceTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("topsy-turvy-aspect.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
aspect = (TopsyTurvyAspect) ctx.getBean("topsyTurvyAspect");
target = (TopsyTurvyTarget) ctx.getBean("topsyTurvyTarget");
}

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/topsy-turvy-aspect.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclarationOrderIndependenceTests.xml

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

@ -35,7 +35,8 @@ public class DeclareParentsDelegateRefTests { @@ -35,7 +35,8 @@ public class DeclareParentsDelegateRefTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("declare-parents-delegate-ref-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
noMethodsBean = (NoMethodsBean) ctx.getBean("noMethodsBean");
counter = (Counter) ctx.getBean("counter");
counter.reset();

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/declare-parents-delegate-ref-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsDelegateRefTests.xml

6
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsTests.java

@ -40,13 +40,9 @@ public final class DeclareParentsTests { @@ -40,13 +40,9 @@ public final class DeclareParentsTests {
private ApplicationContext ctx;
protected String getConfigPath() {
return "declare-parents-tests.xml";
}
@Before
public void setUp() throws Exception {
ctx = new ClassPathXmlApplicationContext(getConfigPath(), getClass());
ctx = new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBeanProxy = (ITestBean) ctx.getBean("testBean");
assertTrue(AopUtils.isAopProxy(testBeanProxy));

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/declare-parents-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/DeclareParentsTests.xml

2
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingAtAspectJTests.java

@ -34,7 +34,7 @@ public final class ImplicitJPArgumentMatchingAtAspectJTests { @@ -34,7 +34,7 @@ public final class ImplicitJPArgumentMatchingAtAspectJTests {
@Test
public void testAspect() {
// nothing to really test; it is enough if we don't get error while creating app context
new ClassPathXmlApplicationContext("implicit-jp-argument-matching-atAspectJ-tests.xml", getClass());
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
}
@Aspect

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/implicit-jp-argument-matching-atAspectJ-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingAtAspectJTests.xml

2
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingTests.java

@ -31,7 +31,7 @@ public final class ImplicitJPArgumentMatchingTests { @@ -31,7 +31,7 @@ public final class ImplicitJPArgumentMatchingTests {
@Test
public void testAspect() {
// nothing to really test; it is enough if we don't get error while creating app context
new ClassPathXmlApplicationContext("implicit-jp-argument-matching-tests.xml", getClass());
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
}
static class CounterAspect {

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/implicit-jp-argument-matching-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ImplicitJPArgumentMatchingTests.xml

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ambiguous-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests-ambiguous.xml

4
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests.java

@ -33,7 +33,7 @@ public final class OverloadedAdviceTests { @@ -33,7 +33,7 @@ public final class OverloadedAdviceTests {
@Test
public void testExceptionOnConfigParsingWithMismatchedAdviceMethod() {
try {
new ClassPathXmlApplicationContext("overloaded-advice-tests.xml", getClass());
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
}
catch (BeanCreationException ex) {
Throwable cause = ex.getRootCause();
@ -46,7 +46,7 @@ public final class OverloadedAdviceTests { @@ -46,7 +46,7 @@ public final class OverloadedAdviceTests {
@Test
public void testExceptionOnConfigParsingWithAmbiguousAdviceMethod() {
try {
new ClassPathXmlApplicationContext("ambiguous-advice-tests.xml", getClass());
new ClassPathXmlApplicationContext(getClass().getSimpleName() + "-ambiguous.xml", getClass());
}
catch (BeanCreationException ex) {
Throwable cause = ex.getRootCause();

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/overloaded-advice-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/OverloadedAdviceTests.xml

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

@ -43,7 +43,7 @@ public final class ProceedTests { @@ -43,7 +43,7 @@ public final class ProceedTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("proceedTests.xml", getClass());
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("proceedTests_.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/property-dependent-aspect-property-after-aspect-test.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-after.xml

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/property-dependent-atAspectJ-aspect-property-after-aspect-test.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-atAspectJ-after.xml

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/property-dependent-atAspectJ-aspect-property-before-aspect-test.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-atAspectJ-before.xml

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/property-dependent-aspect-property-before-aspect-test.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests-before.xml

12
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/PropertyDependentAspectTests.java

@ -39,26 +39,26 @@ public final class PropertyDependentAspectTests { @@ -39,26 +39,26 @@ public final class PropertyDependentAspectTests {
@Test
public void testPropertyDependentAspectWithPropertyDeclaredBeforeAdvice() throws Exception {
checkXmlAspect("org/springframework/aop/aspectj/property-dependent-aspect-property-before-aspect-test.xml");
checkXmlAspect(getClass().getSimpleName() + "-before.xml");
}
@Test
public void testPropertyDependentAspectWithPropertyDeclaredAfterAdvice() throws Exception {
checkXmlAspect("org/springframework/aop/aspectj/property-dependent-aspect-property-after-aspect-test.xml");
checkXmlAspect(getClass().getSimpleName() + "-after.xml");
}
@Test
public void testPropertyDependentAtAspectJAspectWithPropertyDeclaredBeforeAdvice() throws Exception {
checkAtAspectJAspect("org/springframework/aop/aspectj/property-dependent-atAspectJ-aspect-property-before-aspect-test.xml");
checkAtAspectJAspect(getClass().getSimpleName() + "-atAspectJ-before.xml");
}
@Test
public void testPropertyDependentAtAspectJAspectWithPropertyDeclaredAfterAdvice() throws Exception {
checkAtAspectJAspect("org/springframework/aop/aspectj/property-dependent-atAspectJ-aspect-property-after-aspect-test.xml");
checkAtAspectJAspect(getClass().getSimpleName() + "-atAspectJ-after.xml");
}
private void checkXmlAspect(String appContextFile) {
ApplicationContext context = new ClassPathXmlApplicationContext(appContextFile);
ApplicationContext context = new ClassPathXmlApplicationContext(appContextFile, getClass());
ICounter counter = (ICounter) context.getBean("counter");
assertTrue("Proxy didn't get created", counter instanceof Advised);
@ -69,7 +69,7 @@ public final class PropertyDependentAspectTests { @@ -69,7 +69,7 @@ public final class PropertyDependentAspectTests {
}
private void checkAtAspectJAspect(String appContextFile) {
ApplicationContext context = new ClassPathXmlApplicationContext(appContextFile);
ApplicationContext context = new ClassPathXmlApplicationContext(appContextFile, getClass());
ICounter counter = (ICounter) context.getBean("counter");
assertTrue("Proxy didn't get created", counter instanceof Advised);

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

@ -33,7 +33,8 @@ public final class SharedPointcutWithArgsMismatchTests { @@ -33,7 +33,8 @@ public final class SharedPointcutWithArgsMismatchTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("args-mismatch.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
toBeAdvised = (ToBeAdvised) ctx.getBean("toBeAdvised");
}

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/args-mismatch.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SharedPointcutWithArgsMismatchTests.xml

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

@ -40,7 +40,8 @@ public final class SubtypeSensitiveMatchingTests { @@ -40,7 +40,8 @@ public final class SubtypeSensitiveMatchingTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("subtype-sensitive-matching.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
nonSerializableBean = (NonSerializableFoo) ctx.getBean("testClassA");
serializableBean = (SerializableFoo) ctx.getBean("testClassB");
bar = (Bar) ctx.getBean("testClassC");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/subtype-sensitive-matching.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/SubtypeSensitiveMatchingTests.xml

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

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

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

@ -39,7 +39,8 @@ public final class ThisAndTargetSelectionOnlyPointcutsAtAspectJTests { @@ -39,7 +39,8 @@ public final class ThisAndTargetSelectionOnlyPointcutsAtAspectJTests {
@org.junit.Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("this-and-target-selectionOnly-pointcuts-atAspectJ-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean = (TestInterface) ctx.getBean("testBean");
testAnnotatedClassBean = (TestInterface) ctx.getBean("testAnnotatedClassBean");
testAnnotatedMethodBean = (TestInterface) ctx.getBean("testAnnotatedMethodBean");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/this-and-target-selectionOnly-pointcuts-atAspectJ-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsAtAspectJTests.xml

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

@ -40,7 +40,8 @@ public final class ThisAndTargetSelectionOnlyPointcutsTests { @@ -40,7 +40,8 @@ public final class ThisAndTargetSelectionOnlyPointcutsTests {
@Before
public void setUp() {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("this-and-target-selectionOnly-pointcuts-tests.xml", getClass());
ClassPathXmlApplicationContext ctx =
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
testBean = (TestInterface) ctx.getBean("testBean");

0
org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/this-and-target-selectionOnly-pointcuts-tests.xml → org.springframework.testsuite/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsTests.xml

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

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