diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-08 12:55:55 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-08 12:55:55 +0000 |
commit | c39e5cc80c62ab49c9afc4b478d50d911a08829b (patch) | |
tree | b3e89857d8599de9b30a80b6d9cbb615f01292a9 /sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java | |
parent | 52942e36de1f2738f5ce82f85be0647453f88d98 (diff) |
Add third registry to test and add @Ignore so test isnt run in the build yet
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@888380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java')
-rw-r--r-- | sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java b/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java index d8443bbe6b..d0820ffbe2 100644 --- a/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java +++ b/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java @@ -34,7 +34,7 @@ import org.junit.Ignore; import org.junit.Test;
// Ignore so its not run in the build yet till its working
-//@Ignore
+@Ignore
public class MultiRegTestCase {
// @Test
@@ -98,7 +98,7 @@ public class MultiRegTestCase { Map<String, String> attrs2 = new HashMap<String, String>();
attrs2.put("nomcast", "true");
- attrs2.put("routes", "9.167.197.91:4000");
+ attrs2.put("routes", "9.167.197.91:4000,9.167.197.91:4002");
ReplicatedEndpointRegistry reg2 = new ReplicatedEndpointRegistry(extensionPoints, attrs2, "foo", "bar");
reg2.start();
@@ -110,11 +110,27 @@ public class MultiRegTestCase { Assert.assertNotNull(ep1p2);
Assert.assertEquals("ep1uri", ep1p2.getURI());
+ Map<String, String> attrs3 = new HashMap<String, String>();
+ attrs3.put("nomcast", "true");
+ attrs3.put("routes", "9.167.197.91:4001");
+ ReplicatedEndpointRegistry reg3 = new ReplicatedEndpointRegistry(extensionPoints, attrs3, "foo", "bar");
+ reg3.start();
+
+ System.out.println("wait");
+ Thread.sleep(5000);
+ System.out.println("run");
+
+ Endpoint ep1p3 = reg3.getEndpoint("ep1uri");
+ Assert.assertNotNull(ep1p3);
+ Assert.assertEquals("ep1uri", ep1p3.getURI());
+
+
System.out.println("wait2");
Thread.sleep(5000);
System.out.println("end");
reg1.stop();
reg2.stop();
+ reg3.stop();
}
}
|