@Test public void testAddFailed() throws Exception { final ScmFileSet testFileSet = new ScmFileSet( basedir, new File( "src/main/java/Foo.java" ) ); final List<File> files = testFileSet.getFileList(); when( accurev.add( basedir, files, "A new file" ) ).thenReturn(null); AccuRevAddCommand command = new AccuRevAddCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.MESSAGE, "A new file" ); AddScmResult result = command.add( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( false ) ); assertThat( result.getProviderMessage(), notNullValue() ); }
public AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ) throws ScmException { return (AddScmResult) execute( repo, scmFileSet, commandParameters ); }
AccuRevAddCommand extends AbstractAccuRevCommand { public AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ) throws ScmException { return (AddScmResult) execute( repo, scmFileSet, commandParameters ); } }
AccuRevAddCommand extends AbstractAccuRevCommand { public AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ) throws ScmException { return (AddScmResult) execute( repo, scmFileSet, commandParameters ); } AccuRevAddCommand( ScmLogger logger ); }
AccuRevAddCommand extends AbstractAccuRevCommand { public AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ) throws ScmException { return (AddScmResult) execute( repo, scmFileSet, commandParameters ); } AccuRevAddCommand( ScmLogger logger ); AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ); }
AccuRevAddCommand extends AbstractAccuRevCommand { public AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters ) throws ScmException { return (AddScmResult) execute( repo, scmFileSet, commandParameters ); } AccuRevAddCommand( ScmLogger logger ); AddScmResult add( ScmProviderRepository repo, ScmFileSet scmFileSet, CommandParameters commandParameters );  }