@Test public void testCheckinExplicitFiles() throws Exception { final List<File> files = new ArrayList<File>(); files.add( new File( "project/dir/pom.xml" ) ); files.add( new File( "project/dir/src/main/java/Bar.java" ) ); final ScmFileSet testFileSet = new ScmFileSet( basedir, files ); when( accurev.info( basedir ) ).thenReturn( info ); when( accurev.promote( basedir, files, "A commit message" ) ).thenReturn( files ); 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(), "project/dir/pom.xml", ScmFileStatus.CHECKED_IN ); assertHasScmFile( result.getCheckedInFiles(), "project/dir/src/main/java/Bar.java", 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 );  }