Skip to content

Commit

Permalink
fix #2560, use target/test-classes as the basedir (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrick-zhu authored Sep 27, 2018
1 parent 5968f1a commit 0ac21f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 0ac21f0

Please sign in to comment.