This commit is contained in:
Jan Bartel 2016-09-02 17:24:28 +10:00
parent 0d6667dc9f
commit 55a81fd7c6
1 changed files with 5 additions and 2 deletions

View File

@ -37,7 +37,10 @@ public class PathFinderTest
{ {
File homeDir = MavenTestingUtils.getTestResourceDir("hb.1/home"); File homeDir = MavenTestingUtils.getTestResourceDir("hb.1/home");
Path homePath = homeDir.toPath().toAbsolutePath(); Path homePath = homeDir.toPath().toAbsolutePath();
File baseDir = MavenTestingUtils.getTestResourceDir("hb.1/base");
Path basePath = baseDir.toPath().toAbsolutePath();
PathFinder finder = new PathFinder(); PathFinder finder = new PathFinder();
finder.setFileMatcher("glob:**/*.ini"); finder.setFileMatcher("glob:**/*.ini");
finder.setBase(homePath); finder.setBase(homePath);
@ -53,7 +56,7 @@ public class PathFinderTest
expected.add("${jetty.home}/start.ini"); expected.add("${jetty.home}/start.ini");
FSTest.toOsSeparators(expected); FSTest.toOsSeparators(expected);
BaseHome hb = new BaseHome(new String[] { "jetty.home=" + homePath.toString() }); BaseHome hb = new BaseHome(new String[] { "jetty.home=" + homePath.toString(), "jetty.base=" + basePath.toString()});
BaseHomeTest.assertPathList(hb,"Files found",expected,finder); BaseHomeTest.assertPathList(hb,"Files found",expected,finder);
} }