@Test public void testAccuRevError() throws Exception { final ScmFileSet testFileSet = new ScmFileSet( new File( "/my/workspace/project/dir" ) ); final File basedir = testFileSet.getBasedir(); final String basisStream = "basisStream"; final AccuRevInfo info = new AccuRevInfo( basedir ); info.setBasis( basisStream ); AccuRevScmProviderRepository repo = new AccuRevScmProviderRepository(); repo.setStreamName( "myStream" ); repo.setAccuRev( accurev ); repo.setProjectPath( "/project/dir" ); when( accurev.info( basedir )).thenReturn(info); when( accurev.mksnap( "theTagName", basisStream ) ).thenReturn( Boolean.FALSE ); AccuRevTagCommand command = new AccuRevTagCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.TAG_NAME, "theTagName" ); TagScmResult result = command.tag( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( false ) ); assertThat( result.getProviderMessage(), notNullValue() ); }
public TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (TagScmResult) execute( repository, fileSet, parameters ); }
AccuRevTagCommand extends AbstractAccuRevCommand { public TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (TagScmResult) execute( repository, fileSet, parameters ); } }
AccuRevTagCommand extends AbstractAccuRevCommand { public TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (TagScmResult) execute( repository, fileSet, parameters ); } AccuRevTagCommand( ScmLogger logger ); }
AccuRevTagCommand extends AbstractAccuRevCommand { public TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (TagScmResult) execute( repository, fileSet, parameters ); } AccuRevTagCommand( ScmLogger logger ); TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ); }
AccuRevTagCommand extends AbstractAccuRevCommand { public TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (TagScmResult) execute( repository, fileSet, parameters ); } AccuRevTagCommand( ScmLogger logger ); TagScmResult tag( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters );  }