@Test public void testCheckout() throws Exception { when( accurev.mkws( "myStream", AccuRevCheckOutCommand.getWorkSpaceName( basedir, "myStream" ), basedir ) ).thenReturn( true ); List<File> updatedFiles = Collections.singletonList( new File( "updated/file" ) ); when( accurev.update( basedir, "now" ) ).thenReturn( updatedFiles ); AccuRevCheckOutCommand command = new AccuRevCheckOutCommand( getLogger() ); CheckOutScmResult result = command.checkout( repo, new ScmFileSet( basedir ), new CommandParameters() ); assertThat( result.isSuccess(), is( true ) ); assertThat( result.getRelativePathProjectDirectory(), is( "/project/dir" ) ); List<ScmFile> checkedOutFiles = result.getCheckedOutFiles(); assertThat( checkedOutFiles.size(), is( 1 ) ); assertHasScmFile( checkedOutFiles, "updated/file", ScmFileStatus.CHECKED_OUT ); }
public CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckOutScmResult) execute( repository, fileSet, parameters ); }
AccuRevCheckOutCommand extends AbstractAccuRevExtractSourceCommand { public CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckOutScmResult) execute( repository, fileSet, parameters ); } }
AccuRevCheckOutCommand extends AbstractAccuRevExtractSourceCommand { public CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckOutScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckOutCommand( ScmLogger logger ); }
AccuRevCheckOutCommand extends AbstractAccuRevExtractSourceCommand { public CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckOutScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckOutCommand( ScmLogger logger ); CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet,
                                       CommandParameters parameters ); static String getWorkSpaceName( File basedir, String basisStream ); }
AccuRevCheckOutCommand extends AbstractAccuRevExtractSourceCommand { public CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckOutScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckOutCommand( ScmLogger logger ); CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet,
                                       CommandParameters parameters ); static String getWorkSpaceName( File basedir, String basisStream );  }