@Test public void testExportVersionOutSideWorkspace() throws Exception { info.setWorkSpace( null ); when( accurev.info( basedir ) ).thenReturn( info ); List<File> poppedFiles = Collections.singletonList( new File( "exported/file" ) ); when( accurev.popExternal( eq( basedir ), eq( "mySnapShot" ), eq( (String) null ), (Collection<File>) argThat( hasItem( new File( "/./project/dir" ) ) ) ) ).thenReturn( poppedFiles ); AccuRevExportCommand command = new AccuRevExportCommand( getLogger() ); CommandParameters params = new CommandParameters(); params.setScmVersion( CommandParameter.SCM_VERSION, new ScmTag( "mySnapShot" ) ); ExportScmResult result = command.export( repo, new ScmFileSet( basedir ), params ); assertTrue( result.isSuccess() ); assertHasScmFile( result.getExportedFiles(), "exported/file", ScmFileStatus.CHECKED_OUT ); }
public ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ) throws ScmException { return (ExportScmResult) execute( repository, scmFileSet, params ); }
AccuRevExportCommand extends AbstractAccuRevExtractSourceCommand { public ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ) throws ScmException { return (ExportScmResult) execute( repository, scmFileSet, params ); } }
AccuRevExportCommand extends AbstractAccuRevExtractSourceCommand { public ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ) throws ScmException { return (ExportScmResult) execute( repository, scmFileSet, params ); } AccuRevExportCommand( ScmLogger logger ); }
AccuRevExportCommand extends AbstractAccuRevExtractSourceCommand { public ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ) throws ScmException { return (ExportScmResult) execute( repository, scmFileSet, params ); } AccuRevExportCommand( ScmLogger logger ); ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ); }
AccuRevExportCommand extends AbstractAccuRevExtractSourceCommand { public ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params ) throws ScmException { return (ExportScmResult) execute( repository, scmFileSet, params ); } AccuRevExportCommand( ScmLogger logger ); ExportScmResult export( ScmProviderRepository repository, ScmFileSet scmFileSet, CommandParameters params );  }