Author: pferraro
Date: 2008-10-31 16:19:04 -0400 (Fri, 31 Oct 2008)
New Revision: 2041
Modified:
trunk/mod_cluster/src/test/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceTestCase.java
Log:
Refactored reset request source logic to support multiple virtual hosts
Reset request logic will now handle missing vhosts.
Modified:
trunk/mod_cluster/src/test/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceTestCase.java
===================================================================
---
trunk/mod_cluster/src/test/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceTestCase.java 2008-10-31
20:18:49 UTC (rev 2040)
+++
trunk/mod_cluster/src/test/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceTestCase.java 2008-10-31
20:19:04 UTC (rev 2041)
@@ -26,6 +26,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import org.apache.catalina.Container;
import org.apache.catalina.Context;
@@ -67,7 +68,7 @@
public void getResetRequests() throws Exception
{
Map<String, String> emptyMap = Collections.emptyMap();
- Map<String, ResetRequestSource.EngineStatus> emptyResponseMap =
Collections.emptyMap();
+ Map<String, Set<ResetRequestSource.VirtualHost>> emptyResponseMap =
Collections.emptyMap();
MCMPRequest request1 = new MCMPRequest(MCMPRequestType.ENABLE_APP, false,
"host1", emptyMap);
MCMPRequest request2 = new MCMPRequest(MCMPRequestType.REMOVE_APP, false,
"host2", emptyMap);
@@ -196,7 +197,7 @@
@Test
public void getLocalResetRequests() throws Exception
{
- Map<String, ResetRequestSource.EngineStatus> emptyResponseMap =
Collections.emptyMap();
+ Map<String, Set<ResetRequestSource.VirtualHost>> emptyResponseMap =
Collections.emptyMap();
// Test w/out server
List<MCMPRequest> results =
this.source.getLocalResetRequests(emptyResponseMap);
Show replies by date