maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r525197 - /maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java
Date Tue, 03 Apr 2007 16:19:30 GMT
Author: evenisse
Date: Tue Apr  3 09:19:26 2007
New Revision: 525197

URL: http://svn.apache.org/viewvc?view=rev&rev=525197
Log: (empty)

Modified:
    maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java

Modified: maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java?view=diff&rev=525197&r1=525196&r2=525197
==============================================================================
--- maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java
(original)
+++ maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/manager/ScmManagerStub.java
Tue Apr  3 09:19:26 2007
@@ -25,10 +25,28 @@
 import org.apache.maven.scm.repository.ScmRepositoryException;
 import org.apache.maven.scm.repository.ScmRepositoryStub;
 import org.apache.maven.scm.repository.UnknownRepositoryStructure;
+import org.apache.maven.scm.command.add.AddScmResult;
+import org.apache.maven.scm.command.changelog.ChangeLogScmResult;
+import org.apache.maven.scm.command.checkin.CheckInScmResult;
+import org.apache.maven.scm.command.checkout.CheckOutScmResult;
+import org.apache.maven.scm.command.diff.DiffScmResult;
+import org.apache.maven.scm.command.edit.EditScmResult;
+import org.apache.maven.scm.command.export.ExportScmResult;
+import org.apache.maven.scm.command.list.ListScmResult;
+import org.apache.maven.scm.command.remove.RemoveScmResult;
+import org.apache.maven.scm.command.status.StatusScmResult;
+import org.apache.maven.scm.command.tag.TagScmResult;
+import org.apache.maven.scm.command.unedit.UnEditScmResult;
+import org.apache.maven.scm.command.update.UpdateScmResult;
+import org.apache.maven.scm.ScmFileSet;
+import org.apache.maven.scm.ScmException;
+import org.apache.maven.scm.ScmBranch;
+import org.apache.maven.scm.ScmVersion;
 
 import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Date;
 
 /**
  * Stub implementation of ScmManager for unit testing purposes. It allows setting the expected
results that the different methods will return.
@@ -153,4 +171,288 @@
         return getScmProvider();
     }
 
+    /**
+     *
+     */
+    public AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).add( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public AddScmResult add( ScmRepository repository, ScmFileSet fileSet, String message
)
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).add( repository, fileSet, message
);
+    }
+
+    /**
+     *
+     */
+    public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date
startDate, Date endDate,
+                                         int numDays, ScmBranch branch )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).changeLog( repository, fileSet,
startDate, endDate, numDays,
+                                                                     branch );
+    }
+
+    /**
+     *
+     */
+    public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date
startDate, Date endDate,
+                                         int numDays, ScmBranch branch, String datePattern
)
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).changeLog( repository, fileSet,
startDate, endDate, numDays,
+                                                                     branch, datePattern
);
+    }
+
+    /**
+     *
+     */
+    public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, ScmVersion
startVersion,
+                                         ScmVersion endVersion )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).changeLog( repository, fileSet,
startVersion, endVersion );
+    }
+
+    /**
+     *
+     */
+    public ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, ScmVersion
startRevision,
+                                         ScmVersion endRevision, String datePattern )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).changeLog( repository, fileSet,
startRevision, endRevision,
+                                                                     datePattern );
+    }
+
+    /**
+     *
+     */
+    public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, String
message )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkIn( repository, fileSet, message
);
+    }
+
+    /**
+     *
+     */
+    public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, ScmVersion
revision, String message )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkIn( repository, fileSet, revision,
message );
+    }
+
+    /**
+     *
+     */
+    public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkOut( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkOut( repository, fileSet,
version );
+    }
+
+    /**
+     *
+     */
+    public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet, boolean
recursive )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkOut( repository, fileSet,
recursive );
+    }
+
+    /**
+     *
+     */
+    public CheckOutScmResult checkOut( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version,
+                                       boolean recursive )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).checkOut( repository, fileSet,
version, recursive );
+    }
+
+    /**
+     *
+     */
+    public DiffScmResult diff( ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion,
+                               ScmVersion endVersion )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).diff( repository, fileSet, startVersion,
endVersion );
+    }
+
+    /**
+     *
+     */
+    public EditScmResult edit( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).edit( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).export( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).export( repository, fileSet, version
);
+    }
+
+    /**
+     *
+     */
+    public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, String outputDirectory
)
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).export( repository, fileSet, (ScmVersion)
null,
+                                                                  outputDirectory );
+    }
+
+    /**
+     *
+     */
+    public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version,
+                                   String outputDirectory )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).export( repository, fileSet, version,
outputDirectory );
+    }
+
+    /**
+     *
+     */
+    public ListScmResult list( ScmRepository repository, ScmFileSet fileSet, boolean recursive,
ScmVersion version )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).list( repository, fileSet, recursive,
version );
+    }
+
+    /**
+     *
+     */
+    public RemoveScmResult remove( ScmRepository repository, ScmFileSet fileSet, String message
)
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).remove( repository, fileSet, message
);
+    }
+
+    /**
+     *
+     */
+    public StatusScmResult status( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).status( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tagName
)
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).tag( repository, fileSet, tagName
);
+    }
+
+    /**
+     *
+     */
+    public UnEditScmResult unedit( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).unedit( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet );
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, version
);
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, boolean
runChangelog )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, runChangelog
);
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version,
+                                   boolean runChangelog )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, version,
runChangelog );
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version,
+                                   String datePattern )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, version,
datePattern );
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version, Date lastUpdate )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, version,
lastUpdate );
+    }
+
+    /**
+     *
+     */
+    public UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion
version, Date lastUpdate,
+                                   String datePattern )
+        throws ScmException
+    {
+        return this.getProviderByRepository( repository ).update( repository, fileSet, version,
lastUpdate,
+                                                                  datePattern );
+    }
 }



Mime
View raw message