geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r656358 - in /geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment: BasicClusterConfigurationControllerTest.java BasicClusterConfigurationStoreClientTest.java
Date Wed, 14 May 2008 18:51:50 GMT
Author: gawor
Date: Wed May 14 11:51:50 2008
New Revision: 656358

URL: http://svn.apache.org/viewvc?rev=656358&view=rev
Log:
fix unit test caused by rmock update

Modified:
    geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationControllerTest.java
    geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClientTest.java

Modified: geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationControllerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationControllerTest.java?rev=656358&r1=656357&r2=656358&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationControllerTest.java
(original)
+++ geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationControllerTest.java
Wed May 14 11:51:50 2008
@@ -51,14 +51,14 @@
 
         Collection<NodeInfo> nodeInfos = new ArrayList<NodeInfo>();
         
-        nodeInfo = (NodeInfo) mock(NodeInfo.class);
+        nodeInfo = (NodeInfo) mock(NodeInfo.class, "NodeInfo1");
         nodeInfos.add(nodeInfo);
         nodeInfo.getName();
         modify().multiplicity(expect.from(0)).returnValue(nodeName);
         nodeInfo.newKernel();
         modify().multiplicity(expect.from(0));
         
-        NodeInfo secondNodeInfo = (NodeInfo) mock(NodeInfo.class);
+        NodeInfo secondNodeInfo = (NodeInfo) mock(NodeInfo.class, "NodeInfo2");
         nodeInfos.add(secondNodeInfo);
         secondNodeInfo.getName();
         modify().multiplicity(expect.from(0)).returnValue("unkown");

Modified: geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClientTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClientTest.java?rev=656358&r1=656357&r2=656358&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClientTest.java
(original)
+++ geronimo/server/branches/2.1/plugins/clustering/geronimo-farm/src/test/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClientTest.java
Wed May 14 11:51:50 2008
@@ -101,7 +101,7 @@
     }
 
     private void setUpNode2Remote(Collection<NodeInfo> nodeInfos) throws IOException
{
-        node2Info = (NodeInfo) mock(NodeInfo.class);
+        node2Info = (NodeInfo) mock(NodeInfo.class, "NodeInfo2");
         nodeInfos.add(node2Info);
         node2Kernel = node2Info.newKernel();
         modify().multiplicity(expect.from(0));
@@ -110,7 +110,7 @@
     }
 
     private void setUpNode1Local(Collection<NodeInfo> nodeInfos) throws IOException
{
-        node1Info = (NodeInfo) mock(NodeInfo.class);
+        node1Info = (NodeInfo) mock(NodeInfo.class, "NodeInfo1");
         nodeInfos.add(node1Info);
         node1Kernel = node1Info.newKernel();
         modify().multiplicity(expect.from(0));



Mime
View raw message