Author: ron.sigal(a)jboss.com
Date: 2008-03-27 05:02:43 -0400 (Thu, 27 Mar 2008)
New Revision: 3802
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/locator/InvokerLocatorTestCase.java
Log:
JBREM-936: Fixed testNullHost().
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/locator/InvokerLocatorTestCase.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/locator/InvokerLocatorTestCase.java 2008-03-27
07:33:15 UTC (rev 3801)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/locator/InvokerLocatorTestCase.java 2008-03-27
09:02:43 UTC (rev 3802)
@@ -476,17 +476,16 @@
/**
* For JBREM-936.
*/
- public void testNullHost() throws Exception
+ public void testNullHost() throws Exception
{
InvokerLocator locator = new InvokerLocator("socket://:7777");
-
- String bindByHost = System.getProperty(InvokerLocator.BIND_BY_HOST,
"True");
boolean byHost = true;
String host = null;
try
- {
- byHost = Boolean.getBoolean(bindByHost);
+ {
+ String s = System.getProperty(InvokerLocator.BIND_BY_HOST, "True");
+ byHost = Boolean.valueOf(s).booleanValue();
}
catch(Exception e)
{
Show replies by date