diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-29 16:54:18 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-29 16:54:18 +0000 |
commit | b762983667bf7071c9e89f5bcf7603a288e1bd47 (patch) | |
tree | 58a28b5c879febb929db938d767928b38be8760a /sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org | |
parent | b3c36170d3ea69674fc3e892fea0bbc2cd300ceb (diff) |
Use a utility instead of ModuleActivator for Spring application context access
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@980505 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org/apache/tuscany/sca/implementation/spring/webapp/ApplicationContextAccessorTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org/apache/tuscany/sca/implementation/spring/webapp/ApplicationContextAccessorTestCase.java b/sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org/apache/tuscany/sca/implementation/spring/webapp/ApplicationContextAccessorTestCase.java index 4aa8cf5ebb..6a5ae882b1 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org/apache/tuscany/sca/implementation/spring/webapp/ApplicationContextAccessorTestCase.java +++ b/sca-java-2.x/trunk/modules/implementation-spring-webapp/src/test/java/org/apache/tuscany/sca/implementation/spring/webapp/ApplicationContextAccessorTestCase.java @@ -31,9 +31,9 @@ public class ApplicationContextAccessorTestCase { ApplicationContext context = new ClassPathXmlApplicationContext( new String[] {"org/apache/tuscany/sca/implementation/spring/webapp/spring-webapp-context.xml"}); - Object accessor = context.getBean(ApplicationContextAccessor.BEAN_ID); - Assert.assertSame(ApplicationContextAccessor.getInstance(), accessor); - ApplicationContextAccessor contextAccessor = (ApplicationContextAccessor)accessor; + Object accessor = context.getBean(ApplicationContextAccessorBean.BEAN_ID); + Assert.assertSame(ApplicationContextAccessorBean.getInstance(), accessor); + ApplicationContextAccessorBean contextAccessor = (ApplicationContextAccessorBean)accessor; Assert.assertSame(context, contextAccessor.getApplicationContext()); } |