mirror of https://github.com/apache/maven.git
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:
parent
6dd94566ab
commit
0b0b8f89f3
|
@ -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() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue