continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447214 - /maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java
Date Mon, 18 Sep 2006 03:33:35 GMT
Author: carlos
Date: Sun Sep 17 20:33:34 2006
New Revision: 447214

URL: http://svn.apache.org/viewvc?view=rev&rev=447214
Log:
Return added/updated object for notifiers and build definitions

Modified:
    maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java

Modified: maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java?view=diff&rev=447214&r1=447213&r2=447214
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/test/java/org/apache/maven/continuum/security/acegi/aspectj/ContinuumStub.java
Sun Sep 17 20:33:34 2006
@@ -16,6 +16,11 @@
  * limitations under the License.
  */
 
+import java.io.File;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
 import org.apache.maven.continuum.Continuum;
 import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.configuration.ConfigurationService;
@@ -32,11 +37,6 @@
 import org.apache.maven.continuum.security.ContinuumSecurity;
 import org.codehaus.plexus.util.dag.CycleDetectedException;
 
-import java.io.File;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
 /**
  * Stub implementation of {@link Continuum} with empty implementations.
  * Needs to be static to be weaved by AspectJ.
@@ -82,14 +82,16 @@
         return null;
     }
 
-    public void addNotifier( int projectId, ProjectNotifier notifier )
+    public ProjectNotifier addNotifier( int projectId, ProjectNotifier notifier )
         throws ContinuumException
     {
+        return null;
     }
 
-    public void addNotifier( int projectId, String notifierType, Map configuration )
+    public ProjectNotifier addNotifier( int projectId, String notifierType, Map configuration
)
         throws ContinuumException
     {
+        return null;
     }
 
     public int addProject( Project project, String executorId )
@@ -379,6 +381,14 @@
     public void removeProject( int projectId )
         throws ContinuumException
     {
+        Project project = new Project();
+        project.setId( projectId );
+        removeProject( project );
+    }
+
+    public void removeProject( Project project )
+        throws ContinuumException
+    {
     }
 
     public void removeSchedule( int scheduleId )
@@ -411,14 +421,16 @@
     {
     }
 
-    public void updateNotifier( int projectId, int notifierId, Map configuration )
+    public ProjectNotifier updateNotifier( int projectId, int notifierId, Map configuration
)
         throws ContinuumException
     {
+        return null;
     }
 
-    public void updateNotifier( int projectId, ProjectNotifier notifier )
+    public ProjectNotifier updateNotifier( int projectId, ProjectNotifier notifier )
         throws ContinuumException
     {
+        return null;
     }
 
     public void updateProject( Project project )
@@ -482,6 +494,14 @@
     public void removeProjectGroup( int projectGroupId )
         throws ContinuumException
     {
+        ProjectGroup projectGroup = new ProjectGroup();
+        projectGroup.setId( projectGroupId );
+        removeProjectGroup( projectGroup );
+    }
+
+    public void removeProjectGroup( ProjectGroup projectGroup )
+        throws ContinuumException
+    {
     }
 
     public void buildProjectGroup( int projectGroupId )
@@ -495,14 +515,16 @@
         return null;
     }
 
-    public void addBuildDefinitionToProject( int projectId, BuildDefinition buildDefinition
)
+    public BuildDefinition addBuildDefinitionToProject( int projectId, BuildDefinition buildDefinition
)
         throws ContinuumException
     {
+        return null;
     }
 
-    public void addBuildDefinitionToProjectGroup( int projectGroupId, BuildDefinition buildDefinition
)
+    public BuildDefinition addBuildDefinitionToProjectGroup( int projectGroupId, BuildDefinition
buildDefinition )
         throws ContinuumException
     {
+        return null;
     }
 
     public List getBuildDefinitionsForProject( int projectId )
@@ -527,14 +549,16 @@
     {
     }
 
-    public void updateBuildDefinitionForProject( int projectId, BuildDefinition buildDefinition
)
+    public BuildDefinition updateBuildDefinitionForProject( int projectId, BuildDefinition
buildDefinition )
         throws ContinuumException
     {
+        return null;
     }
 
-    public void updateBuildDefinitionForProjectGroup( int projectGroupId, BuildDefinition
buildDefinition )
+    public BuildDefinition updateBuildDefinitionForProjectGroup( int projectGroupId, BuildDefinition
buildDefinition )
         throws ContinuumException
     {
+        return null;
     }
 
     public ContinuumReleaseManager getReleaseManager()



Mime
View raw message