cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r630385 [3/5] - in /incubator/cxf/trunk: maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ maven-plugins/java2ws-plugin/ maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ systests/src/test/java/or...
Date Sat, 23 Feb 2008 03:27:30 GMT
Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java Fri Feb 22 19:27:26 2008
@@ -1,102 +1,102 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.type_substitution;
-
-import java.net.URL;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-import org.apache.type_substitution.Car;
-import org.apache.type_substitution.CarDealer;
-import org.apache.type_substitution.CarDealerService;
-import org.apache.type_substitution.Porsche;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class TypeSubClientServerTest extends AbstractBusClientServerTestBase {    
-
-    private final QName serviceName = new QName("http://apache.org/type_substitution/",
-                                                "CarDealerService");
-    @BeforeClass
-    public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly", launchServer(Server.class));
-    }
-
-    @Test
-    public void testBasicConnection() throws Exception {
-        CarDealer dealer = getCardealer();
-
-        /**
-         * CarDealer.getSedans() returns List<Car>
-         * Car is abstract class. The code below shows
-         * that the client is expecting a Porsche which extends
-         * Car.
-         *
-         * It shows a doc wrapper style operation.
-        */
-
-        List<Car> cars = dealer.getSedans("porsche");
-        assertEquals(2, cars.size());
-        Porsche car = (Porsche) cars.get(0);
-        assertNotNull(car);
-        if (car != null && "Porsche".equals(car.getMake()) 
-            && "Boxster".equals(car.getModel()) 
-            && "1998".equals(car.getYear()) 
-            && "white".equals(car.getColor())) {
-            // get the right car
-        } else {
-            fail("Get the wrong car!");
-        }
-        
-        /**
-         * CarDealer.tradeIn(Car) takes an abstract class Car and returns the same.
-         * We will send a sub-class instead and expect to get the same.
-         *
-         */
-        Porsche oldCar = new Porsche();
-        oldCar.setMake("Porsche");
-        oldCar.setColor("white");
-        oldCar.setModel("GT2000");
-        oldCar.setYear("2000");
-        Porsche newCar = (Porsche)dealer.tradeIn(oldCar);
-        assertNotNull(newCar);
-
-        if (newCar != null && "Porsche".equals(newCar.getMake()) 
-            && "911GT3".equals(newCar.getModel()) 
-            && "2007".equals(newCar.getYear()) 
-            && "black".equals(newCar.getColor())) {
-            // get the right car
-        } else {
-            fail("Get the wrong car!");
-        }
-    }
-
-    private CarDealer getCardealer() {
-        URL wsdl = getClass().getResource("/wsdl/cardealer.wsdl");
-        assertNotNull("WSDL is null", wsdl);
-
-        CarDealerService service = new CarDealerService(wsdl, serviceName);
-        assertNotNull("Service is null ", service);
-        
-        return service.getCarDealerPort();
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.type_substitution;
+
+import java.net.URL;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.type_substitution.Car;
+import org.apache.type_substitution.CarDealer;
+import org.apache.type_substitution.CarDealerService;
+import org.apache.type_substitution.Porsche;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class TypeSubClientServerTest extends AbstractBusClientServerTestBase {    
+
+    private final QName serviceName = new QName("http://apache.org/type_substitution/",
+                                                "CarDealerService");
+    @BeforeClass
+    public static void startServers() throws Exception {
+        assertTrue("server did not launch correctly", launchServer(Server.class));
+    }
+
+    @Test
+    public void testBasicConnection() throws Exception {
+        CarDealer dealer = getCardealer();
+
+        /**
+         * CarDealer.getSedans() returns List<Car>
+         * Car is abstract class. The code below shows
+         * that the client is expecting a Porsche which extends
+         * Car.
+         *
+         * It shows a doc wrapper style operation.
+        */
+
+        List<Car> cars = dealer.getSedans("porsche");
+        assertEquals(2, cars.size());
+        Porsche car = (Porsche) cars.get(0);
+        assertNotNull(car);
+        if (car != null && "Porsche".equals(car.getMake()) 
+            && "Boxster".equals(car.getModel()) 
+            && "1998".equals(car.getYear()) 
+            && "white".equals(car.getColor())) {
+            // get the right car
+        } else {
+            fail("Get the wrong car!");
+        }
+        
+        /**
+         * CarDealer.tradeIn(Car) takes an abstract class Car and returns the same.
+         * We will send a sub-class instead and expect to get the same.
+         *
+         */
+        Porsche oldCar = new Porsche();
+        oldCar.setMake("Porsche");
+        oldCar.setColor("white");
+        oldCar.setModel("GT2000");
+        oldCar.setYear("2000");
+        Porsche newCar = (Porsche)dealer.tradeIn(oldCar);
+        assertNotNull(newCar);
+
+        if (newCar != null && "Porsche".equals(newCar.getMake()) 
+            && "911GT3".equals(newCar.getModel()) 
+            && "2007".equals(newCar.getYear()) 
+            && "black".equals(newCar.getColor())) {
+            // get the right car
+        } else {
+            fail("Get the wrong car!");
+        }
+    }
+
+    private CarDealer getCardealer() {
+        URL wsdl = getClass().getResource("/wsdl/cardealer.wsdl");
+        assertNotNull("WSDL is null", wsdl);
+
+        CarDealerService service = new CarDealerService(wsdl, serviceName);
+        assertNotNull("Service is null ", service);
+        
+        return service.getCarDealerPort();
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_substitution/TypeSubClientServerTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java Fri Feb 22 19:27:26 2008
@@ -1,48 +1,48 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws;
-
-import java.io.ByteArrayOutputStream;
-import java.io.PrintWriter;
-
-import org.apache.cxf.interceptor.LoggingInInterceptor;
-import org.apache.cxf.interceptor.LoggingOutInterceptor;
-import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-
-public class AbstractWSATestBase extends AbstractBusClientServerTestBase {
-
-    protected ByteArrayOutputStream setupInLogging() {
-        ByteArrayOutputStream bos = new ByteArrayOutputStream();
-        PrintWriter writer = new PrintWriter(bos, true);
-        LoggingInInterceptor in = new LoggingInInterceptor(writer);
-        this.bus.getInInterceptors().add(in);
-        return bos;
-    }
-
-    protected ByteArrayOutputStream setupOutLogging() {
-        ByteArrayOutputStream bos = new ByteArrayOutputStream();
-        PrintWriter writer = new PrintWriter(bos, true);
-
-        LoggingOutInterceptor out = new LoggingOutInterceptor(writer);
-        this.bus.getOutInterceptors().add(out);
-
-        return bos;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintWriter;
+
+import org.apache.cxf.interceptor.LoggingInInterceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+
+public class AbstractWSATestBase extends AbstractBusClientServerTestBase {
+
+    protected ByteArrayOutputStream setupInLogging() {
+        ByteArrayOutputStream bos = new ByteArrayOutputStream();
+        PrintWriter writer = new PrintWriter(bos, true);
+        LoggingInInterceptor in = new LoggingInInterceptor(writer);
+        this.bus.getInInterceptors().add(in);
+        return bos;
+    }
+
+    protected ByteArrayOutputStream setupOutLogging() {
+        ByteArrayOutputStream bos = new ByteArrayOutputStream();
+        PrintWriter writer = new PrintWriter(bos, true);
+
+        LoggingOutInterceptor out = new LoggingOutInterceptor(writer);
+        this.bus.getOutInterceptors().add(out);
+
+        return bos;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/AbstractWSATestBase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java Fri Feb 22 19:27:26 2008
@@ -1,58 +1,58 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_disable;
-
-import javax.jws.WebService;
-import javax.xml.ws.soap.Addressing;
-
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
-
-// Jax-WS 2.1 WS-Addressing FromWsdl
-
-@Addressing(enabled = false)
-@WebService(serviceName = "AddNumbersService",
-            targetNamespace = "http://apache.org/cxf/systest/ws/addr_feature/")
-public class AddNumberImpl implements AddNumbersPortType {
-    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-    public int addNumbers2(int number1, int number2) {
-        return number1 + number2;
-    }
-
-    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-    int execute(int number1, int number2) throws AddNumbersFault_Exception {
-        if (number1 < 0 || number2 < 0) {
-            AddNumbersFault fb = new AddNumbersFault();
-            fb.setDetail("Negative numbers cant be added!");
-            fb.setMessage("Numbers: " + number1 + ", " + number2);
-
-            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
-        }
-
-        return number1 + number2;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_disable;
+
+import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
+
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
+
+// Jax-WS 2.1 WS-Addressing FromWsdl
+
+@Addressing(enabled = false)
+@WebService(serviceName = "AddNumbersService",
+            targetNamespace = "http://apache.org/cxf/systest/ws/addr_feature/")
+public class AddNumberImpl implements AddNumbersPortType {
+    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+    public int addNumbers2(int number1, int number2) {
+        return number1 + number2;
+    }
+
+    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+    int execute(int number1, int number2) throws AddNumbersFault_Exception {
+        if (number1 < 0 || number2 < 0) {
+            AddNumbersFault fb = new AddNumbersFault();
+            fb.setDetail("Negative numbers cant be added!");
+            fb.setMessage("Numbers: " + number1 + ", " + number2);
+
+            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
+        }
+
+        return number1 + number2;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java Fri Feb 22 19:27:26 2008
@@ -1,60 +1,60 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_disable;
-
-import org.apache.cxf.BusFactory;
-import org.apache.cxf.jaxws.EndpointImpl;
-import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-
-public class Server extends AbstractBusTestServerBase {
-
-    protected void run() {
-        Object implementor = new AddNumberImpl();
-        String address = "http://localhost:9095/jaxws/add";
-        
-        EndpointImpl ep = new EndpointImpl(BusFactory.getThreadDefaultBus(), 
-                                           implementor, 
-                                           null, 
-                                           getWsdl());
-        ep.publish(address);
-    }
-    
-    private String getWsdl() {
-        try {
-            java.net.URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
-            return wsdl.toString();
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-        return null;
-    }    
-
-    public static void main(String[] args) {
-        try {
-            Server s = new Server();
-            s.start();
-        } catch (Exception ex) {
-            ex.printStackTrace();
-            System.exit(-1);
-        } finally {
-            System.out.println("done!");
-        }
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_disable;
+
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+
+public class Server extends AbstractBusTestServerBase {
+
+    protected void run() {
+        Object implementor = new AddNumberImpl();
+        String address = "http://localhost:9095/jaxws/add";
+        
+        EndpointImpl ep = new EndpointImpl(BusFactory.getThreadDefaultBus(), 
+                                           implementor, 
+                                           null, 
+                                           getWsdl());
+        ep.publish(address);
+    }
+    
+    private String getWsdl() {
+        try {
+            java.net.URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
+            return wsdl.toString();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return null;
+    }    
+
+    public static void main(String[] args) {
+        try {
+            Server s = new Server();
+            s.start();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
+        }
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java Fri Feb 22 19:27:26 2008
@@ -1,97 +1,97 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_disable;
-
-import java.io.ByteArrayOutputStream;
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.soap.AddressingFeature;
-
-import org.apache.cxf.systest.ws.AbstractWSATestBase;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersService;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class WSADisableTest extends AbstractWSATestBase {
-
-    private final QName serviceName = new QName("http://apache.org/cxf/systest/ws/addr_feature/",
-                                                "AddNumbersService");
-
-    @Before
-    public void setUp() throws Exception {
-        createBus();
-    }
-
-    @BeforeClass
-    public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly", launchServer(Server.class, true));
-    }
-
-    @Test
-    public void testDisableServerSide() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumbersPortType port = getService().getAddNumbersPort();
-
-        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
-                                                        "http://localhost:9095/jaxws/add");
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String base = "http://apache.org/cxf/systest/ws/addr_feature/AddNumbersPortType/";
-        String expectedOut = base + "addNumbersRequest</Action>";
-        String expectedIn = "http://www.w3.org/2005/08/addressing";
-        
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        assertTrue(input.toString().indexOf(expectedIn) == -1);
-    }
-
-    @Test
-    public void testDisableAll() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumbersPortType port = getService().getAddNumbersPort(new AddressingFeature(false));
-
-        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
-                                                        "http://localhost:9095/jaxws/add");
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String expectedOut = "http://www.w3.org/2005/08/addressing";
-        String expectedIn = "http://www.w3.org/2005/08/addressing";
-        
-        assertTrue(output.toString().indexOf(expectedOut) == -1);
-        assertTrue(input.toString().indexOf(expectedIn) == -1);
-    }
-
-    private AddNumbersService getService() {
-        URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
-        assertNotNull("WSDL is null", wsdl);
-
-        AddNumbersService service = new AddNumbersService(wsdl, serviceName);
-        assertNotNull("Service is null ", service);
-        return service;
-    }
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_disable;
+
+import java.io.ByteArrayOutputStream;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.AddressingFeature;
+
+import org.apache.cxf.systest.ws.AbstractWSATestBase;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersService;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class WSADisableTest extends AbstractWSATestBase {
+
+    private final QName serviceName = new QName("http://apache.org/cxf/systest/ws/addr_feature/",
+                                                "AddNumbersService");
+
+    @Before
+    public void setUp() throws Exception {
+        createBus();
+    }
+
+    @BeforeClass
+    public static void startServers() throws Exception {
+        assertTrue("server did not launch correctly", launchServer(Server.class, true));
+    }
+
+    @Test
+    public void testDisableServerSide() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumbersPortType port = getService().getAddNumbersPort();
+
+        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
+                                                        "http://localhost:9095/jaxws/add");
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String base = "http://apache.org/cxf/systest/ws/addr_feature/AddNumbersPortType/";
+        String expectedOut = base + "addNumbersRequest</Action>";
+        String expectedIn = "http://www.w3.org/2005/08/addressing";
+        
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        assertTrue(input.toString().indexOf(expectedIn) == -1);
+    }
+
+    @Test
+    public void testDisableAll() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumbersPortType port = getService().getAddNumbersPort(new AddressingFeature(false));
+
+        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
+                                                        "http://localhost:9095/jaxws/add");
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String expectedOut = "http://www.w3.org/2005/08/addressing";
+        String expectedIn = "http://www.w3.org/2005/08/addressing";
+        
+        assertTrue(output.toString().indexOf(expectedOut) == -1);
+        assertTrue(input.toString().indexOf(expectedIn) == -1);
+    }
+
+    private AddNumbersService getService() {
+        URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
+        assertNotNull("WSDL is null", wsdl);
+
+        AddNumbersService service = new AddNumbersService(wsdl, serviceName);
+        assertNotNull("Service is null ", service);
+        return service;
+    }
 }

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_disable/WSADisableTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java Fri Feb 22 19:27:26 2008
@@ -1,54 +1,54 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_feature;
-
-import javax.jws.WebService;
-import javax.xml.ws.soap.Addressing;
-
-// Jax-WS 2.1 WS-Addressing FromJava
-
-@Addressing
-@WebService
-public class AddNumberImpl implements AddNumbersPortType {
-    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-    public int addNumbers2(int number1, int number2) {
-        return number1 + number2;
-    }
-
-    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-
-    int execute(int number1, int number2) throws AddNumbersFault_Exception {
-        if (number1 < 0 || number2 < 0) {
-            AddNumbersFault fb = new AddNumbersFault();
-            fb.setDetail("Negative numbers cant be added!");
-            fb.setMessage("Numbers: " + number1 + ", " + number2);
-
-            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
-        }
-
-        return number1 + number2;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_feature;
+
+import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
+
+// Jax-WS 2.1 WS-Addressing FromJava
+
+@Addressing
+@WebService
+public class AddNumberImpl implements AddNumbersPortType {
+    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+    public int addNumbers2(int number1, int number2) {
+        return number1 + number2;
+    }
+
+    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+
+    int execute(int number1, int number2) throws AddNumbersFault_Exception {
+        if (number1 < 0 || number2 < 0) {
+            AddNumbersFault fb = new AddNumbersFault();
+            fb.setDetail("Negative numbers cant be added!");
+            fb.setMessage("Numbers: " + number1 + ", " + number2);
+
+            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
+        }
+
+        return number1 + number2;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java Fri Feb 22 19:27:26 2008
@@ -1,33 +1,33 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_feature;
-
-public class AddNumbersException extends Exception {
-    String detail;
-
-    public AddNumbersException(String message, String detail) {
-        super(message);
-        this.detail = detail;
-    }
-
-    public String getDetail() {
-        return detail;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_feature;
+
+public class AddNumbersException extends Exception {
+    String detail;
+
+    public AddNumbersException(String message, String detail) {
+        super(message);
+        this.detail = detail;
+    }
+
+    public String getDetail() {
+        return detail;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/AddNumbersException.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java Fri Feb 22 19:27:26 2008
@@ -1,51 +1,51 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_feature;
-
-import javax.xml.ws.Endpoint;
-
-import org.apache.cxf.jaxws.EndpointImpl;
-import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-import org.apache.cxf.ws.addressing.WSAddressingFeature;
-
-public class Server extends AbstractBusTestServerBase {
-
-    protected void run()  {    
-        Object implementor = new AddNumberImpl();
-        String address = "http://localhost:9091/jaxws/add";
-        //Endpoint.publish(address, implementor);
-
-        EndpointImpl ep = (EndpointImpl) Endpoint.create(implementor);
-        ep.getFeatures().add(new WSAddressingFeature());
-        ep.publish(address);
-    }
-
-    public static void main(String[] args) {
-        try {
-            Server s = new Server();
-            s.start();
-        } catch (Exception ex) {
-            ex.printStackTrace();
-            System.exit(-1);
-        } finally {
-            System.out.println("done!");
-        }
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_feature;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.ws.addressing.WSAddressingFeature;
+
+public class Server extends AbstractBusTestServerBase {
+
+    protected void run()  {    
+        Object implementor = new AddNumberImpl();
+        String address = "http://localhost:9091/jaxws/add";
+        //Endpoint.publish(address, implementor);
+
+        EndpointImpl ep = (EndpointImpl) Endpoint.create(implementor);
+        ep.getFeatures().add(new WSAddressingFeature());
+        ep.publish(address);
+    }
+
+    public static void main(String[] args) {
+        try {
+            Server s = new Server();
+            s.start();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
+        }
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java Fri Feb 22 19:27:26 2008
@@ -1,112 +1,112 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_feature;
-
-import java.io.ByteArrayOutputStream;
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.ws.soap.AddressingFeature;
-
-import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
-import org.apache.cxf.systest.ws.AbstractWSATestBase;
-import org.apache.cxf.ws.addressing.WSAddressingFeature;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class WSAClientServerTest extends AbstractWSATestBase {
-
-    private final QName serviceName = new QName("http://apache.org/cxf/systest/ws/addr_feature/",
-                                                "AddNumbersService");
-
-    @Before
-    public void setUp() throws Exception {
-        createBus();
-    }
-
-    @BeforeClass
-    public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly", launchServer(Server.class));
-    }
-
-    @Test
-    public void testNoWsaFeature() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
-        factory.setServiceClass(AddNumbersPortType.class);
-        factory.setAddress("http://localhost:9091/jaxws/add");
-        AddNumbersPortType port = (AddNumbersPortType) factory.create();
-
-        assertEquals(3, port.addNumbers(1, 2));
-        
-        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
-        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
-
-        assertTrue(output.toString().indexOf(expectedOut) == -1);
-        assertTrue(input.toString().indexOf(expectedIn) == -1);
-    }
-
-    @Test
-    public void testCxfWsaFeature() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
-        factory.setServiceClass(AddNumbersPortType.class);
-        factory.setAddress("http://localhost:9091/jaxws/add");
-        factory.getFeatures().add(new WSAddressingFeature());
-        AddNumbersPortType port = (AddNumbersPortType) factory.create();
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
-        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
-
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        assertTrue(input.toString().indexOf(expectedIn) != -1);
-    }
-
-    @Test
-    public void testJaxwsWsaFeature() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumbersPortType port = getPort();
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
-        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
-
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        assertTrue(input.toString().indexOf(expectedIn) != -1);
-    }
-
-    private AddNumbersPortType getPort() {
-        URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
-        assertNotNull("WSDL is null", wsdl);
-
-        AddNumbersService service = new AddNumbersService(wsdl, serviceName);
-        assertNotNull("Service is null ", service);
-        return service.getAddNumbersPort(new AddressingFeature());
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_feature;
+
+import java.io.ByteArrayOutputStream;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.soap.AddressingFeature;
+
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.systest.ws.AbstractWSATestBase;
+import org.apache.cxf.ws.addressing.WSAddressingFeature;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class WSAClientServerTest extends AbstractWSATestBase {
+
+    private final QName serviceName = new QName("http://apache.org/cxf/systest/ws/addr_feature/",
+                                                "AddNumbersService");
+
+    @Before
+    public void setUp() throws Exception {
+        createBus();
+    }
+
+    @BeforeClass
+    public static void startServers() throws Exception {
+        assertTrue("server did not launch correctly", launchServer(Server.class));
+    }
+
+    @Test
+    public void testNoWsaFeature() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+        factory.setServiceClass(AddNumbersPortType.class);
+        factory.setAddress("http://localhost:9091/jaxws/add");
+        AddNumbersPortType port = (AddNumbersPortType) factory.create();
+
+        assertEquals(3, port.addNumbers(1, 2));
+        
+        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
+        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
+
+        assertTrue(output.toString().indexOf(expectedOut) == -1);
+        assertTrue(input.toString().indexOf(expectedIn) == -1);
+    }
+
+    @Test
+    public void testCxfWsaFeature() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+        factory.setServiceClass(AddNumbersPortType.class);
+        factory.setAddress("http://localhost:9091/jaxws/add");
+        factory.getFeatures().add(new WSAddressingFeature());
+        AddNumbersPortType port = (AddNumbersPortType) factory.create();
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
+        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
+
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        assertTrue(input.toString().indexOf(expectedIn) != -1);
+    }
+
+    @Test
+    public void testJaxwsWsaFeature() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumbersPortType port = getPort();
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>";
+        String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">";
+
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        assertTrue(input.toString().indexOf(expectedIn) != -1);
+    }
+
+    private AddNumbersPortType getPort() {
+        URL wsdl = getClass().getResource("/wsdl/add_numbers.wsdl");
+        assertNotNull("WSDL is null", wsdl);
+
+        AddNumbersService service = new AddNumbersService(wsdl, serviceName);
+        assertNotNull("Service is null ", service);
+        return service.getAddNumbersPort(new AddressingFeature());
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAClientServerTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java Fri Feb 22 19:27:26 2008
@@ -1,153 +1,153 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_fromjava;
-
-import java.io.ByteArrayOutputStream;
-import java.net.URL;
-import java.util.Map;
-import javax.xml.ws.BindingProvider;
-
-import org.apache.cxf.systest.ws.AbstractWSATestBase;
-import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumberImpl;
-import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumberImplService;
-import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumbersException_Exception;
-import org.apache.cxf.systest.ws.addr_fromjava.server.Server;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class WSAFromJavaTest extends AbstractWSATestBase {
-
-    @Before
-    public void setUp() throws Exception {
-        createBus();
-    }
-
-    @BeforeClass
-    public static void startServers() throws Exception {
-        assertTrue("server did not launch correctly", launchServer(Server.class));
-    }
-
-    @Test
-    public void testAddNumbers() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumberImpl port = getPort();
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String expectedOut = "http://cxf.apache.org/input";
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        
-        String expectedIn = "http://cxf.apache.org/output";
-        assertTrue(input.toString().indexOf(expectedIn) != -1);
-    }
-
-    @Test
-    public void testAddNumbersFault() {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumberImpl port = getPort();
-
-        try {
-            port.addNumbers(-1, 2);
-        } catch (AddNumbersException_Exception e) {
-            assert true;
-        } catch (Exception e) {
-            e.printStackTrace();
-            assert false;
-        }
-
-        assertTrue(output.toString().indexOf("http://cxf.apache.org/input") != -1);
-        String expectedFault = 
-            "http://server.addr_fromjava.ws.systest.cxf.apache.org/AddNumberImpl/Fault/AddNumbersException";
-        assertTrue(input.toString().indexOf(expectedFault) != -1);
-    }
-
-    @Test
-    public void testAddNumbers2() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumberImpl port = getPort();
-
-        assertEquals(3, port.addNumbers2(1, 2));
-        
-        String base = "http://server.addr_fromjava.ws.systest.cxf.apache.org/AddNumberImpl";
-        String expectedOut = base + "/addNumbers2";
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        
-        String expectedIn = base + "/addNumbers2Response";
-        assertTrue(input.toString().indexOf(expectedIn) != -1);
-    }
-
-    @Test
-    public void testAddNumbers3Fault() {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumberImpl port = getPort();
-
-        try {
-            port.addNumbers3(-1, 2);
-        } catch (AddNumbersException_Exception e) {
-            assert true;
-        } catch (Exception e) {
-            e.printStackTrace();
-            assert false;
-        }
-
-        assertTrue(output.toString().indexOf("http://cxf.apache.org/input") != -1);
-        assertTrue(input.toString().indexOf("http://cxf.apache.org/fault3") != -1);
-    }
-
-    @Test
-    public void testAddNumbersJaxWsContext() throws Exception {
-        ByteArrayOutputStream input = setupInLogging();
-        ByteArrayOutputStream output = setupOutLogging();
-
-        AddNumberImpl port = getPort();
-
-        BindingProvider bp = (BindingProvider)port;
-        java.util.Map<String, Object> requestContext = bp.getRequestContext();
-        requestContext.put(BindingProvider.SOAPACTION_URI_PROPERTY, "cxf");
-
-        assertEquals(3, port.addNumbers(1, 2));
-
-        String expectedOut = "cxf</Action>";
-        assertTrue(output.toString().indexOf(expectedOut) != -1);
-        assertTrue(output.toString().indexOf("SOAPAction=[\"cxf\"]") != -1);
-        
-        String expectedIn = "http://cxf.apache.org/output";
-        assertTrue(input.toString().indexOf(expectedIn) != -1);
-    }
-
-    private AddNumberImpl getPort() {
-        URL wsdl = getClass().getResource("/wsdl/add_numbers-fromjava.wsdl");
-        assertNotNull("WSDL is null", wsdl);
-
-        AddNumberImplService service = new AddNumberImplService(wsdl);
-        assertNotNull("Service is null ", service);
-
-        return service.getAddNumberImplPort();
-    }
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_fromjava;
+
+import java.io.ByteArrayOutputStream;
+import java.net.URL;
+import java.util.Map;
+import javax.xml.ws.BindingProvider;
+
+import org.apache.cxf.systest.ws.AbstractWSATestBase;
+import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumberImpl;
+import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumberImplService;
+import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumbersException_Exception;
+import org.apache.cxf.systest.ws.addr_fromjava.server.Server;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class WSAFromJavaTest extends AbstractWSATestBase {
+
+    @Before
+    public void setUp() throws Exception {
+        createBus();
+    }
+
+    @BeforeClass
+    public static void startServers() throws Exception {
+        assertTrue("server did not launch correctly", launchServer(Server.class));
+    }
+
+    @Test
+    public void testAddNumbers() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumberImpl port = getPort();
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String expectedOut = "http://cxf.apache.org/input";
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        
+        String expectedIn = "http://cxf.apache.org/output";
+        assertTrue(input.toString().indexOf(expectedIn) != -1);
+    }
+
+    @Test
+    public void testAddNumbersFault() {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumberImpl port = getPort();
+
+        try {
+            port.addNumbers(-1, 2);
+        } catch (AddNumbersException_Exception e) {
+            assert true;
+        } catch (Exception e) {
+            e.printStackTrace();
+            assert false;
+        }
+
+        assertTrue(output.toString().indexOf("http://cxf.apache.org/input") != -1);
+        String expectedFault = 
+            "http://server.addr_fromjava.ws.systest.cxf.apache.org/AddNumberImpl/Fault/AddNumbersException";
+        assertTrue(input.toString().indexOf(expectedFault) != -1);
+    }
+
+    @Test
+    public void testAddNumbers2() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumberImpl port = getPort();
+
+        assertEquals(3, port.addNumbers2(1, 2));
+        
+        String base = "http://server.addr_fromjava.ws.systest.cxf.apache.org/AddNumberImpl";
+        String expectedOut = base + "/addNumbers2";
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        
+        String expectedIn = base + "/addNumbers2Response";
+        assertTrue(input.toString().indexOf(expectedIn) != -1);
+    }
+
+    @Test
+    public void testAddNumbers3Fault() {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumberImpl port = getPort();
+
+        try {
+            port.addNumbers3(-1, 2);
+        } catch (AddNumbersException_Exception e) {
+            assert true;
+        } catch (Exception e) {
+            e.printStackTrace();
+            assert false;
+        }
+
+        assertTrue(output.toString().indexOf("http://cxf.apache.org/input") != -1);
+        assertTrue(input.toString().indexOf("http://cxf.apache.org/fault3") != -1);
+    }
+
+    @Test
+    public void testAddNumbersJaxWsContext() throws Exception {
+        ByteArrayOutputStream input = setupInLogging();
+        ByteArrayOutputStream output = setupOutLogging();
+
+        AddNumberImpl port = getPort();
+
+        BindingProvider bp = (BindingProvider)port;
+        java.util.Map<String, Object> requestContext = bp.getRequestContext();
+        requestContext.put(BindingProvider.SOAPACTION_URI_PROPERTY, "cxf");
+
+        assertEquals(3, port.addNumbers(1, 2));
+
+        String expectedOut = "cxf</Action>";
+        assertTrue(output.toString().indexOf(expectedOut) != -1);
+        assertTrue(output.toString().indexOf("SOAPAction=[\"cxf\"]") != -1);
+        
+        String expectedIn = "http://cxf.apache.org/output";
+        assertTrue(input.toString().indexOf(expectedIn) != -1);
+    }
+
+    private AddNumberImpl getPort() {
+        URL wsdl = getClass().getResource("/wsdl/add_numbers-fromjava.wsdl");
+        assertNotNull("WSDL is null", wsdl);
+
+        AddNumberImplService service = new AddNumberImplService(wsdl);
+        assertNotNull("Service is null ", service);
+
+        return service.getAddNumberImplPort();
+    }
 }

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java Fri Feb 22 19:27:26 2008
@@ -1,57 +1,57 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_fromjava.server;
-
-import javax.jws.WebService;
-import javax.xml.ws.Action;
-import javax.xml.ws.FaultAction;
-import javax.xml.ws.soap.Addressing;
-
-// Jax-WS 2.1 WS-Addressing FromJava
-
-@Addressing
-@WebService
-public class AddNumberImpl {
-    @Action(
-            input = "http://cxf.apache.org/input",
-            output = "http://cxf.apache.org/output")
-    public int addNumbers(int number1, int number2) throws AddNumbersException {
-        return execute(number1, number2);
-    }
-
-    public int addNumbers2(int number1, int number2) {
-        return number1 + number2;
-    }
-
-    @Action(input = "http://cxf.apache.org/input3", output = "http://cxf.apache.org/output3",
-            fault = {@FaultAction(className = AddNumbersException.class, 
-                                  value = "http://cxf.apache.org/fault3") })
-    public int addNumbers3(int number1, int number2) throws AddNumbersException {
-        return execute(number1, number2);
-    }
-
-    int execute(int number1, int number2) throws AddNumbersException {
-        if (number1 < 0 || number2 < 0) {
-            throw new AddNumbersException("Negative numbers can't be added!",
-                                          "Numbers: " + number1 + ", " + number2);
-        }
-        return number1 + number2;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_fromjava.server;
+
+import javax.jws.WebService;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.soap.Addressing;
+
+// Jax-WS 2.1 WS-Addressing FromJava
+
+@Addressing
+@WebService
+public class AddNumberImpl {
+    @Action(
+            input = "http://cxf.apache.org/input",
+            output = "http://cxf.apache.org/output")
+    public int addNumbers(int number1, int number2) throws AddNumbersException {
+        return execute(number1, number2);
+    }
+
+    public int addNumbers2(int number1, int number2) {
+        return number1 + number2;
+    }
+
+    @Action(input = "http://cxf.apache.org/input3", output = "http://cxf.apache.org/output3",
+            fault = {@FaultAction(className = AddNumbersException.class, 
+                                  value = "http://cxf.apache.org/fault3") })
+    public int addNumbers3(int number1, int number2) throws AddNumbersException {
+        return execute(number1, number2);
+    }
+
+    int execute(int number1, int number2) throws AddNumbersException {
+        if (number1 < 0 || number2 < 0) {
+            throw new AddNumbersException("Negative numbers can't be added!",
+                                          "Numbers: " + number1 + ", " + number2);
+        }
+        return number1 + number2;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java Fri Feb 22 19:27:26 2008
@@ -1,33 +1,33 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_fromjava.server;
-
-public class AddNumbersException extends Exception {
-    String detail;
-
-    public AddNumbersException(String message, String detail) {
-        super(message);
-        this.detail = detail;
-    }
-
-    public String getDetail() {
-        return detail;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_fromjava.server;
+
+public class AddNumbersException extends Exception {
+    String detail;
+
+    public AddNumbersException(String message, String detail) {
+        super(message);
+        this.detail = detail;
+    }
+
+    public String getDetail() {
+        return detail;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/AddNumbersException.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java Fri Feb 22 19:27:26 2008
@@ -1,49 +1,49 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_fromjava.server;
-
-import org.apache.cxf.jaxws.EndpointImpl;
-import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-import org.apache.cxf.ws.addressing.WSAddressingFeature;
-
-public class Server extends AbstractBusTestServerBase {
-
-    protected void run() {
-        Object implementor = new AddNumberImpl();
-        String address = "http://localhost:9093/AddNumberImplPort";
-        
-        EndpointImpl ep = new EndpointImpl(implementor);
-
-        ep.getFeatures().add(new WSAddressingFeature());
-        ep.publish(address);
-    }
-
-    public static void main(String[] args) {
-        try {
-            Server s = new Server();
-            s.start();
-        } catch (Exception ex) {
-            ex.printStackTrace();
-            System.exit(-1);
-        } finally {
-            System.out.println("done!");
-        }
-    }
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_fromjava.server;
+
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.ws.addressing.WSAddressingFeature;
+
+public class Server extends AbstractBusTestServerBase {
+
+    protected void run() {
+        Object implementor = new AddNumberImpl();
+        String address = "http://localhost:9093/AddNumberImplPort";
+        
+        EndpointImpl ep = new EndpointImpl(implementor);
+
+        ep.getFeatures().add(new WSAddressingFeature());
+        ep.publish(address);
+    }
+
+    public static void main(String[] args) {
+        try {
+            Server s = new Server();
+            s.start();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
+        }
+    }
 }

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/server/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java?rev=630385&r1=630384&r2=630385&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java Fri Feb 22 19:27:26 2008
@@ -1,56 +1,56 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.ws.addr_fromwsdl;
-
-import javax.jws.WebService;
-
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception;
-import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
-
-// Jax-WS 2.1 WS-Addressing FromWsdl
-
-@WebService(serviceName = "AddNumbersService",
-            targetNamespace = "http://apache.org/cxf/systest/ws/addr_feature/")
-public class AddNumberImpl implements AddNumbersPortType {
-    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-    public int addNumbers2(int number1, int number2) {
-        return number1 + number2;
-    }
-
-    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
-        return execute(number1, number2);
-    }
-
-    int execute(int number1, int number2) throws AddNumbersFault_Exception {
-        if (number1 < 0 || number2 < 0) {
-            AddNumbersFault fb = new AddNumbersFault();
-            fb.setDetail("Negative numbers cant be added!");
-            fb.setMessage("Numbers: " + number1 + ", " + number2);
-
-            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
-        }
-
-        return number1 + number2;
-    }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.ws.addr_fromwsdl;
+
+import javax.jws.WebService;
+
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception;
+import org.apache.cxf.systest.ws.addr_feature.AddNumbersPortType;
+
+// Jax-WS 2.1 WS-Addressing FromWsdl
+
+@WebService(serviceName = "AddNumbersService",
+            targetNamespace = "http://apache.org/cxf/systest/ws/addr_feature/")
+public class AddNumberImpl implements AddNumbersPortType {
+    public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+    public int addNumbers2(int number1, int number2) {
+        return number1 + number2;
+    }
+
+    public int addNumbers3(int number1, int number2) throws AddNumbersFault_Exception {
+        return execute(number1, number2);
+    }
+
+    int execute(int number1, int number2) throws AddNumbersFault_Exception {
+        if (number1 < 0 || number2 < 0) {
+            AddNumbersFault fb = new AddNumbersFault();
+            fb.setDetail("Negative numbers cant be added!");
+            fb.setMessage("Numbers: " + number1 + ", " + number2);
+
+            throw new AddNumbersFault_Exception(fb.getMessage(), fb);
+        }
+
+        return number1 + number2;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromwsdl/AddNumberImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message