Author: asoldano
Date: 2015-02-13 11:18:51 -0500 (Fri, 13 Feb 2015)
New Revision: 19460
Modified:
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
Get server host property once
Modified:
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
---
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2015-02-13
16:12:58 UTC (rev 19459)
+++
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2015-02-13
16:18:51 UTC (rev 19460)
@@ -50,7 +50,6 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.exporter.ZipExporter;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
/**
* A JBossWS test helper that deals with test deployment/undeployment, etc.
@@ -76,6 +75,7 @@
private static final String testResourcesDir =
System.getProperty(SYSPROP_TEST_RESOURCES_DIRECTORY);
private static final String integrationTarget;
private static final String implInfo;
+ private static final String serverHost =
System.getProperty(SYSPROP_JBOSS_BIND_ADDRESS, "localhost");
private static WeakHashMap<ClassLoader, Hashtable<String, String>>
containerEnvs = new WeakHashMap<ClassLoader, Hashtable<String,String>>();
@@ -150,8 +150,7 @@
*/
public static String getServerHost()
{
- final String host = System.getProperty(SYSPROP_JBOSS_BIND_ADDRESS,
"localhost");
- return toIPv6URLFormat(host);
+ return toIPv6URLFormat(serverHost);
}
public static int getServerPort()
Show replies by date