From 0ac21f06974b2d8bc80ef777a31ca320ec05f81b Mon Sep 17 00:00:00 2001 From: Jerrick Zhu Date: Thu, 27 Sep 2018 10:43:40 +0800 Subject: [PATCH] fix #2560, use target/test-classes as the basedir (#2564) --- .../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");