Skip to content

Commit

Permalink
fix apache#2560, use target/test-classes as the basedir
Browse files Browse the repository at this point in the history
  • Loading branch information
diecui1202 committed Sep 26, 2018
1 parent 9e2d124 commit 53837d6
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 53837d6

Please sign in to comment.