diecui1202 closed pull request #2564: fix #2560, use target/test-classes as the
basedir
URL: https://github.com/apache/incubator-dubbo/pull/2564
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
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 2c84095f4e..b5b8f8c9a9 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 @@
@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");
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services