continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1164037 - /continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java
Date Thu, 01 Sep 2011 12:22:10 GMT
Author: ctan
Date: Thu Sep  1 12:22:10 2011
New Revision: 1164037

URL: http://svn.apache.org/viewvc?rev=1164037&view=rev
Log:
[CONTINUUM-2666] added unit test

Modified:
    continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java?rev=1164037&r1=1164036&r2=1164037&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/test/java/org/apache/continuum/xmlrpc/server/ContinuumServiceImplTest.java
Thu Sep  1 12:22:10 2011
@@ -315,6 +315,24 @@ public class ContinuumServiceImplTest
         context.assertIsSatisfied();
     }
 
+    public void testGetNonExistingBuildAgentGroup() throws Exception
+    {
+        context.checking( new Expectations() 
+        {
+            {
+                one( continuum ).getConfiguration();
+                will( returnValue( configurationService ) );
+                
+                one( configurationService ).getBuildAgentGroup( "Agent Group Name" );
+                will( returnValue ( null ) );
+            }
+        });
+        int result = continuumService.removeBuildAgentGroup( "Agent Group Name" );
+        assertEquals( 0, result );
+
+        context.assertIsSatisfied();
+    }
+
     private BuildDefinition createBuildDefinition()
     {
         BuildDefinition buildDef = new BuildDefinition();



Mime
View raw message