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:
Carlos Sanchez Gonzalez 2007-06-15 02:17:38 +00:00
parent 6618c01021
commit aa9368044a
1 changed files with 6 additions and 2 deletions

View File

@ -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();