Coverage Report - org.apache.maven.scm.provider.ScmProviderStub
 
Classes in this File Line Coverage Branch Coverage Complexity
ScmProviderStub
38 %
53/137
N/A
1
 
 1  
 package org.apache.maven.scm.provider;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  * http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.maven.scm.CommandParameters;
 23  
 import org.apache.maven.scm.ScmBranch;
 24  
 import org.apache.maven.scm.ScmBranchParameters;
 25  
 import org.apache.maven.scm.ScmException;
 26  
 import org.apache.maven.scm.ScmFile;
 27  
 import org.apache.maven.scm.ScmFileSet;
 28  
 import org.apache.maven.scm.ScmTagParameters;
 29  
 import org.apache.maven.scm.ScmVersion;
 30  
 import org.apache.maven.scm.command.add.AddScmResult;
 31  
 import org.apache.maven.scm.command.blame.BlameScmResult;
 32  
 import org.apache.maven.scm.command.branch.BranchScmResult;
 33  
 import org.apache.maven.scm.command.changelog.ChangeLogScmResult;
 34  
 import org.apache.maven.scm.command.checkin.CheckInScmResult;
 35  
 import org.apache.maven.scm.command.checkout.CheckOutScmResult;
 36  
 import org.apache.maven.scm.command.diff.DiffScmResult;
 37  
 import org.apache.maven.scm.command.edit.EditScmResult;
 38  
 import org.apache.maven.scm.command.export.ExportScmResult;
 39  
 import org.apache.maven.scm.command.info.InfoScmResult;
 40  
 import org.apache.maven.scm.command.list.ListScmResult;
 41  
 import org.apache.maven.scm.command.mkdir.MkdirScmResult;
 42  
 import org.apache.maven.scm.command.remoteinfo.RemoteInfoScmResult;
 43  
 import org.apache.maven.scm.command.remove.RemoveScmResult;
 44  
 import org.apache.maven.scm.command.status.StatusScmResult;
 45  
 import org.apache.maven.scm.command.tag.TagScmResult;
 46  
 import org.apache.maven.scm.command.unedit.UnEditScmResult;
 47  
 import org.apache.maven.scm.command.update.UpdateScmResult;
 48  
 import org.apache.maven.scm.log.ScmLogger;
 49  
 import org.apache.maven.scm.repository.ScmRepository;
 50  
 import org.apache.maven.scm.repository.ScmRepositoryException;
 51  
 import org.apache.maven.scm.repository.UnknownRepositoryStructure;
 52  
 
 53  
 import java.io.File;
 54  
 import java.util.ArrayList;
 55  
 import java.util.Collections;
 56  
 import java.util.Date;
 57  
 import java.util.List;
 58  
 
 59  
 /**
 60  
  * Stub implementation of ScmProvider for unit testing purposes.
 61  
  * It allows setting the expected results that the different methods will return.
 62  
  * More information about Stubs on <a href="http://martinfowler.com/bliki/TestDouble.html">Martin Fowler's TestDouble</a>
 63  
  *
 64  
  * @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
 65  
  * @version $Id: ScmProviderStub.java 1306403 2012-03-28 15:13:37Z olamy $
 66  
  */
 67  
 public class ScmProviderStub
 68  
     implements ScmProvider
 69  
 {
 70  
 
 71  
     private String scmType, scmSpecificFilename;
 72  
 
 73  12
     private List<ScmLogger> loggers = new ArrayList<ScmLogger>();
 74  
 
 75  
     private boolean requiresEditmode;
 76  
 
 77  12
     private ScmProviderRepository scmProviderRepository = new ScmProviderRepositoryStub();
 78  
 
 79  12
     private List<String> errors = new ArrayList<String>();
 80  
 
 81  
     private AddScmResult addScmResult;
 82  
 
 83  
     private BranchScmResult branchScmResult;
 84  
 
 85  
     private CheckInScmResult checkInScmResult;
 86  
 
 87  
     private CheckOutScmResult checkOutScmResult;
 88  
 
 89  
     private ChangeLogScmResult changeLogScmResult;
 90  
 
 91  
     private DiffScmResult diffScmResult;
 92  
 
 93  
     private RemoveScmResult removeScmResult;
 94  
 
 95  
     private StatusScmResult statusScmResult;
 96  
 
 97  
     private TagScmResult tagScmResult;
 98  
 
 99  
     private UpdateScmResult updateScmResult;
 100  
 
 101  
     private EditScmResult editScmResult;
 102  
 
 103  
     private UnEditScmResult unEditScmResult;
 104  
 
 105  
     private ListScmResult listScmResult;
 106  
 
 107  
     private ExportScmResult exportScmResult;
 108  
 
 109  
     private BlameScmResult blameScmResult;
 110  
 
 111  
     private MkdirScmResult mkdirScmResult;
 112  
 
 113  
     /**
 114  
      * Create a new ScmProviderStub with bogus (not null) attributes
 115  
      */
 116  
     public ScmProviderStub()
 117  12
     {
 118  12
         setScmSpecificFilename( "" );
 119  12
         setAddScmResult( new AddScmResult( "", Collections.<ScmFile>emptyList() ) );
 120  12
         setBranchScmResult( new BranchScmResult( "", Collections.<ScmFile>emptyList() ) );
 121  12
         setChangeLogScmResult( new ChangeLogScmResult( "", "", "", true ) );
 122  12
         setCheckInScmResult( new CheckInScmResult( "", "", "", true ) );
 123  12
         setCheckOutScmResult( new CheckOutScmResult( "", "", "", true ) );
 124  12
         setDiffScmResult( new DiffScmResult( "", "", "", true ) );
 125  12
         setEditScmResult( new EditScmResult( "", "", "", true ) );
 126  12
         setExportScmResult( new ExportScmResult( "", "", "", true ) );
 127  12
         setRemoveScmResult( new RemoveScmResult( "", "", "", true ) );
 128  12
         setStatusScmResult( new StatusScmResult( "", "", "", true ) );
 129  12
         setTagScmResult( new TagScmResult( "", "", "", true ) );
 130  12
         setUnEditScmResult( new UnEditScmResult( "", "", "", true ) );
 131  12
         setUpdateScmResult( new UpdateScmResult( "", "", "", true ) );
 132  12
         setBlameScmResult( new BlameScmResult( "", "", "", true ) );
 133  12
         setMkdirScmResult( new MkdirScmResult( "", "", "", true ) );
 134  12
     }
 135  
 
 136  
     /**
 137  
      * {@inheritDoc}
 138  
      */
 139  
     public String sanitizeTagName( String tag )
 140  
     {
 141  0
         return tag;
 142  
     }
 143  
 
 144  
     /**
 145  
      * {@inheritDoc}
 146  
      */
 147  
     public boolean validateTagName( String tag )
 148  
     {
 149  0
         return true;
 150  
     }
 151  
 
 152  
     /**
 153  
      * {@inheritDoc}
 154  
      */
 155  
     public String getScmType()
 156  
     {
 157  0
         return scmType;
 158  
     }
 159  
 
 160  
     public void setScmSpecificFilename( String scmSpecificFilename )
 161  
     {
 162  12
         this.scmSpecificFilename = scmSpecificFilename;
 163  12
     }
 164  
 
 165  
     /**
 166  
      * {@inheritDoc}
 167  
      */
 168  
     public void addListener( ScmLogger logger )
 169  
     {
 170  0
         loggers.add( logger );
 171  0
     }
 172  
 
 173  
     public boolean requiresEditMode()
 174  
     {
 175  0
         return requiresEditmode;
 176  
     }
 177  
 
 178  
     public void setAddScmResult( AddScmResult addScmResult )
 179  
     {
 180  12
         this.addScmResult = addScmResult;
 181  12
     }
 182  
 
 183  
     public AddScmResult getAddScmResult()
 184  
     {
 185  0
         return addScmResult;
 186  
     }
 187  
 
 188  
     public void setBranchScmResult( BranchScmResult branchScmResult )
 189  
     {
 190  12
         this.branchScmResult = branchScmResult;
 191  12
     }
 192  
 
 193  
     public BranchScmResult getBranchScmResult()
 194  
     {
 195  0
         return branchScmResult;
 196  
     }
 197  
 
 198  
     public void setCheckInScmResult( CheckInScmResult checkInScmResult )
 199  
     {
 200  12
         this.checkInScmResult = checkInScmResult;
 201  12
     }
 202  
 
 203  
     public CheckInScmResult getCheckInScmResult()
 204  
     {
 205  0
         return checkInScmResult;
 206  
     }
 207  
 
 208  
     public void setCheckOutScmResult( CheckOutScmResult checkOutScmResult )
 209  
     {
 210  12
         this.checkOutScmResult = checkOutScmResult;
 211  12
     }
 212  
 
 213  
     public CheckOutScmResult getCheckOutScmResult()
 214  
     {
 215  0
         return checkOutScmResult;
 216  
     }
 217  
 
 218  
     public void setChangeLogScmResult( ChangeLogScmResult changeLogScmResult )
 219  
     {
 220  12
         this.changeLogScmResult = changeLogScmResult;
 221  12
     }
 222  
 
 223  
     public ChangeLogScmResult getChangeLogScmResult()
 224  
     {
 225  0
         return changeLogScmResult;
 226  
     }
 227  
 
 228  
     public void setDiffScmResult( DiffScmResult diffScmResult )
 229  
     {
 230  12
         this.diffScmResult = diffScmResult;
 231  12
     }
 232  
 
 233  
     public DiffScmResult getDiffScmResult()
 234  
     {
 235  0
         return diffScmResult;
 236  
     }
 237  
 
 238  
     public ExportScmResult getExportScmResult()
 239  
     {
 240  0
         return exportScmResult;
 241  
     }
 242  
 
 243  
     public void setExportScmResult( ExportScmResult exportScmResult )
 244  
     {
 245  12
         this.exportScmResult = exportScmResult;
 246  12
     }
 247  
 
 248  
     public void setTagScmResult( TagScmResult tagScmResult )
 249  
     {
 250  12
         this.tagScmResult = tagScmResult;
 251  12
     }
 252  
 
 253  
     public TagScmResult getTagScmResult()
 254  
     {
 255  0
         return tagScmResult;
 256  
     }
 257  
 
 258  
     public void setRemoveScmResult( RemoveScmResult removeScmResult )
 259  
     {
 260  12
         this.removeScmResult = removeScmResult;
 261  12
     }
 262  
 
 263  
     public RemoveScmResult getRemoveScmResult()
 264  
     {
 265  0
         return removeScmResult;
 266  
     }
 267  
 
 268  
     public void setStatusScmResult( StatusScmResult statusScmResult )
 269  
     {
 270  12
         this.statusScmResult = statusScmResult;
 271  12
     }
 272  
 
 273  
     public StatusScmResult getStatusScmResult()
 274  
     {
 275  0
         return statusScmResult;
 276  
     }
 277  
 
 278  
     public void setUpdateScmResult( UpdateScmResult updateScmResult )
 279  
     {
 280  12
         this.updateScmResult = updateScmResult;
 281  12
     }
 282  
 
 283  
     public UpdateScmResult getUpdateScmResult()
 284  
     {
 285  0
         return updateScmResult;
 286  
     }
 287  
 
 288  
     public void setEditScmResult( EditScmResult editScmResult )
 289  
     {
 290  12
         this.editScmResult = editScmResult;
 291  12
     }
 292  
 
 293  
     public EditScmResult getEditScmResult()
 294  
     {
 295  0
         return editScmResult;
 296  
     }
 297  
 
 298  
     public void setUnEditScmResult( UnEditScmResult unEditScmResult )
 299  
     {
 300  12
         this.unEditScmResult = unEditScmResult;
 301  12
     }
 302  
 
 303  
     public UnEditScmResult getUnEditScmResult()
 304  
     {
 305  0
         return unEditScmResult;
 306  
     }
 307  
 
 308  
     public void setListScmResult( ListScmResult listScmResult )
 309  
     {
 310  0
         this.listScmResult = listScmResult;
 311  0
     }
 312  
 
 313  
     public ListScmResult getListScmResult()
 314  
     {
 315  0
         return listScmResult;
 316  
     }
 317  
 
 318  
     public void setBlameScmResult( BlameScmResult blameScmResult )
 319  
     {
 320  12
         this.blameScmResult = blameScmResult;
 321  12
     }
 322  
 
 323  
     public BlameScmResult getBlameScmResult()
 324  
     {
 325  0
         return blameScmResult;
 326  
     }
 327  
 
 328  
     public MkdirScmResult getMkdirScmResult()
 329  
     {
 330  0
         return mkdirScmResult;
 331  
     }
 332  
 
 333  
     public void setMkdirScmResult( MkdirScmResult mkdirScmResult )
 334  
     {
 335  12
         this.mkdirScmResult = mkdirScmResult;
 336  12
     }
 337  
 
 338  
     /**
 339  
      * {@inheritDoc}
 340  
      */
 341  
     public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, char delimiter )
 342  
         throws ScmRepositoryException
 343  
     {
 344  0
         return scmProviderRepository;
 345  
     }
 346  
 
 347  
     /**
 348  
      * {@inheritDoc}
 349  
      */
 350  
     public ScmProviderRepository makeProviderScmRepository( File path )
 351  
         throws ScmRepositoryException, UnknownRepositoryStructure
 352  
     {
 353  0
         return scmProviderRepository;
 354  
     }
 355  
 
 356  
     /**
 357  
      * {@inheritDoc}
 358  
      */
 359  
     public List<String> validateScmUrl( String scmSpecificUrl, char delimiter )
 360  
     {
 361  0
         return errors;
 362  
     }
 363  
 
 364  
     /**
 365  
      * {@inheritDoc}
 366  
      */
 367  
     public String getScmSpecificFilename()
 368  
     {
 369  0
         return scmSpecificFilename;
 370  
     }
 371  
 
 372  
     /**
 373  
      * {@inheritDoc}
 374  
      */
 375  
     public AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
 376  
         throws ScmException
 377  
     {
 378  0
         return getAddScmResult();
 379  
     }
 380  
 
 381  
     /**
 382  
      * {@inheritDoc}
 383  
      */
 384  
     public AddScmResult add( ScmRepository repository, ScmFileSet fileSet, String message )
 385  
         throws ScmException
 386  
     {
 387  0
         return getAddScmResult();
 388  
     }
 389  
 
 390  
     public AddScmResult add( ScmRepository repository, ScmFileSet fileSet, CommandParameters commandParameters )
 391  
         throws ScmException
 392  
     {
 393  0
         return getAddScmResult();
 394  
     }
 395  
 
 396  
     /**
 397  
      * {@inheritDoc}
 398  
      */
 399  
     public BranchScmResult branch( ScmRepository repository, ScmFileSet fileSet, String branchName )
 400  
         throws ScmException
 401  
     {
 402  0
         return getBranchScmResult();
 403  
     }
 404  
 
 405  
     /**
 406  
      * {@inheritDoc}
 407  
      */
 408  
     public BranchScmResult branch( ScmRepository repository, ScmFileSet fileSet, String branchName, String message )
 409  
         throws ScmException
 410  
     {
 411  0
         return getBranchScmResult();
 412  
     }
 413  
 
 414  
     /**
 415  
      * {@inheritDoc}
 416  
      */
 417  
     public BranchScmResult branch( ScmRepository repository, ScmFileSet fileSet, String branchName,
 418  
                                    ScmBranchParameters scmBranchParameters )
 419  
         throws ScmException
 420  
     {
 421  0
         return getBranchScmResult();
 422  
     }
 423  
 
 424  
     /**
 425  
      * {@inheritDoc}
 426  
      */
 427  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate,
 428  
                                          int numDays, String branch )
 429  
         throws ScmException
 430  
     {
 431  0
         return getChangeLogScmResult();
 432  
     }
 433  
 
 434  
     /**
 435  
      * {@inheritDoc}
 436  
      */
 437  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate,
 438  
                                          int numDays, String branch, String datePattern )
 439  
         throws ScmException
 440  
     {
 441  0
         return getChangeLogScmResult();
 442  
     }
 443  
 
 444  
     /**
 445  
      * {@inheritDoc}
 446  
      */
 447  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag )
 448  
         throws ScmException
 449  
     {
 450  0
         return getChangeLogScmResult();
 451  
     }
 452  
 
 453  
     /**
 454  
      * {@inheritDoc}
 455  
      */
 456  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag,
 457  
                                          String datePattern )
 458  
         throws ScmException
 459  
     {
 460  0
         return getChangeLogScmResult();
 461  
     }
 462  
 
 463  
     /**
 464  
      * {@inheritDoc}
 465  
      */
 466  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate,
 467  
                                          int numDays, ScmBranch branch )
 468  
         throws ScmException
 469  
     {
 470  0
         return getChangeLogScmResult();
 471  
     }
 472  
 
 473  
     /**
 474  
      * {@inheritDoc}
 475  
      */
 476  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate,
 477  
                                          int numDays, ScmBranch branch, String datePattern )
 478  
         throws ScmException
 479  
     {
 480  0
         return getChangeLogScmResult();
 481  
     }
 482  
 
 483  
     /**
 484  
      * {@inheritDoc}
 485  
      */
 486  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion,
 487  
                                          ScmVersion endVersion )
 488  
         throws ScmException
 489  
     {
 490  0
         return getChangeLogScmResult();
 491  
     }
 492  
 
 493  
     /**
 494  
      * {@inheritDoc}
 495  
      */
 496  
     public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision,
 497  
                                          ScmVersion endRevision, String datePattern )
 498  
         throws ScmException
 499  
     {
 500  0
         return getChangeLogScmResult();
 501  
     }
 502  
 
 503  
     /**
 504  
      * {@inheritDoc}
 505  
      */
 506  
     public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, String tag, String message )
 507  
         throws ScmException
 508  
     {
 509  0
         return getCheckInScmResult();
 510  
     }
 511  
 
 512  
     /**
 513  
      * {@inheritDoc}
 514  
      */
 515  
     public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, String message )
 516  
         throws ScmException
 517  
     {
 518  0
         return getCheckInScmResult();
 519  
     }
 520  
 
 521  
     /**
 522  
      * {@inheritDoc}
 523  
      */
 524  
     public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message )
 525  
         throws ScmException
 526  
     {
 527  0
         return getCheckInScmResult();
 528  
     }
 529  
 
 530  
     /**
 531  
      * {@inheritDoc}
 532  
      */
 533  
     public CheckOutScmResult checkOut( ScmRepository scmRepository, ScmFileSet scmFileSet, String tag,
 534  
                                        boolean recursive )
 535  
         throws ScmException
 536  
     {
 537  0
         return getCheckOutScmResult();
 538  
     }
 539  
 
 540  
     /**
 541  
      * {@inheritDoc}
 542  
      */
 543  
     public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet, String tag )
 544  
         throws ScmException
 545  
     {
 546  0
         return getCheckOutScmResult();
 547  
     }
 548  
 
 549  
     /**
 550  
      * {@inheritDoc}
 551  
      */
 552  
     public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet )
 553  
         throws ScmException
 554  
     {
 555  0
         return getCheckOutScmResult();
 556  
     }
 557  
 
 558  
     /**
 559  
      * {@inheritDoc}
 560  
      */
 561  
     public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet, ScmVersion version )
 562  
         throws ScmException
 563  
     {
 564  0
         return getCheckOutScmResult();
 565  
     }
 566  
 
 567  
     /**
 568  
      * {@inheritDoc}
 569  
      */
 570  
     public CheckOutScmResult checkOut( ScmRepository scmRepository, ScmFileSet scmFileSet, boolean recursive )
 571  
         throws ScmException
 572  
     {
 573  0
         return getCheckOutScmResult();
 574  
     }
 575  
 
 576  
     /**
 577  
      * {@inheritDoc}
 578  
      */
 579  
     public CheckOutScmResult checkOut( ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion version,
 580  
                                        boolean recursive )
 581  
         throws ScmException
 582  
     {
 583  0
         return getCheckOutScmResult();
 584  
     }
 585  
 
 586  
     /**
 587  
      * {@inheritDoc}
 588  
      */
 589  
     public DiffScmResult diff( ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision )
 590  
         throws ScmException
 591  
     {
 592  0
         return getDiffScmResult();
 593  
     }
 594  
 
 595  
     /**
 596  
      * {@inheritDoc}
 597  
      */
 598  
     public DiffScmResult diff( ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion startVersion,
 599  
                                ScmVersion endVersion )
 600  
         throws ScmException
 601  
     {
 602  0
         return getDiffScmResult();
 603  
     }
 604  
 
 605  
     /**
 606  
      * @return getUpdateScmResult() always
 607  
      */
 608  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate,
 609  
                                    String datePattern, boolean runChangelog )
 610  
         throws ScmException
 611  
     {
 612  0
         return getUpdateScmResult();
 613  
     }
 614  
 
 615  
     /**
 616  
      * {@inheritDoc}
 617  
      */
 618  
     public EditScmResult edit( ScmRepository repository, ScmFileSet fileSet )
 619  
         throws ScmException
 620  
     {
 621  0
         return getEditScmResult();
 622  
     }
 623  
 
 624  
     /**
 625  
      * {@inheritDoc}
 626  
      */
 627  
     public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, String tag )
 628  
         throws ScmException
 629  
     {
 630  0
         return getExportScmResult();
 631  
     }
 632  
 
 633  
     /**
 634  
      * {@inheritDoc}
 635  
      */
 636  
     public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory )
 637  
         throws ScmException
 638  
     {
 639  0
         return getExportScmResult();
 640  
     }
 641  
 
 642  
     /**
 643  
      * {@inheritDoc}
 644  
      */
 645  
     public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet )
 646  
         throws ScmException
 647  
     {
 648  0
         return getExportScmResult();
 649  
     }
 650  
 
 651  
     /**
 652  
      * {@inheritDoc}
 653  
      */
 654  
     public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, ScmVersion version )
 655  
         throws ScmException
 656  
     {
 657  0
         return getExportScmResult();
 658  
     }
 659  
 
 660  
     /**
 661  
      * {@inheritDoc}
 662  
      */
 663  
     public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, ScmVersion version,
 664  
                                    String outputDirectory )
 665  
         throws ScmException
 666  
     {
 667  0
         return getExportScmResult();
 668  
     }
 669  
 
 670  
     /**
 671  
      * {@inheritDoc}
 672  
      */
 673  
     public ListScmResult list( ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag )
 674  
         throws ScmException
 675  
     {
 676  0
         return getListScmResult();
 677  
     }
 678  
 
 679  
     /**
 680  
      * {@inheritDoc}
 681  
      */
 682  
     public ListScmResult list( ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version )
 683  
         throws ScmException
 684  
     {
 685  0
         return getListScmResult();
 686  
     }
 687  
 
 688  
     /**
 689  
      * {@inheritDoc}
 690  
      */
 691  
     public RemoveScmResult remove( ScmRepository repository, ScmFileSet fileSet, String message )
 692  
         throws ScmException
 693  
     {
 694  0
         return getRemoveScmResult();
 695  
     }
 696  
 
 697  
     /**
 698  
      * {@inheritDoc}
 699  
      */
 700  
     public StatusScmResult status( ScmRepository repository, ScmFileSet fileSet )
 701  
         throws ScmException
 702  
     {
 703  0
         return getStatusScmResult();
 704  
     }
 705  
 
 706  
     /**
 707  
      * {@inheritDoc}
 708  
      */
 709  
     public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tag )
 710  
         throws ScmException
 711  
     {
 712  0
         return getTagScmResult();
 713  
     }
 714  
 
 715  
     /**
 716  
      * {@inheritDoc}
 717  
      */
 718  
     public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tag, String message )
 719  
         throws ScmException
 720  
     {
 721  0
         return getTagScmResult();
 722  
     }
 723  
 
 724  
     public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tagName,
 725  
                              ScmTagParameters scmTagParameters )
 726  
         throws ScmException
 727  
     {
 728  0
         return getTagScmResult();
 729  
     }
 730  
 
 731  
     /**
 732  
      * {@inheritDoc}
 733  
      */
 734  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag )
 735  
         throws ScmException
 736  
     {
 737  0
         return getUpdateScmResult();
 738  
     }
 739  
 
 740  
     /**
 741  
      * {@inheritDoc}
 742  
      */
 743  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog )
 744  
         throws ScmException
 745  
     {
 746  0
         return getUpdateScmResult();
 747  
     }
 748  
 
 749  
     /**
 750  
      * {@inheritDoc}
 751  
      */
 752  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern )
 753  
         throws ScmException
 754  
     {
 755  0
         return getUpdateScmResult();
 756  
     }
 757  
 
 758  
     /**
 759  
      * {@inheritDoc}
 760  
      */
 761  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate )
 762  
         throws ScmException
 763  
     {
 764  0
         return getUpdateScmResult();
 765  
     }
 766  
 
 767  
     /**
 768  
      * {@inheritDoc}
 769  
      */
 770  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate,
 771  
                                    String datePattern )
 772  
         throws ScmException
 773  
     {
 774  0
         return getUpdateScmResult();
 775  
     }
 776  
 
 777  
     /**
 778  
      * {@inheritDoc}
 779  
      */
 780  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet )
 781  
         throws ScmException
 782  
     {
 783  0
         return getUpdateScmResult();
 784  
     }
 785  
 
 786  
     /**
 787  
      * {@inheritDoc}
 788  
      */
 789  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion version )
 790  
         throws ScmException
 791  
     {
 792  0
         return getUpdateScmResult();
 793  
     }
 794  
 
 795  
     /**
 796  
      * {@inheritDoc}
 797  
      */
 798  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, boolean runChangelog )
 799  
         throws ScmException
 800  
     {
 801  0
         return getUpdateScmResult();
 802  
     }
 803  
 
 804  
     /**
 805  
      * {@inheritDoc}
 806  
      */
 807  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion version,
 808  
                                    boolean runChangelog )
 809  
         throws ScmException
 810  
     {
 811  0
         return getUpdateScmResult();
 812  
     }
 813  
 
 814  
     /**
 815  
      * {@inheritDoc}
 816  
      */
 817  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion version,
 818  
                                    String datePattern )
 819  
         throws ScmException
 820  
     {
 821  0
         return getUpdateScmResult();
 822  
     }
 823  
 
 824  
     /**
 825  
      * {@inheritDoc}
 826  
      */
 827  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate )
 828  
         throws ScmException
 829  
     {
 830  0
         return getUpdateScmResult();
 831  
     }
 832  
 
 833  
     /**
 834  
      * {@inheritDoc}
 835  
      */
 836  
     public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate,
 837  
                                    String datePattern )
 838  
         throws ScmException
 839  
     {
 840  0
         return getUpdateScmResult();
 841  
     }
 842  
 
 843  
     /**
 844  
      * {@inheritDoc}
 845  
      */
 846  
     public UnEditScmResult unedit( ScmRepository repository, ScmFileSet fileSet )
 847  
         throws ScmException
 848  
     {
 849  0
         return getUnEditScmResult();
 850  
     }
 851  
 
 852  
     /**
 853  
      * {@inheritDoc}
 854  
      */
 855  
     public BlameScmResult blame( ScmRepository repository, ScmFileSet fileSet, String filename )
 856  
         throws ScmException
 857  
     {
 858  0
         return getBlameScmResult();
 859  
     }
 860  
 
 861  
     /**
 862  
      * {@inheritDoc}
 863  
      */
 864  
     public MkdirScmResult mkdir( ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal )
 865  
         throws ScmException
 866  
     {
 867  0
         return getMkdirScmResult();
 868  
     }
 869  
 
 870  
     public InfoScmResult info( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters )
 871  
         throws ScmException
 872  
     {
 873  0
         return new InfoScmResult( "", "", "", true );
 874  
     }
 875  
 
 876  
     public RemoteInfoScmResult remoteInfo( ScmProviderRepository repository, ScmFileSet fileSet,
 877  
                                            CommandParameters parameters )
 878  
         throws ScmException
 879  
     {
 880  0
         return new RemoteInfoScmResult( "", null, null );
 881  
     }
 882  
 }