You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2008/04/21 22:53:33 UTC

svn commit: r650262 - /openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java

Author: jlaskowski
Date: Mon Apr 21 13:53:29 2008
New Revision: 650262

URL: http://svn.apache.org/viewvc?rev=650262&view=rev
Log:
Changing localhost to 127.0.0.1 just to find out the cause of CalculatorTest failure when building within Continuum

Modified:
    openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java

Modified: openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java?rev=650262&r1=650261&r2=650262&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java (original)
+++ openejb/trunk/openejb3/examples/simple-webservice/src/test/java/org/superbiz/calculator/CalculatorTest.java Mon Apr 21 13:53:29 2008
@@ -26,8 +26,8 @@
 
 public class CalculatorTest extends TestCase {
 
-	//START SNIPPET: setup	
-	private InitialContext initialContext;
+    //START SNIPPET: setup	
+    private InitialContext initialContext;
 
     protected void setUp() throws Exception {
         Properties properties = new Properties();
@@ -45,12 +45,12 @@
      */
     //START SNIPPET: webservice
     public void testCalculatorViaWsInterface() throws Exception {
-        Service calcService = Service.create(new URL("http://localhost:4204/CalculatorImpl?wsdl"), null);
+        Service calcService = Service.create(new URL("http://127.0.0.1:4204/CalculatorImpl?wsdl"), null);
         assertNotNull(calcService);
 
         CalculatorWs calc = calcService.getPort(CalculatorWs.class);
         assertEquals(10, calc.sum(4,6));
-		assertEquals(12, calc.multiply(3,4));
+	assertEquals(12, calc.multiply(3,4));
     }
     //END SNIPPET: webservice