Skip to content

Commit 1ac1638

Browse files
author
Robert Scholte
committed
Make test Windows proof
1 parent 588d05a commit 1ac1638

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
public class PluginArtifactFileTest
2828
extends AbstractMojoTestCase
2929
{
30+
private static final String FS = System.getProperty( "file.separator" );
31+
3032
public void testArtifact()
3133
throws Exception
3234
{
@@ -40,7 +42,7 @@ public void testArtifact()
4042
assertEquals( "test", artifact.getGroupId() );
4143
assertEquals( "test-plugin", artifact.getArtifactId() );
4244
assertEquals( "0.0.1-SNAPSHOT", artifact.getBaseVersion() );
43-
assertTrue( artifact.getFile().getAbsolutePath().endsWith( "target/test-classes" ) );
45+
assertTrue( artifact.getFile().getAbsolutePath().endsWith( FS + "target" + FS + "test-classes" ) );
4446
}
4547

4648
// TODO find a way to automate testing of jar:file:/ test plugin URLs

0 commit comments

Comments
 (0)