@Test public void testCheckInRecursive() throws Exception { final ScmFileSet testFileSet = new ScmFileSet( new File( basedir, "project/dir" ) ); final File basedir = testFileSet.getBasedir(); final AccuRevInfo info = new AccuRevInfo( basedir ); info.setTop( basedir.getAbsolutePath() ); when( accurev.info( basedir ) ).thenReturn( info ); List<File> promotedFiles = Arrays.asList( new File( "kept/file" ), new File( "promoted/file" ) ); when( accurev.promoteAll( basedir, "A commit message" ) ).thenReturn( promotedFiles ); AccuRevCheckInCommand command = new AccuRevCheckInCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.MESSAGE, "A commit message" ); CheckInScmResult result = command.checkIn( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( true ) ); assertThat( result.getCheckedInFiles().size(), is( 2 ) ); assertHasScmFile( result.getCheckedInFiles(), "kept/file", ScmFileStatus.CHECKED_IN ); assertHasScmFile( result.getCheckedInFiles(), "promoted/file", ScmFileStatus.CHECKED_IN ); }
public CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckInScmResult) execute( repository, fileSet, parameters ); }
AccuRevCheckInCommand extends AbstractAccuRevCommand { public CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckInScmResult) execute( repository, fileSet, parameters ); } }
AccuRevCheckInCommand extends AbstractAccuRevCommand { public CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckInScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckInCommand( ScmLogger logger ); }
AccuRevCheckInCommand extends AbstractAccuRevCommand { public CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckInScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckInCommand( ScmLogger logger ); CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet,
                                     CommandParameters parameters ); }
AccuRevCheckInCommand extends AbstractAccuRevCommand { public CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (CheckInScmResult) execute( repository, fileSet, parameters ); } AccuRevCheckInCommand( ScmLogger logger ); CheckInScmResult checkIn( ScmProviderRepository repository, ScmFileSet fileSet,
                                     CommandParameters parameters );  }