public static String getTestPath( String basedir, String path ) { return getTestFile( basedir, path ).getAbsolutePath(); }
public static String getTestPath( String path ) { return getTestFile( path ).getAbsolutePath(); }
public static File getTestFile( String basedir, String path ) { File basedirFile = new File( basedir ); if ( !basedirFile.isAbsolute() ) { basedirFile = getTestFile( basedir ); } return new File( basedirFile, path ); }
/** * @return default location of the test read/write repository */ protected File getRepositoryRoot() { return PlexusTestCase.getTestFile( "target/scm-test/repository" ); }
/** * @return Location of the revisioned (read only) repository */ protected File getRepository() { return PlexusTestCase.getTestFile( "/src/test/repository" ); }
/** * @return Location of the revisioned (read only) repository */ protected File getRepository() { return PlexusTestCase.getTestFile( "/src/test/repository" ); }
/** * @return default location for doing update operations on a working tree */ protected File getUpdatingCopy() { return PlexusTestCase.getTestFile( "target/scm-test/updating-copy" ); }
/** * @return default location of the test read/write repository */ protected File getRepositoryRoot() { return PlexusTestCase.getTestFile( "target/scm-test/repository" ); }
/** * @return location of the working copy (always checkout) */ protected File getWorkingCopy() { return PlexusTestCase.getTestFile( "target/scm-test/working-copy" ); }
/** * @return default location for doing assertions on a working tree */ protected File getAssertionCopy() { return PlexusTestCase.getTestFile( "target/scm-test/assertion-copy" ); }
/** * @return default location for doing update operations on a working tree */ protected File getUpdatingCopy() { return PlexusTestCase.getTestFile( "target/scm-test/updating-copy" ); }
/** * @return location of the working copy (always checkout) */ protected File getWorkingCopy() { return PlexusTestCase.getTestFile( "target/scm-test/working-copy" ); }
/** * @return default location for doing assertions on a working tree */ protected File getAssertionCopy() { return PlexusTestCase.getTestFile( "target/scm-test/assertion-copy" ); }
File f = getTestFile( "target/plexus-home" );
public static String getTestPath( String basedir, String path ) { return getTestFile( basedir, path ).getAbsolutePath(); }
public static String getTestPath( final String path ) { return getTestFile( path ).getAbsolutePath(); }
public static String getTestPath( final String basedir, final String path ) { return getTestFile( basedir, path ).getAbsolutePath(); }
private static String plexusHome() { final File home = getTestFile( "target/plexus-home" ); if ( !home.isDirectory() ) { home.mkdirs(); } return home.getAbsolutePath(); } }
public static File getTestFile( String basedir, String path ) { File basedirFile = new File( basedir ); if ( !basedirFile.isAbsolute() ) { basedirFile = getTestFile( basedir ); } return new File( basedirFile, path ); }
public static void initRepo( String source, File repository, File workingDirectory ) throws IOException { // Copy the repository to target File src = PlexusTestCase.getTestFile( source ); FileUtils.deleteDirectory( repository ); Assert.assertTrue( repository.mkdirs() ); FileUtils.copyDirectoryStructure( src, repository ); FileUtils.deleteDirectory( workingDirectory ); Assert.assertTrue( workingDirectory.mkdirs() ); } }