mirror of https://github.com/apache/maven.git
Fixed path problem on unit test.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@742760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b36ff52dd
commit
6032251645
|
@ -213,11 +213,12 @@ public class PomConstructionTest
|
|||
{
|
||||
PomTestWrapper pom = buildPomFromMavenProject( "reporting-interpolation", null );
|
||||
pom = new PomTestWrapper(pom.getMavenProject());
|
||||
assertEquals( System.getProperty("user.dir")
|
||||
+ "/src/test/resources-project-builder/reporting-interpolation/target/site",
|
||||
assertEquals( createPath(Arrays.asList(System.getProperty("user.dir"),
|
||||
"src", "test", "resources-project-builder", "reporting-interpolation", "target", "site")),
|
||||
pom.getValue( "reporting/outputDirectory" ) );
|
||||
}
|
||||
|
||||
|
||||
public void testPluginOrder()
|
||||
throws Exception
|
||||
{
|
||||
|
@ -918,4 +919,14 @@ public class PomConstructionTest
|
|||
artifact.setFile( artifacts.get( id ) );
|
||||
}
|
||||
}
|
||||
|
||||
private static String createPath(List<String> elements)
|
||||
{
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
for(String s : elements)
|
||||
{
|
||||
buffer.append(s).append(File.separator);
|
||||
}
|
||||
return buffer.toString().substring(0, buffer.toString().length() - 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue