tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r765278 - in /openejb/trunk/openejb3/examples/simple-webservice/src: main/java/org/superbiz/calculator/CalculatorLocal.java main/java/org/superbiz/calculator/CalculatorWs.java test/java/org/superbiz/calculator/CalculatorTest.java
Date Wed, 15 Apr 2009 17:36:40 GMT
Author: dblevins
Date: Wed Apr 15 17:36:39 2009
New Revision: 765278

URL: http://svn.apache.org/viewvc?rev=765278&view=rev
Log:
Reformatted

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

Modified: openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorLocal.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorLocal.java?rev=765278&r1=765277&r2=765278&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorLocal.java
(original)
+++ openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorLocal.java
Wed Apr 15 17:36:39 2009
@@ -16,9 +16,6 @@
  */
 package org.superbiz.calculator;
 
-import javax.jws.WebService;
-import javax.ejb.Remote;
-
 //END SNIPPET: code
 
 //END SNIPPET: code

Modified: openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorWs.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorWs.java?rev=765278&r1=765277&r2=765278&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorWs.java
(original)
+++ openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorWs.java
Wed Apr 15 17:36:39 2009
@@ -26,11 +26,11 @@
  * annotation.
  */
 //START SNIPPET: code
-@WebService(targetNamespace="http://superbiz.org/wsdl" )
+@WebService(targetNamespace = "http://superbiz.org/wsdl")
 public interface CalculatorWs {
 
-	public int sum(int add1, int add2);
+    public int sum(int add1, int add2);
 
-	public int multiply(int mul1, int mul2);
+    public int multiply(int mul1, int mul2);
 }
 //END SNIPPET: code
\ No newline at end of file

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=765278&r1=765277&r2=765278&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
Wed Apr 15 17:36:39 2009
@@ -33,7 +33,7 @@
         Properties properties = new Properties();
         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
         properties.setProperty("openejb.embedded.remotable", "true");
-        
+
         initialContext = new InitialContext(properties);
     }
     //END SNIPPET: setup    
@@ -49,11 +49,11 @@
         assertNotNull(calcService);
 
         CalculatorWs calc = calcService.getPort(CalculatorWs.class);
-        assertEquals(10, calc.sum(4,6));
-	    assertEquals(12, calc.multiply(3,4));
+        assertEquals(10, calc.sum(4, 6));
+        assertEquals(12, calc.multiply(3, 4));
     }
 
-     public void testCalculatorViaRemoteInterface() throws Exception {
+    public void testCalculatorViaRemoteInterface() throws Exception {
         CalculatorLocal calc = (CalculatorLocal) initialContext.lookup("CalculatorImplLocal");
         assertEquals(10, calc.sum(4, 6));
         assertEquals(12, calc.multiply(3, 4));



Mime
View raw message