@Test public void testAccuRevFailure() throws Exception { final ScmFileSet testFileSet = new ScmFileSet( new File( "/my/workspace/project/dir" ) ); final File basedir = testFileSet.getBasedir(); info.setWorkSpace( "theWorkSpace" ); when( accurev.update( eq( basedir ), any( String.class ) ) ).thenReturn( null ); AccuRevUpdateCommand command = new AccuRevUpdateCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.RUN_CHANGELOG_WITH_UPDATE, Boolean.toString( false ) ); UpdateScmResult result = command.update( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( false ) ); assertThat( result.getProviderMessage(), notNullValue() ); }
public UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (UpdateScmResult) execute( repository, fileSet, parameters ); }
AccuRevUpdateCommand extends AbstractAccuRevCommand { public UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (UpdateScmResult) execute( repository, fileSet, parameters ); } }
AccuRevUpdateCommand extends AbstractAccuRevCommand { public UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (UpdateScmResult) execute( repository, fileSet, parameters ); } AccuRevUpdateCommand( ScmLogger logger ); }
AccuRevUpdateCommand extends AbstractAccuRevCommand { public UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (UpdateScmResult) execute( repository, fileSet, parameters ); } AccuRevUpdateCommand( ScmLogger logger ); UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ); }
AccuRevUpdateCommand extends AbstractAccuRevCommand { public UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (UpdateScmResult) execute( repository, fileSet, parameters ); } AccuRevUpdateCommand( ScmLogger logger ); UpdateScmResult update( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters );  }