[MNG-3664] Various unit tests from maven-core fail when run from a directory with space in its path

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@720050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-23 21:42:00 +00:00
parent 4310dd2c51
commit d486ebbe5c
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import org.apache.maven.realm.DefaultMavenRealmManager;
import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.PlexusTestCase;
import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.Logger;
import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.logging.console.ConsoleLogger;
import org.codehaus.plexus.util.FileUtils;
import java.io.File; import java.io.File;
import java.net.URL; import java.net.URL;
@ -35,10 +36,10 @@ public class DefaultMavenRealmManagerTest
assertNotSame( ext1, ext2 ); assertNotSame( ext1, ext2 );
ext1.setFile( new File( jarResource.getPath() ) ); ext1.setFile( FileUtils.toFile( jarResource ) );
ext1.setResolved( true ); ext1.setResolved( true );
ext2.setFile( new File( jarResource.getPath() ) ); ext2.setFile( FileUtils.toFile( jarResource ) );
ext2.setResolved( true ); ext2.setResolved( true );
Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" );