tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1295365 - /openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java
Date Thu, 01 Mar 2012 01:01:08 GMT
Author: dblevins
Date: Thu Mar  1 01:01:08 2012
New Revision: 1295365

URL: http://svn.apache.org/viewvc?rev=1295365&view=rev
Log:
re-ignore test.  wasn't supposed to be checked in

Modified:
    openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java

Modified: openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java?rev=1295365&r1=1295364&r2=1295365&view=diff
==============================================================================
--- openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java
(original)
+++ openejb/trunk/openejb/itests/failover/src/test/java/org/apache/openejb/itest/failover/FailoverTest.java
Thu Mar  1 01:01:08 2012
@@ -25,6 +25,7 @@ import org.apache.openejb.server.control
 import org.apache.openejb.util.Join;
 import org.junit.Assert;
 import org.junit.Test;
+import org.junit.Ignore;
 
 import javax.ejb.EJBException;
 import javax.naming.Context;
@@ -48,35 +49,9 @@ public class FailoverTest {
 
     @Test
     public void testNothing() throws Exception {
-        ServerSocketChannel serverChannel = ServerSocketChannel.open();
-        ServerSocket serverSocket = serverChannel.socket();
-        InetSocketAddress address = new InetSocketAddress("0.0.0.0", 33333);
-        serverSocket.bind(address);
-
-        final SocketAddress localSocketAddress = serverSocket.getLocalSocketAddress();
-        System.out.println("localSocketAddress = " + localSocketAddress);
-        System.out.println(serverSocket.getInetAddress());
-        final InetAddress[] locahosts = InetAddress.getAllByName("localhost");
-        for (InetAddress locahost : locahosts) {
-            System.out.println(locahost);
-        }
-        final Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
-        while (interfaces.hasMoreElements()) {
-            NetworkInterface in = interfaces.nextElement();
-            if (in.isLoopback()) continue;
-            if (in.isVirtual()) continue;
-            if (in.isPointToPoint()) continue;
-            if (!in.isUp()) continue;
-            System.out.println(in);
-            final Enumeration<InetAddress> addresses = in.getInetAddresses();
-            while (addresses.hasMoreElements()) {
-                InetAddress inetAddress = addresses.nextElement();
-                System.out.println(inetAddress);
-            }
-        }
     }
 
-    @Test
+    @Test @Ignore
     public void testFailover() throws Exception {
 
         final File zip = new File("/Users/dblevins/.m2/repository/org/apache/openejb/openejb-standalone/4.0.0-beta-3-SNAPSHOT/openejb-standalone-4.0.0-beta-3-SNAPSHOT.zip");



Mime
View raw message