maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r399927 - /maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java
Date Fri, 05 May 2006 03:24:20 GMT
Author: carlos
Date: Thu May  4 20:24:19 2006
New Revision: 399927

URL: http://svn.apache.org/viewcvs?rev=399927&view=rev
Log:
[SCM-183] Add list method to ScmProvider

Modified:
    maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java

Modified: maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java?rev=399927&r1=399926&r2=399927&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java
(original)
+++ maven/scm/trunk/maven-scm-test/src/main/java/org/apache/maven/scm/provider/ScmProviderStub.java
Thu May  4 20:24:19 2006
@@ -30,6 +30,7 @@
 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.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;
@@ -83,6 +84,8 @@
 
     private UnEditScmResult unEditScmResult;
 
+    private ListScmResult listScmResult;
+
     /**
      * Create a new ScmProviderStub with bogus (not null) attributes
      */
@@ -232,6 +235,16 @@
         return unEditScmResult;
     }
 
+    public void setListScmResult( ListScmResult listScmResult )
+    {
+        this.listScmResult = listScmResult;
+    }
+
+    public ListScmResult getListScmResult()
+    {
+        return listScmResult;
+    }
+
     /**
      * @return scmProviderRepository always
      */
@@ -423,4 +436,12 @@
         return getUnEditScmResult();
     }
 
+    /**
+     * @return {@link #getListScmResult()} always
+     */
+    public ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive,
String tag)
+        throws ScmException
+    {
+        return getListScmResult();
+    }
 }



Mime
View raw message