You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2014/07/11 19:06:10 UTC
git commit: Make test Windows proof
Repository: maven-plugin-testing
Updated Branches:
refs/heads/master 588d05a2d -> 1ac163885
Make test Windows proof
Project: http://git-wip-us.apache.org/repos/asf/maven-plugin-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-plugin-testing/commit/1ac16388
Tree: http://git-wip-us.apache.org/repos/asf/maven-plugin-testing/tree/1ac16388
Diff: http://git-wip-us.apache.org/repos/asf/maven-plugin-testing/diff/1ac16388
Branch: refs/heads/master
Commit: 1ac163885e4defc98ee62f4ea8ba8d7879e42382
Parents: 588d05a
Author: Robert Scholte <rf...@codehaus.org>
Authored: Fri Jul 11 19:01:42 2014 +0200
Committer: Robert Scholte <rf...@codehaus.org>
Committed: Fri Jul 11 19:01:42 2014 +0200
----------------------------------------------------------------------
.../org/apache/maven/plugin/testing/PluginArtifactFileTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-plugin-testing/blob/1ac16388/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java
----------------------------------------------------------------------
diff --git a/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java b/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java
index c94fb35..c4f32be 100644
--- a/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java
+++ b/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java
@@ -27,6 +27,8 @@ import org.apache.maven.plugin.MojoExecution;
public class PluginArtifactFileTest
extends AbstractMojoTestCase
{
+ private static final String FS = System.getProperty( "file.separator" );
+
public void testArtifact()
throws Exception
{
@@ -40,7 +42,7 @@ public class PluginArtifactFileTest
assertEquals( "test", artifact.getGroupId() );
assertEquals( "test-plugin", artifact.getArtifactId() );
assertEquals( "0.0.1-SNAPSHOT", artifact.getBaseVersion() );
- assertTrue( artifact.getFile().getAbsolutePath().endsWith( "target/test-classes" ) );
+ assertTrue( artifact.getFile().getAbsolutePath().endsWith( FS + "target" + FS + "test-classes" ) );
}
// TODO find a way to automate testing of jar:file:/ test plugin URLs