File tree Expand file tree Collapse file tree
maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727public 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
You can’t perform that action at this time.
0 commit comments