diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/initializer/DubboApplicationContextInitializerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/initializer/DubboApplicationContextInitializerTest.java index 2c84095f4e3..b5b8f8c9a9b 100644 --- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/initializer/DubboApplicationContextInitializerTest.java +++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/initializer/DubboApplicationContextInitializerTest.java @@ -29,7 +29,7 @@ public class DubboApplicationContextInitializerTest { @Test public void testSpringContextLoaderListenerInWebXml() throws Exception { Tomcat tomcat = new Tomcat(); - tomcat.setBaseDir("src/test/resources"); + tomcat.setBaseDir("target/test-classes"); tomcat.setPort(12345); StandardContext context = new StandardContext(); context.setName("test"); @@ -49,7 +49,7 @@ public void testSpringContextLoaderListenerInWebXml() throws Exception { @Test public void testNoListenerInWebXml() throws Exception { Tomcat tomcat = new Tomcat(); - tomcat.setBaseDir("src/test/resources"); + tomcat.setBaseDir("target/test-classes"); tomcat.setPort(12345); StandardContext context = new StandardContext(); context.setName("test2"); @@ -69,7 +69,7 @@ public void testNoListenerInWebXml() throws Exception { @Test public void testMetadataComplete() throws Exception { Tomcat tomcat = new Tomcat(); - tomcat.setBaseDir("src/test/resources"); + tomcat.setBaseDir("target/test-classes"); tomcat.setPort(12345); StandardContext context = new StandardContext(); context.setName("test3");