[jboss-remoting-commits] JBoss Remoting SVN: r3487 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Feb 22 17:12:23 EST 2008


Author: ron.sigal at jboss.com
Date: 2008-02-22 17:12:23 -0500 (Fri, 22 Feb 2008)
New Revision: 3487

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/PercentEncodingTestCase.java
Log:
JBREM-865: Skip test if running with jdk 1.4.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/PercentEncodingTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/PercentEncodingTestCase.java	2008-02-22 21:13:40 UTC (rev 3486)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/PercentEncodingTestCase.java	2008-02-22 22:12:23 UTC (rev 3487)
@@ -70,15 +70,22 @@
    public void testPercentEncoding() throws Throwable
    {
       log.info("entering " + getName());
-      
-      String locatorURI = "socket://[fe80::205:9aff:fe3c:7800%7]:7777/";
-      InvokerLocator locator = new InvokerLocator(locatorURI);
-      assertEquals(locatorURI, locator.getLocatorURI());
-      
-      locatorURI = "socket://multihome/?homes=[fe80::205:9aff:fe3c:7800%7]:7777![fe80::214:22ff:feef:68bb%4]:8888";
-      locator = new InvokerLocator(locatorURI);
-      assertEquals(locatorURI, locator.getLocatorURI());
-      
+
+      String version = System.getProperty("java.version");
+      if (version.startsWith("1.4"))
+      {
+         log.info("java version is " + version + ". Skipping test");
+      }
+      else
+      {
+         String locatorURI = "socket://[fe80::205:9aff:fe3c:7800%7]:7777/";
+         InvokerLocator locator = new InvokerLocator(locatorURI);
+         assertEquals(locatorURI, locator.getLocatorURI());
+
+         locatorURI = "socket://multihome/?homes=[fe80::205:9aff:fe3c:7800%7]:7777![fe80::214:22ff:feef:68bb%4]:8888";
+         locator = new InvokerLocator(locatorURI);
+         assertEquals(locatorURI, locator.getLocatorURI());
+      }
       log.info(getName() + " PASSES");
       
    }




More information about the jboss-remoting-commits mailing list