@Test public void testFailure() throws Exception { final ScmFileSet testFileSet = getScmFileSet(); when( accurev.stat( basedir, testFileSet.getFileList(), AccuRevStat.MODIFIED ) ).thenReturn( null ); AccuRevStatusCommand command = new AccuRevStatusCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); StatusScmResult result = command.status( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( false ) ); assertThat( result.getProviderMessage(), notNullValue() ); }
public StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (StatusScmResult) execute( repository, fileSet, parameters ); }
AccuRevStatusCommand extends AbstractAccuRevCommand { public StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (StatusScmResult) execute( repository, fileSet, parameters ); } }
AccuRevStatusCommand extends AbstractAccuRevCommand { public StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (StatusScmResult) execute( repository, fileSet, parameters ); } AccuRevStatusCommand( ScmLogger logger ); }
AccuRevStatusCommand extends AbstractAccuRevCommand { public StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (StatusScmResult) execute( repository, fileSet, parameters ); } AccuRevStatusCommand( ScmLogger logger ); StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ); }
AccuRevStatusCommand extends AbstractAccuRevCommand { public StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (StatusScmResult) execute( repository, fileSet, parameters ); } AccuRevStatusCommand( ScmLogger logger ); StatusScmResult status( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters );  }