From f7afd5a7560daf994a752ba02eccbd4f4003ee66 Mon Sep 17 00:00:00 2001 From: zhuyong Date: Wed, 26 Sep 2018 17:52:41 +0800 Subject: [PATCH] fix #2560, use target/test-classes as the basedir --- .../initializer/DubboApplicationContextInitializerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");