tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [24/50] tomee git commit: add a switch to disable multicast tests
Date Wed, 11 Mar 2015 11:56:40 GMT
add a switch to disable multicast tests

This is intended building in environments where multicast is not allowed.
In that case just build with. $> mvn clean install -DskipMulticastTests=true


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/9eebf368
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/9eebf368
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/9eebf368

Branch: refs/heads/master
Commit: 9eebf3687356fe63704e5e683be9d7df6f9e4bf9
Parents: 700dc59
Author: Mark Struberg <struberg@apache.org>
Authored: Thu Mar 5 19:34:47 2015 +0100
Committer: Mark Struberg <struberg@apache.org>
Committed: Thu Mar 5 19:35:23 2015 +0100

----------------------------------------------------------------------
 .../openejb/server/discovery/MulticastDiscoveryAgentTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/9eebf368/server/openejb-multicast/src/test/java/org/apache/openejb/server/discovery/MulticastDiscoveryAgentTest.java
----------------------------------------------------------------------
diff --git a/server/openejb-multicast/src/test/java/org/apache/openejb/server/discovery/MulticastDiscoveryAgentTest.java
b/server/openejb-multicast/src/test/java/org/apache/openejb/server/discovery/MulticastDiscoveryAgentTest.java
index 7a6be56..ffcbf98 100644
--- a/server/openejb-multicast/src/test/java/org/apache/openejb/server/discovery/MulticastDiscoveryAgentTest.java
+++ b/server/openejb-multicast/src/test/java/org/apache/openejb/server/discovery/MulticastDiscoveryAgentTest.java
@@ -26,6 +26,7 @@ import java.net.URISyntaxException;
 import java.util.HashSet;
 import java.util.Properties;
 import java.util.Set;
+import java.util.logging.Logger;
 
 /**
  * @version $Rev$ $Date$
@@ -36,6 +37,11 @@ public class MulticastDiscoveryAgentTest extends TestCase {
     //public void testNothing(){}
 
     public void test() throws Exception {
+        if ("true".equals(System.getProperty("skipMulticastTests"))) {
+            Logger.getLogger(this.getClass().getName()).warning("Skipping MulticastTest "
+ this.getClass().getName());
+            return;
+        }
+
         final MulticastDiscoveryAgent[] agents = {agent("red"), agent("green"), agent("yellow"),
agent("blue")};
 
         final MulticastSearch multicast = new MulticastSearch();


Mime
View raw message