mirror of https://github.com/apache/maven.git
Fix test that fails on windows
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@547488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6618c01021
commit
aa9368044a
|
@ -38,9 +38,13 @@ public class ProjectBaseDirectoryAlignmentTest
|
|||
|
||||
assertNotNull( "Test project can't be null!", project );
|
||||
|
||||
assertTrue( project.getBuild().getSourceDirectory().startsWith( getBasedir() ) );
|
||||
File basedirFile = new File( getBasedir() );
|
||||
File sourceDirectoryFile = new File( project.getBuild().getSourceDirectory() );
|
||||
File testSourceDirectoryFile = new File( project.getBuild().getTestSourceDirectory() );
|
||||
|
||||
assertTrue( project.getBuild().getTestSourceDirectory().startsWith( getBasedir() ) );
|
||||
assertEquals( basedirFile.getCanonicalPath(), sourceDirectoryFile.getCanonicalPath().substring( 0, getBasedir().length() ) );
|
||||
|
||||
assertEquals( basedirFile.getCanonicalPath(), testSourceDirectoryFile.getCanonicalPath().substring( 0, getBasedir().length() ) );
|
||||
|
||||
Build build = project.getBuild();
|
||||
|
||||
|
|
Loading…
Reference in New Issue