make it work on any platform

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@167833 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-03 00:10:51 +00:00
parent 6dd94566ab
commit 0b0b8f89f3
1 changed files with 4 additions and 3 deletions

View File

@ -39,11 +39,12 @@ public class VerifierMojoTest
public void testDoNotPrefixWhenAbsolutePath()
{
VerifierMojo mojo = new VerifierMojo();
mojo.setBaseDir( "c:/some/path" );
mojo.setBaseDir( new File( "/some/path" ).getAbsolutePath() );
File result = mojo.getAbsoluteFileToCheck( new File( "c:/project/target/dummy.txt" ) );
File absoluteFile = new File( "/project/target/dummy.txt" ).getAbsoluteFile();
File result = mojo.getAbsoluteFileToCheck( absoluteFile );
File expectedResult = new File( "c:/project/target/dummy.txt" );
File expectedResult = absoluteFile;
assertEquals( expectedResult.getPath(), result.getPath() );
}