cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r630382 [6/11] - in /incubator/cxf/trunk/tools: anttask/src/main/java/org/apache/cxf/ant/extensions/ common/src/main/java/org/apache/cxf/tools/common/ common/src/main/java/org/apache/cxf/tools/common/model/ common/src/test/java/org/apache/c...
Date Sat, 23 Feb 2008 03:12:56 GMT
Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java Fri Feb 22 19:12:48 2008
@@ -1,125 +1,125 @@
-/**
- * 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.tools.java2ws;
-
-import java.io.File;
-import java.net.URL;
-
-import javax.wsdl.Definition;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLReader;
-
-import org.w3c.dom.Document;
-
-import org.apache.cxf.helpers.FileUtils;
-import org.apache.cxf.tools.common.ToolTestBase;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public class AegisTest extends ToolTestBase {
-    
-    private File output;
-    private String cp;
-    private File inputData;
-    
-    private void checkStdErr() {
-        String err = getStdErr();
-        if (err != null) {
-            assertEquals("errors: ", "", err);
-        }
-    }
-
-    @Before
-    public void startUp() throws Exception {
-        cp = System.getProperty("java.class.path");
-        URL url = getClass().getResource(".");
-        output = new File(url.toURI());
-        output = new File(output, "/generated/");
-        url = getClass().getResource("/");
-        inputData = new File(url.toURI());
-        FileUtils.mkDir(output);
-    }
-    
-    @After
-    public void tearDown() {
-        super.tearDown();
-        System.setProperty("java.class.path", cp);
-        FileUtils.removeDir(output);
-        output = null;
-    }
-    private File outputFile(String name) {
-        File f = new File(output.getPath() + File.separator + name);
-        f.delete();
-        return f;
-    }
-    
-    @Test
-    public void testAegisBasic() throws Exception {
-        final String sei = org.apache.cxf.tools.fortest.aegis2ws.TestAegisSEI.class.getName();
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/aegis.wsdl", "-verbose", "-d",
-                                      output.getPath(), "-s", output.getPath(),
-                                      "-frontend", "jaxws", "-databinding", "aegis",
-                                      "-client", "-server", sei};
-        File wsdlFile = null;
-        wsdlFile = outputFile("aegis.wsdl");
-        JavaToWS.main(args);
-        checkStdErr();
-        assertTrue("wsdl is not generated", wsdlFile.exists());
-    
-        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
-        reader.setFeature("javax.wsdl.verbose", false);
-        Definition def = reader.readWSDL(wsdlFile.toURI().toURL().toString());
-        Document wsdl = WSDLFactory.newInstance().newWSDLWriter().getDocument(def);
-        addNamespace("ns0", "http://aegis2ws.fortest.tools.cxf.apache.org/");
-        assertValid("//xsd:element[@type='ns0:Something']", wsdl);
-    }
-    
-    @Test 
-    @org.junit.Ignore("Failed on Windows Vista")
-    public void testAegisReconfigureDatabinding() throws Exception {
-        final String sei = "org.apache.cxf.tools.fortest.aegis2ws.TestAegisSEI";
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/aegis.wsdl", 
-                                      "-beans",
-                                      new File(inputData, "revisedAegisDefaultBeans.xml").
-                                          getAbsolutePath(),
-                                      "-verbose", "-s",
-                                      output.getPath(), "-frontend", "jaxws", "-databinding", "aegis",
-                                      "-client", "-server", sei};
-        File wsdlFile = null;
-        wsdlFile = outputFile("aegis.wsdl");
-        JavaToWS.main(args);
-        checkStdErr();
-        assertTrue("wsdl is not generated", wsdlFile.exists());
-    
-        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
-        reader.setFeature("javax.wsdl.verbose", false);
-        Definition def = reader.readWSDL(wsdlFile.toURI().toURL().toString());
-        Document wsdl = WSDLFactory.newInstance().newWSDLWriter().getDocument(def);
-        addNamespace("ns0", "http://aegis2ws.fortest.tools.cxf.apache.org/");
-        assertValid("//xsd:element[@type='ns0:Something']", wsdl);
-        assertXPathEquals("//xsd:complexType[@name='Something']/" 
-                          + "xsd:sequence/xsd:element[@name='multiple']/@minOccurs", 
-                          "50", wsdl);
-        assertInvalid("//xsd:complexType[@name='Something']/" 
-                          + "xsd:sequence/xsd:element[@name='singular']/@minOccurs", 
-                          wsdl);
-    }
-
-}
+/**
+ * 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.tools.java2ws;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.wsdl.Definition;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+
+import org.w3c.dom.Document;
+
+import org.apache.cxf.helpers.FileUtils;
+import org.apache.cxf.tools.common.ToolTestBase;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AegisTest extends ToolTestBase {
+    
+    private File output;
+    private String cp;
+    private File inputData;
+    
+    private void checkStdErr() {
+        String err = getStdErr();
+        if (err != null) {
+            assertEquals("errors: ", "", err);
+        }
+    }
+
+    @Before
+    public void startUp() throws Exception {
+        cp = System.getProperty("java.class.path");
+        URL url = getClass().getResource(".");
+        output = new File(url.toURI());
+        output = new File(output, "/generated/");
+        url = getClass().getResource("/");
+        inputData = new File(url.toURI());
+        FileUtils.mkDir(output);
+    }
+    
+    @After
+    public void tearDown() {
+        super.tearDown();
+        System.setProperty("java.class.path", cp);
+        FileUtils.removeDir(output);
+        output = null;
+    }
+    private File outputFile(String name) {
+        File f = new File(output.getPath() + File.separator + name);
+        f.delete();
+        return f;
+    }
+    
+    @Test
+    public void testAegisBasic() throws Exception {
+        final String sei = org.apache.cxf.tools.fortest.aegis2ws.TestAegisSEI.class.getName();
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/aegis.wsdl", "-verbose", "-d",
+                                      output.getPath(), "-s", output.getPath(),
+                                      "-frontend", "jaxws", "-databinding", "aegis",
+                                      "-client", "-server", sei};
+        File wsdlFile = null;
+        wsdlFile = outputFile("aegis.wsdl");
+        JavaToWS.main(args);
+        checkStdErr();
+        assertTrue("wsdl is not generated", wsdlFile.exists());
+    
+        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
+        reader.setFeature("javax.wsdl.verbose", false);
+        Definition def = reader.readWSDL(wsdlFile.toURI().toURL().toString());
+        Document wsdl = WSDLFactory.newInstance().newWSDLWriter().getDocument(def);
+        addNamespace("ns0", "http://aegis2ws.fortest.tools.cxf.apache.org/");
+        assertValid("//xsd:element[@type='ns0:Something']", wsdl);
+    }
+    
+    @Test 
+    @org.junit.Ignore("Failed on Windows Vista")
+    public void testAegisReconfigureDatabinding() throws Exception {
+        final String sei = "org.apache.cxf.tools.fortest.aegis2ws.TestAegisSEI";
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/aegis.wsdl", 
+                                      "-beans",
+                                      new File(inputData, "revisedAegisDefaultBeans.xml").
+                                          getAbsolutePath(),
+                                      "-verbose", "-s",
+                                      output.getPath(), "-frontend", "jaxws", "-databinding", "aegis",
+                                      "-client", "-server", sei};
+        File wsdlFile = null;
+        wsdlFile = outputFile("aegis.wsdl");
+        JavaToWS.main(args);
+        checkStdErr();
+        assertTrue("wsdl is not generated", wsdlFile.exists());
+    
+        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
+        reader.setFeature("javax.wsdl.verbose", false);
+        Definition def = reader.readWSDL(wsdlFile.toURI().toURL().toString());
+        Document wsdl = WSDLFactory.newInstance().newWSDLWriter().getDocument(def);
+        addNamespace("ns0", "http://aegis2ws.fortest.tools.cxf.apache.org/");
+        assertValid("//xsd:element[@type='ns0:Something']", wsdl);
+        assertXPathEquals("//xsd:complexType[@name='Something']/" 
+                          + "xsd:sequence/xsd:element[@name='multiple']/@minOccurs", 
+                          "50", wsdl);
+        assertInvalid("//xsd:complexType[@name='Something']/" 
+                          + "xsd:sequence/xsd:element[@name='singular']/@minOccurs", 
+                          wsdl);
+    }
+
+}

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/AegisTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java Fri Feb 22 19:12:48 2008
@@ -1,341 +1,341 @@
-/**
- * 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.tools.java2ws;
-
-import java.io.File;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.net.URLClassLoader;
-
-import org.apache.cxf.common.util.Compiler;
-import org.apache.cxf.helpers.FileUtils;
-import org.apache.cxf.tools.common.ToolContext;
-import org.apache.cxf.tools.common.ToolTestBase;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public class JavaToWSTest extends ToolTestBase {
-    protected String cp;
-    protected ToolContext env;
-    protected File output;
-    protected File classDir;
-
-    @Before
-    public void setUpResource() throws Exception {
-        super.setUp();
-        env = new ToolContext();
-        cp = System.getProperty("java.class.path");
-        URL url = getClass().getResource(".");
-        output = new File(url.toURI());
-        System.setProperty("java.class.path", getClassPath());
-        output = new File(output, "/generated/");
-        FileUtils.mkDir(output);
-        classDir = new File(output, "/classes/");
-        FileUtils.mkDir(classDir);
-    }
-
-    @After
-    public void tearDown() {
-        super.tearDown();
-        System.setProperty("java.class.path", cp);
-        FileUtils.removeDir(output);
-        output = null;
-    }
-
-    private File outputFile(String name) {
-        return new File(output.getPath() + File.separator + name);
-    }
-
-    @Test
-    public void testVersionOutput() throws Exception {
-        String[] args = new String[] {"-v"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-    }
-
-    @Test
-    public void testFlagWSDL() throws Exception {
-        File wsdlFile = outputFile("tmp.wsdl");
-        String[] args = new String[] {"-wsdl", "-o", wsdlFile.getAbsolutePath(), "-s", output.getPath(),
-                                      "-client", "-server", "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        checkStdErr();
-        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
-    }
-
-    private void checkStdErr() {
-        String err = getStdErr();
-        if (err != null) {
-            assertEquals("errors: ", "", err);
-        }
-    }
-
-    @Test
-    public void testJaxwsFrontend() throws Exception {
-        File wsdlFile = outputFile("tmp.wsdl");
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-s",
-                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
-                                      "-address", "http://localhost:1234/test",
-                                      "org.apache.hello_world_doc_lit.Greeter"};
-        JavaToWS.main(args);
-        //checkStdErr();
-        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
-        String str = FileUtils.getStringFromFile(wsdlFile);
-        assertTrue("Port address in generated wsdl is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-        File client = outputFile("org/apache/hello_world_doc_lit/GreeterClient.java");
-        str = FileUtils.getStringFromFile(client);
-        assertTrue("Address generated in client side code is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-
-        File server = outputFile("org/apache/hello_world_doc_lit/GreeterServer.java");
-        str = FileUtils.getStringFromFile(server);
-        assertTrue("Address generated in server side code is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-
-        File impl = outputFile("org/apache/hello_world_doc_lit/GreeterImpl.java");
-        Compiler compiler = new Compiler();
-        String[] files = new String[]{client.getAbsoluteFile().toString(),
-                                     server.getAbsoluteFile().toString(),
-                                     impl.getAbsoluteFile().toString()};
-        compiler.compileFiles(files, this.classDir);
-    }
-
-    @Test
-    public void testSimpleFrontend() throws Exception {
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-s",
-                                      output.getPath(), "-frontend", "simple", "-client", "-server",
-                                      "-address", "http://localhost:1234/test",
-                                      "org.apache.cxf.tools.fortest.simple.Hello"};
-        JavaToWS.main(args);
-        File client = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeClient.java");
-        File server = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeServer.java");
-        File impl = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeImpl.java");
-        File wsdl = outputFile("tmp.wsdl");
-        assertTrue("Failed to generate client file for simple front end ", client.exists());
-        assertTrue("Failed to generate server file for simple front end ", server.exists());
-        assertTrue("Failed to generate impl file for simple front end ", impl.exists());
-        assertTrue("Failed to generate wsdl file for simple front end ", wsdl.exists());
-
-        String str = FileUtils.getStringFromFile(client);
-        assertTrue("Address generated in client side code is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-        str = FileUtils.getStringFromFile(server);
-        assertTrue("Address generated in server side code is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-        str = FileUtils.getStringFromFile(wsdl);
-        assertTrue("Address generated in wsdl is not correct",
-                   str.indexOf("http://localhost:1234/test") > -1);
-
-
-        Compiler compiler = new Compiler();
-        String[] files = new String[]{client.getAbsoluteFile().toString(),
-                                     server.getAbsoluteFile().toString(),
-                                     impl.getAbsoluteFile().toString()};
-        compiler.compileFiles(files, this.classDir);
-
-
-    }
-
-    @Test
-    public void testMissingBeans() {
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
-                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
-                                      "-beans", "nobodyHome.xml",
-                                      "-beans", "nothing.xml",
-                                      "org.apache.hello_world_doc_lit.Greeter"};
-        JavaToWS.main(args);
-        String err = getStdErr();
-        assertTrue("Missing file error message",
-                   err.indexOf("Unable to open bean definition file nobodyHome.xml") >= 0);
-    }
-
-    @Test
-    public void testClassNoWebServiceAnno() throws Exception {
-        File wsdlFile = outputFile("tmp.wsdl");
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
-                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
-                                      "org.apache.cxf.tools.fortest.HelloWithNoAnno"};
-        JavaToWS.main(args);
-        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
-        assertTrue("Class does not carry WebService error should be detected", getStdErr()
-            .indexOf("does not carry a WebService annotation") > -1);
-    }
-
-    @Test
-    public void testClassWithRMI() throws Exception {
-        File wsdlFile = outputFile("tmp.wsdl");
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose",
-                                      "-s", output.getPath(), "-frontend", "jaxws", "-client", "-server",
-                                      "org.apache.cxf.tools.fortest.HelloRMI"};
-        JavaToWS.main(args);
-        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
-        assertTrue("Parameter or return type implemented java.rmi.Remote interface error should be detected",
-                   getStdErr().indexOf("implemented the java.rmi.Remote interface") > -1);
-    }
-
-    @Test
-    public void testGenServerAndClient() throws Exception {
-        File client = outputFile("org/apache/hello_world_soap12_http/GreeterClient.java");
-        File server = outputFile("org/apache/hello_world_soap12_http/GreeterServer.java");
-        File impl = outputFile("org/apache/hello_world_soap12_http/GreeterImpl.java");
-        String[] args = new String[] {"-s", output.getPath(), "-client", "-server",
-                                      "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        checkStdErr();
-        assertTrue("Client was not generated", client.exists());
-        assertTrue("Greeter_GreeterPort_Server.java was not generated", server.exists());
-        assertTrue("Impl was not generated", impl.exists());
-        String implContent = FileUtils.getStringFromFile(impl);
-        assertTrue("serviceName annotation was not generated",
-                   implContent.indexOf("serviceName=\"GreeterService\"") > -1);
-    }
-
-    @Test
-    public void testGenServerAndImpl() throws Exception {
-        File server = outputFile("org/apache/hello_world_soap12_http/GreeterServer.java");
-        File impl = outputFile("org/apache/hello_world_soap12_http/GreeterImpl.java");
-
-        String[] args = new String[] {"-s", output.getPath(), "-server",
-                                      "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        checkStdErr();
-        assertTrue("GreeterServer.java was not generated", server.exists());
-        assertTrue("GreeterImpl.java was not generated", impl.exists());
-    }
-
-    @Test
-    public void testGenWrapperBean() throws Exception {
-        String[] args = new String[] {"-s", output.getPath(), "-wrapperbean", "-server",
-                                      "org.apache.cxf.tools.java2ws.fortest.Calculator"};
-        JavaToWS.main(args);
-        checkStdErr();
-    }
-
-    @Test
-    public void testInvalidFlag() throws Exception {
-        String[] args = new String[] {"-frontend", "tmp", "-wsdl", "-o", output.getPath() + "/tmp.wsdl",
-                                      "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        assertTrue("invalid frontend flag should be detected", getStdErr()
-            .indexOf("is not a valid frontend,") > -1);
-    }
-
-    @Test
-    public void testInvalidFlag2() throws Exception {
-        String[] args = new String[] {"-frontend", "simple", "-wrapperbean", "-wsdl", "-o",
-                                      output.getPath() + "/tmp.wsdl",
-                                      "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        assertTrue("wrapperbean flag error should be detected", getStdErr()
-            .indexOf("-wrapperbean is only valid for the jaxws front end.") > -1);
-    }
-
-    @Test
-    public void testInvalidFlag3() throws Exception {
-        String[] args = new String[] {"-databinding", "jaxb", "-frontend", "simple",
-                                      "-wsdl", "-o",
-                                      output.getPath() + "/tmp.wsdl",
-                                      "org.apache.hello_world_soap12_http.Greeter"};
-        JavaToWS.main(args);
-        assertTrue("jaxb databinding warning should be detected", getStdErr()
-                   .indexOf("Simple front end only supports aegis databinding") > -1);
-    }
-
-
-    @Test
-    public void testImplClassWithoutSei() throws Exception {
-        File wsdlFile = outputFile("tmp.wsdl");
-        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
-                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
-                                      "org.apache.cxf.tools.fortest.GreeterImpl"};
-        JavaToWS.main(args);
-        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
-
-        File sei = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortType.java");
-        assertTrue("Failed to generate SEI file : GreeterImpl_PortType.java", sei.exists());
-        File client = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortTypeClient.java");
-        assertTrue("Failed to generate client file : GreeterImpl_PortTypeClient.java", client.exists());
-        File server = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortTypeServer.java");
-        assertTrue("Failed to generate SEI file : GreeterImpl_PortTypeServer.java", server.exists());
-    }
-
-    @Test
-    public void testXmlList() throws Exception {
-        String[] args = new String[] {"-o", output.getPath() + "/xml-list.wsdl", "-verbose",
-                                      "-wsdl", "org.apache.cxf.tools.fortest.xmllist.AddNumbersPortType"};
-        JavaToWS.main(args);
-
-        File file = new File(output.getPath() + "/xml-list.wsdl");
-        String str = FileUtils.getStringFromFile(file);
-        assertTrue("Java2wsdl did not generate xsd:list element",
-                   str.indexOf("xs:list") > -1);
-
-    }
-
-    @Test
-    public void testXmlAttachementRef() throws Exception {
-        String[] args = new String[] {"-o", output.getPath() + "/swa-ref.wsdl", "-verbose",
-                                      "-wsdl", "org.apache.attachment.AddNumbersImpl"};
-        JavaToWS.main(args);
-        File file = new File(output.getPath() + "/AddNumbers.wsdl");
-        String str = FileUtils.getStringFromFile(file);
-        String swaImport = "http://ws-i.org/profiles/basic/1.1/xsd";
-        assertTrue("Java2wsdl did not generate swaRef type element",
-                   str.indexOf(":swaRef") > -1 && str.indexOf(swaImport) > -1);
-
-    }
-    
-    
-    @Test
-    public void testXmlJavaTypeAdapter() throws Exception {
-        String[] args = new String[] {"-o", output.getPath() + "/xmladapter.wsdl", "-verbose",
-                                      "-wsdl", "org.apache.xmladapter.GreeterImpl"};
-       
-        JavaToWS.main(args);
-        File file = new File(output.getPath() + "/xmladapter.wsdl");
-        String str = FileUtils.getStringFromFile(file);
-        String expected = "<xs:element  minOccurs=\"0\"  name=\"arg0\"  type=\"xs:string\"/>";
-        assertTrue("@XmlJavaTypeAdapter in SEI dose not take effect",
-                   str.indexOf(expected) > -1);
-            
-    }
-
-
-    protected String getClassPath() throws URISyntaxException {
-        ClassLoader loader = getClass().getClassLoader();
-        StringBuffer classPath = new StringBuffer();
-        if (loader instanceof URLClassLoader) {
-            URLClassLoader urlLoader = (URLClassLoader)loader;
-            for (URL url : urlLoader.getURLs()) {
-                File file;
-                file = new File(url.toURI());
-                String filename = file.getAbsolutePath();
-                if (filename.indexOf("junit") == -1) {
-                    classPath.append(filename);
-                    classPath.append(System.getProperty("path.separator"));
-                }
-            }
-        }
-        return classPath.toString();
-    }
-
-}
+/**
+ * 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.tools.java2ws;
+
+import java.io.File;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.net.URLClassLoader;
+
+import org.apache.cxf.common.util.Compiler;
+import org.apache.cxf.helpers.FileUtils;
+import org.apache.cxf.tools.common.ToolContext;
+import org.apache.cxf.tools.common.ToolTestBase;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class JavaToWSTest extends ToolTestBase {
+    protected String cp;
+    protected ToolContext env;
+    protected File output;
+    protected File classDir;
+
+    @Before
+    public void setUpResource() throws Exception {
+        super.setUp();
+        env = new ToolContext();
+        cp = System.getProperty("java.class.path");
+        URL url = getClass().getResource(".");
+        output = new File(url.toURI());
+        System.setProperty("java.class.path", getClassPath());
+        output = new File(output, "/generated/");
+        FileUtils.mkDir(output);
+        classDir = new File(output, "/classes/");
+        FileUtils.mkDir(classDir);
+    }
+
+    @After
+    public void tearDown() {
+        super.tearDown();
+        System.setProperty("java.class.path", cp);
+        FileUtils.removeDir(output);
+        output = null;
+    }
+
+    private File outputFile(String name) {
+        return new File(output.getPath() + File.separator + name);
+    }
+
+    @Test
+    public void testVersionOutput() throws Exception {
+        String[] args = new String[] {"-v"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+    }
+
+    @Test
+    public void testFlagWSDL() throws Exception {
+        File wsdlFile = outputFile("tmp.wsdl");
+        String[] args = new String[] {"-wsdl", "-o", wsdlFile.getAbsolutePath(), "-s", output.getPath(),
+                                      "-client", "-server", "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        checkStdErr();
+        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
+    }
+
+    private void checkStdErr() {
+        String err = getStdErr();
+        if (err != null) {
+            assertEquals("errors: ", "", err);
+        }
+    }
+
+    @Test
+    public void testJaxwsFrontend() throws Exception {
+        File wsdlFile = outputFile("tmp.wsdl");
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-s",
+                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
+                                      "-address", "http://localhost:1234/test",
+                                      "org.apache.hello_world_doc_lit.Greeter"};
+        JavaToWS.main(args);
+        //checkStdErr();
+        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
+        String str = FileUtils.getStringFromFile(wsdlFile);
+        assertTrue("Port address in generated wsdl is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+        File client = outputFile("org/apache/hello_world_doc_lit/GreeterClient.java");
+        str = FileUtils.getStringFromFile(client);
+        assertTrue("Address generated in client side code is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+
+        File server = outputFile("org/apache/hello_world_doc_lit/GreeterServer.java");
+        str = FileUtils.getStringFromFile(server);
+        assertTrue("Address generated in server side code is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+
+        File impl = outputFile("org/apache/hello_world_doc_lit/GreeterImpl.java");
+        Compiler compiler = new Compiler();
+        String[] files = new String[]{client.getAbsoluteFile().toString(),
+                                     server.getAbsoluteFile().toString(),
+                                     impl.getAbsoluteFile().toString()};
+        compiler.compileFiles(files, this.classDir);
+    }
+
+    @Test
+    public void testSimpleFrontend() throws Exception {
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-s",
+                                      output.getPath(), "-frontend", "simple", "-client", "-server",
+                                      "-address", "http://localhost:1234/test",
+                                      "org.apache.cxf.tools.fortest.simple.Hello"};
+        JavaToWS.main(args);
+        File client = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeClient.java");
+        File server = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeServer.java");
+        File impl = outputFile("org/apache/cxf/tools/fortest/simple/HelloPortTypeImpl.java");
+        File wsdl = outputFile("tmp.wsdl");
+        assertTrue("Failed to generate client file for simple front end ", client.exists());
+        assertTrue("Failed to generate server file for simple front end ", server.exists());
+        assertTrue("Failed to generate impl file for simple front end ", impl.exists());
+        assertTrue("Failed to generate wsdl file for simple front end ", wsdl.exists());
+
+        String str = FileUtils.getStringFromFile(client);
+        assertTrue("Address generated in client side code is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+        str = FileUtils.getStringFromFile(server);
+        assertTrue("Address generated in server side code is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+        str = FileUtils.getStringFromFile(wsdl);
+        assertTrue("Address generated in wsdl is not correct",
+                   str.indexOf("http://localhost:1234/test") > -1);
+
+
+        Compiler compiler = new Compiler();
+        String[] files = new String[]{client.getAbsoluteFile().toString(),
+                                     server.getAbsoluteFile().toString(),
+                                     impl.getAbsoluteFile().toString()};
+        compiler.compileFiles(files, this.classDir);
+
+
+    }
+
+    @Test
+    public void testMissingBeans() {
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
+                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
+                                      "-beans", "nobodyHome.xml",
+                                      "-beans", "nothing.xml",
+                                      "org.apache.hello_world_doc_lit.Greeter"};
+        JavaToWS.main(args);
+        String err = getStdErr();
+        assertTrue("Missing file error message",
+                   err.indexOf("Unable to open bean definition file nobodyHome.xml") >= 0);
+    }
+
+    @Test
+    public void testClassNoWebServiceAnno() throws Exception {
+        File wsdlFile = outputFile("tmp.wsdl");
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
+                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
+                                      "org.apache.cxf.tools.fortest.HelloWithNoAnno"};
+        JavaToWS.main(args);
+        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
+        assertTrue("Class does not carry WebService error should be detected", getStdErr()
+            .indexOf("does not carry a WebService annotation") > -1);
+    }
+
+    @Test
+    public void testClassWithRMI() throws Exception {
+        File wsdlFile = outputFile("tmp.wsdl");
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose",
+                                      "-s", output.getPath(), "-frontend", "jaxws", "-client", "-server",
+                                      "org.apache.cxf.tools.fortest.HelloRMI"};
+        JavaToWS.main(args);
+        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
+        assertTrue("Parameter or return type implemented java.rmi.Remote interface error should be detected",
+                   getStdErr().indexOf("implemented the java.rmi.Remote interface") > -1);
+    }
+
+    @Test
+    public void testGenServerAndClient() throws Exception {
+        File client = outputFile("org/apache/hello_world_soap12_http/GreeterClient.java");
+        File server = outputFile("org/apache/hello_world_soap12_http/GreeterServer.java");
+        File impl = outputFile("org/apache/hello_world_soap12_http/GreeterImpl.java");
+        String[] args = new String[] {"-s", output.getPath(), "-client", "-server",
+                                      "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        checkStdErr();
+        assertTrue("Client was not generated", client.exists());
+        assertTrue("Greeter_GreeterPort_Server.java was not generated", server.exists());
+        assertTrue("Impl was not generated", impl.exists());
+        String implContent = FileUtils.getStringFromFile(impl);
+        assertTrue("serviceName annotation was not generated",
+                   implContent.indexOf("serviceName=\"GreeterService\"") > -1);
+    }
+
+    @Test
+    public void testGenServerAndImpl() throws Exception {
+        File server = outputFile("org/apache/hello_world_soap12_http/GreeterServer.java");
+        File impl = outputFile("org/apache/hello_world_soap12_http/GreeterImpl.java");
+
+        String[] args = new String[] {"-s", output.getPath(), "-server",
+                                      "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        checkStdErr();
+        assertTrue("GreeterServer.java was not generated", server.exists());
+        assertTrue("GreeterImpl.java was not generated", impl.exists());
+    }
+
+    @Test
+    public void testGenWrapperBean() throws Exception {
+        String[] args = new String[] {"-s", output.getPath(), "-wrapperbean", "-server",
+                                      "org.apache.cxf.tools.java2ws.fortest.Calculator"};
+        JavaToWS.main(args);
+        checkStdErr();
+    }
+
+    @Test
+    public void testInvalidFlag() throws Exception {
+        String[] args = new String[] {"-frontend", "tmp", "-wsdl", "-o", output.getPath() + "/tmp.wsdl",
+                                      "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        assertTrue("invalid frontend flag should be detected", getStdErr()
+            .indexOf("is not a valid frontend,") > -1);
+    }
+
+    @Test
+    public void testInvalidFlag2() throws Exception {
+        String[] args = new String[] {"-frontend", "simple", "-wrapperbean", "-wsdl", "-o",
+                                      output.getPath() + "/tmp.wsdl",
+                                      "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        assertTrue("wrapperbean flag error should be detected", getStdErr()
+            .indexOf("-wrapperbean is only valid for the jaxws front end.") > -1);
+    }
+
+    @Test
+    public void testInvalidFlag3() throws Exception {
+        String[] args = new String[] {"-databinding", "jaxb", "-frontend", "simple",
+                                      "-wsdl", "-o",
+                                      output.getPath() + "/tmp.wsdl",
+                                      "org.apache.hello_world_soap12_http.Greeter"};
+        JavaToWS.main(args);
+        assertTrue("jaxb databinding warning should be detected", getStdErr()
+                   .indexOf("Simple front end only supports aegis databinding") > -1);
+    }
+
+
+    @Test
+    public void testImplClassWithoutSei() throws Exception {
+        File wsdlFile = outputFile("tmp.wsdl");
+        String[] args = new String[] {"-wsdl", "-o", output.getPath() + "/tmp.wsdl", "-verbose", "-s",
+                                      output.getPath(), "-frontend", "jaxws", "-client", "-server",
+                                      "org.apache.cxf.tools.fortest.GreeterImpl"};
+        JavaToWS.main(args);
+        assertTrue("Failed to generate WSDL file", wsdlFile.exists());
+
+        File sei = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortType.java");
+        assertTrue("Failed to generate SEI file : GreeterImpl_PortType.java", sei.exists());
+        File client = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortTypeClient.java");
+        assertTrue("Failed to generate client file : GreeterImpl_PortTypeClient.java", client.exists());
+        File server = outputFile("org/apache/cxf/tools/fortest/GreeterImpl_PortTypeServer.java");
+        assertTrue("Failed to generate SEI file : GreeterImpl_PortTypeServer.java", server.exists());
+    }
+
+    @Test
+    public void testXmlList() throws Exception {
+        String[] args = new String[] {"-o", output.getPath() + "/xml-list.wsdl", "-verbose",
+                                      "-wsdl", "org.apache.cxf.tools.fortest.xmllist.AddNumbersPortType"};
+        JavaToWS.main(args);
+
+        File file = new File(output.getPath() + "/xml-list.wsdl");
+        String str = FileUtils.getStringFromFile(file);
+        assertTrue("Java2wsdl did not generate xsd:list element",
+                   str.indexOf("xs:list") > -1);
+
+    }
+
+    @Test
+    public void testXmlAttachementRef() throws Exception {
+        String[] args = new String[] {"-o", output.getPath() + "/swa-ref.wsdl", "-verbose",
+                                      "-wsdl", "org.apache.attachment.AddNumbersImpl"};
+        JavaToWS.main(args);
+        File file = new File(output.getPath() + "/AddNumbers.wsdl");
+        String str = FileUtils.getStringFromFile(file);
+        String swaImport = "http://ws-i.org/profiles/basic/1.1/xsd";
+        assertTrue("Java2wsdl did not generate swaRef type element",
+                   str.indexOf(":swaRef") > -1 && str.indexOf(swaImport) > -1);
+
+    }
+    
+    
+    @Test
+    public void testXmlJavaTypeAdapter() throws Exception {
+        String[] args = new String[] {"-o", output.getPath() + "/xmladapter.wsdl", "-verbose",
+                                      "-wsdl", "org.apache.xmladapter.GreeterImpl"};
+       
+        JavaToWS.main(args);
+        File file = new File(output.getPath() + "/xmladapter.wsdl");
+        String str = FileUtils.getStringFromFile(file);
+        String expected = "<xs:element  minOccurs=\"0\"  name=\"arg0\"  type=\"xs:string\"/>";
+        assertTrue("@XmlJavaTypeAdapter in SEI dose not take effect",
+                   str.indexOf(expected) > -1);
+            
+    }
+
+
+    protected String getClassPath() throws URISyntaxException {
+        ClassLoader loader = getClass().getClassLoader();
+        StringBuffer classPath = new StringBuffer();
+        if (loader instanceof URLClassLoader) {
+            URLClassLoader urlLoader = (URLClassLoader)loader;
+            for (URL url : urlLoader.getURLs()) {
+                File file;
+                file = new File(url.toURI());
+                String filename = file.getAbsolutePath();
+                if (filename.indexOf("junit") == -1) {
+                    classPath.append(filename);
+                    classPath.append(System.getProperty("path.separator"));
+                }
+            }
+        }
+        return classPath.toString();
+    }
+
+}

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/JavaToWSTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java Fri Feb 22 19:12:48 2008
@@ -1,29 +1,29 @@
-/**
- * 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.tools.java2ws.fortest;
-
-/**
- * 
- */
-public class AddException extends Exception {
-    public AddException(String message) {
-        super(message);
-    }
-}
+/**
+ * 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.tools.java2ws.fortest;
+
+/**
+ * 
+ */
+public class AddException extends Exception {
+    public AddException(String message) {
+        super(message);
+    }
+}

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/AddException.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java Fri Feb 22 19:12:48 2008
@@ -1,31 +1,31 @@
-/**
- * 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.tools.java2ws.fortest;
-
-import javax.jws.WebService;
-
-@WebService
-public class Calculator {
-    public int add(int a, int b) throws AddException {
-        if (a < 0 || b < 0) {
-            throw new AddException("No negative values please");
-        }
-        return a + b;
-    }
-}
+/**
+ * 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.tools.java2ws.fortest;
+
+import javax.jws.WebService;
+
+@WebService
+public class Calculator {
+    public int add(int a, int b) throws AddException {
+        if (a < 0 || b < 0) {
+            throw new AddException("No negative values please");
+        }
+        return a + b;
+    }
+}

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2ws/fortest/Calculator.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java Fri Feb 22 19:12:48 2008
@@ -1,89 +1,89 @@
-/**
- * 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.tools.java2wsdl;
-
-import org.apache.cxf.tools.common.ToolTestBase;
-import org.apache.cxf.tools.java2ws.JavaToWS;
-import org.junit.After;
-import org.junit.Test;
-
-public class JavaToWSFlagTest extends ToolTestBase {
-
-    @After
-    public void tearDown() {
-        super.tearDown();
-    }
-
-    @Test
-    public void testVersionOutput() throws Exception {
-        String[] args = new String[] {"-v"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-    }
-
-    @Test
-    public void testHelpOutput() {
-        String[] args = new String[] {"-help"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-    }
-
-    @Test
-    public void testNormalArgs() throws Exception {
-        System.err.println(getLocation("test.wsdl"));
-        String[] args = new String[] {"-o",
-                                      getLocation("normal.wsdl"),
-                                      "org.apache.hello_world_soap_http.Greeter"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-    }
-
-    @Test
-    public void testBadUsage() {
-        String[] args = new String[] {"-ttt", "a.ww"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-
-    }
-
-    @Test
-    public void testValidArgs() {
-        String[] args = new String[] {"a.ww"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-
-    }
-
-    @Test
-    public void testNoOutPutFile() throws Exception {
-        String[] args = new String[] {"-o",
-                                      getLocation("nooutput.wsdl"),
-                                      "org.apache.hello_world_soap_http.Greeter"};
-        JavaToWS.main(args);
-        assertNotNull(getStdOut());
-    }
-
-    @Test
-    public void testNoArg() {
-        String[] args = new String[] {};
-        JavaToWS.main(args);
-        assertEquals(-1, getStdOut().indexOf("Caused by:"));
-    }
-}
+/**
+ * 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.tools.java2wsdl;
+
+import org.apache.cxf.tools.common.ToolTestBase;
+import org.apache.cxf.tools.java2ws.JavaToWS;
+import org.junit.After;
+import org.junit.Test;
+
+public class JavaToWSFlagTest extends ToolTestBase {
+
+    @After
+    public void tearDown() {
+        super.tearDown();
+    }
+
+    @Test
+    public void testVersionOutput() throws Exception {
+        String[] args = new String[] {"-v"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+    }
+
+    @Test
+    public void testHelpOutput() {
+        String[] args = new String[] {"-help"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+    }
+
+    @Test
+    public void testNormalArgs() throws Exception {
+        System.err.println(getLocation("test.wsdl"));
+        String[] args = new String[] {"-o",
+                                      getLocation("normal.wsdl"),
+                                      "org.apache.hello_world_soap_http.Greeter"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+    }
+
+    @Test
+    public void testBadUsage() {
+        String[] args = new String[] {"-ttt", "a.ww"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+
+    }
+
+    @Test
+    public void testValidArgs() {
+        String[] args = new String[] {"a.ww"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+
+    }
+
+    @Test
+    public void testNoOutPutFile() throws Exception {
+        String[] args = new String[] {"-o",
+                                      getLocation("nooutput.wsdl"),
+                                      "org.apache.hello_world_soap_http.Greeter"};
+        JavaToWS.main(args);
+        assertNotNull(getStdOut());
+    }
+
+    @Test
+    public void testNoArg() {
+        String[] args = new String[] {};
+        JavaToWS.main(args);
+        assertEquals(-1, getStdOut().indexOf("Caused by:"));
+    }
+}

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/JavaToWSFlagTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl Fri Feb 22 19:12:48 2008
@@ -1,162 +1,162 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<wsdl:definitions name="AddNumbersImplService" targetNamespace="http://fortest.tools.cxf.apache.org/" xmlns:tns="http://fortest.tools.cxf.apache.org/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
-  <wsdl:types>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://fortest.tools.cxf.apache.org/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://fortest.tools.cxf.apache.org/">
-    <xsd:element name="AddNumbersException" type="tns:AddNumbersException"/>
-    <xsd:complexType name="AddNumbersException">
-        <xsd:sequence/>
-    </xsd:complexType>
-    <xsd:element name="addNumbers2" type="tns:addNumbers2"/>
-    <xsd:complexType name="addNumbers2">
-        <xsd:sequence>
-            <xsd:element name="arg0" type="xsd:int"/>
-            <xsd:element name="arg1" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="addNumbers2Response" type="tns:addNumbers2Response"/>
-    <xsd:complexType name="addNumbers2Response">
-        <xsd:sequence>
-            <xsd:element name="return" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="addNumbers3" type="tns:addNumbers3"/>
-    <xsd:complexType name="addNumbers3">
-        <xsd:sequence>
-            <xsd:element name="arg0" type="xsd:int"/>
-            <xsd:element name="arg1" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="addNumbers3Response" type="tns:addNumbers3Response"/>
-    <xsd:complexType name="addNumbers3Response">
-        <xsd:sequence>
-            <xsd:element name="return" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="addNumbers" type="tns:addNumbers"/>
-    <xsd:complexType name="addNumbers">
-        <xsd:sequence>
-            <xsd:element name="arg0" type="xsd:int"/>
-            <xsd:element name="arg1" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="addNumbersResponse" type="tns:addNumbersResponse"/>
-    <xsd:complexType name="addNumbersResponse">
-        <xsd:sequence>
-            <xsd:element name="return" type="xsd:int"/>
-        </xsd:sequence>
-    </xsd:complexType>
-</xsd:schema>
-  </wsdl:types>
-  <wsdl:message name="addNumbers2">
-    <wsdl:part name="parameters" element="tns:addNumbers2">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="addNumbers">
-    <wsdl:part name="parameters" element="tns:addNumbers">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="addNumbers3">
-    <wsdl:part name="parameters" element="tns:addNumbers3">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="addNumbers3Response">
-    <wsdl:part name="parameters" element="tns:addNumbers3Response">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="AddNumbersException">
-    <wsdl:part name="AddNumbersException" element="tns:AddNumbersException">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="addNumbersResponse">
-    <wsdl:part name="parameters" element="tns:addNumbersResponse">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="addNumbers2Response">
-    <wsdl:part name="parameters" element="tns:addNumbers2Response">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:portType name="AddNumbersImpl">
-    <wsdl:operation name="addNumbers2">
-      <wsdl:input name="addNumbers2" message="tns:addNumbers2">
-    </wsdl:input>
-      <wsdl:output name="addNumbers2Response" message="tns:addNumbers2Response">
-    </wsdl:output>
-    </wsdl:operation>
-    <wsdl:operation name="addNumbers3">
-      <wsdl:input name="addNumbers3" message="tns:addNumbers3" wsaw:Action="http://cxf.apache.org/input3">
-    </wsdl:input>
-      <wsdl:output name="addNumbers3Response" message="tns:addNumbers3Response" wsaw:Action="http://cxf.apache.org/output3">
-    </wsdl:output>
-      <wsdl:fault name="AddNumbersException" message="tns:AddNumbersException" wsaw:Action="http://cxf.apache.org/fault3">
-    </wsdl:fault>
-    </wsdl:operation>
-    <wsdl:operation name="addNumbers">
-      <wsdl:input name="addNumbers" message="tns:addNumbers" wsaw:Action="http://cxf.apache.org/input">
-    </wsdl:input>
-      <wsdl:output name="addNumbersResponse" message="tns:addNumbersResponse" wsaw:Action="http://cxf.apache.org/output">
-    </wsdl:output>
-      <wsdl:fault name="AddNumbersException" message="tns:AddNumbersException">
-    </wsdl:fault>
-    </wsdl:operation>
-  </wsdl:portType>
-  <wsdl:binding name="AddNumbersImplServiceSoapBinding" type="tns:AddNumbersImpl">
-    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-    <wsaw:UsingAddressing wsdl:required="false" />
-    <wsdl:operation name="addNumbers2">
-      <soap:operation soapAction="" style="document"/>
-      <wsdl:input name="addNumbers2">
-        <soap:body use="literal"/>
-      </wsdl:input>
-      <wsdl:output name="addNumbers2Response">
-        <soap:body use="literal"/>
-      </wsdl:output>
-    </wsdl:operation>
-    <wsdl:operation name="addNumbers3">
-      <soap:operation soapAction="" style="document"/>
-      <wsdl:input name="addNumbers3">
-        <soap:body use="literal"/>
-      </wsdl:input>
-      <wsdl:output name="addNumbers3Response">
-        <soap:body use="literal"/>
-      </wsdl:output>
-      <wsdl:fault name="AddNumbersException">
-        <soap:fault name="AddNumbersException" use="literal"/>
-      </wsdl:fault>
-    </wsdl:operation>
-    <wsdl:operation name="addNumbers">
-      <soap:operation soapAction="" style="document"/>
-      <wsdl:input name="addNumbers">
-        <soap:body use="literal"/>
-      </wsdl:input>
-      <wsdl:output name="addNumbersResponse">
-        <soap:body use="literal"/>
-      </wsdl:output>
-      <wsdl:fault name="AddNumbersException">
-        <soap:fault name="AddNumbersException" use="literal"/>
-      </wsdl:fault>
-    </wsdl:operation>
-  </wsdl:binding>
-  <wsdl:service name="AddNumbersImplService">
-    <wsdl:port name="AddNumbersImplPort" binding="tns:AddNumbersImplServiceSoapBinding">
-      <soap:address location="http://localhost:9090/AddNumbersImplPort"/>
-    </wsdl:port>
-  </wsdl:service>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<wsdl:definitions name="AddNumbersImplService" targetNamespace="http://fortest.tools.cxf.apache.org/" xmlns:tns="http://fortest.tools.cxf.apache.org/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:types>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://fortest.tools.cxf.apache.org/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://fortest.tools.cxf.apache.org/">
+    <xsd:element name="AddNumbersException" type="tns:AddNumbersException"/>
+    <xsd:complexType name="AddNumbersException">
+        <xsd:sequence/>
+    </xsd:complexType>
+    <xsd:element name="addNumbers2" type="tns:addNumbers2"/>
+    <xsd:complexType name="addNumbers2">
+        <xsd:sequence>
+            <xsd:element name="arg0" type="xsd:int"/>
+            <xsd:element name="arg1" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="addNumbers2Response" type="tns:addNumbers2Response"/>
+    <xsd:complexType name="addNumbers2Response">
+        <xsd:sequence>
+            <xsd:element name="return" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="addNumbers3" type="tns:addNumbers3"/>
+    <xsd:complexType name="addNumbers3">
+        <xsd:sequence>
+            <xsd:element name="arg0" type="xsd:int"/>
+            <xsd:element name="arg1" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="addNumbers3Response" type="tns:addNumbers3Response"/>
+    <xsd:complexType name="addNumbers3Response">
+        <xsd:sequence>
+            <xsd:element name="return" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="addNumbers" type="tns:addNumbers"/>
+    <xsd:complexType name="addNumbers">
+        <xsd:sequence>
+            <xsd:element name="arg0" type="xsd:int"/>
+            <xsd:element name="arg1" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="addNumbersResponse" type="tns:addNumbersResponse"/>
+    <xsd:complexType name="addNumbersResponse">
+        <xsd:sequence>
+            <xsd:element name="return" type="xsd:int"/>
+        </xsd:sequence>
+    </xsd:complexType>
+</xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="addNumbers2">
+    <wsdl:part name="parameters" element="tns:addNumbers2">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="addNumbers">
+    <wsdl:part name="parameters" element="tns:addNumbers">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="addNumbers3">
+    <wsdl:part name="parameters" element="tns:addNumbers3">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="addNumbers3Response">
+    <wsdl:part name="parameters" element="tns:addNumbers3Response">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="AddNumbersException">
+    <wsdl:part name="AddNumbersException" element="tns:AddNumbersException">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="addNumbersResponse">
+    <wsdl:part name="parameters" element="tns:addNumbersResponse">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="addNumbers2Response">
+    <wsdl:part name="parameters" element="tns:addNumbers2Response">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:portType name="AddNumbersImpl">
+    <wsdl:operation name="addNumbers2">
+      <wsdl:input name="addNumbers2" message="tns:addNumbers2">
+    </wsdl:input>
+      <wsdl:output name="addNumbers2Response" message="tns:addNumbers2Response">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="addNumbers3">
+      <wsdl:input name="addNumbers3" message="tns:addNumbers3" wsaw:Action="http://cxf.apache.org/input3">
+    </wsdl:input>
+      <wsdl:output name="addNumbers3Response" message="tns:addNumbers3Response" wsaw:Action="http://cxf.apache.org/output3">
+    </wsdl:output>
+      <wsdl:fault name="AddNumbersException" message="tns:AddNumbersException" wsaw:Action="http://cxf.apache.org/fault3">
+    </wsdl:fault>
+    </wsdl:operation>
+    <wsdl:operation name="addNumbers">
+      <wsdl:input name="addNumbers" message="tns:addNumbers" wsaw:Action="http://cxf.apache.org/input">
+    </wsdl:input>
+      <wsdl:output name="addNumbersResponse" message="tns:addNumbersResponse" wsaw:Action="http://cxf.apache.org/output">
+    </wsdl:output>
+      <wsdl:fault name="AddNumbersException" message="tns:AddNumbersException">
+    </wsdl:fault>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="AddNumbersImplServiceSoapBinding" type="tns:AddNumbersImpl">
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsaw:UsingAddressing wsdl:required="false" />
+    <wsdl:operation name="addNumbers2">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="addNumbers2">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="addNumbers2Response">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="addNumbers3">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="addNumbers3">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="addNumbers3Response">
+        <soap:body use="literal"/>
+      </wsdl:output>
+      <wsdl:fault name="AddNumbersException">
+        <soap:fault name="AddNumbersException" use="literal"/>
+      </wsdl:fault>
+    </wsdl:operation>
+    <wsdl:operation name="addNumbers">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="addNumbers">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="addNumbersResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+      <wsdl:fault name="AddNumbersException">
+        <soap:fault name="AddNumbersException" use="literal"/>
+      </wsdl:fault>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="AddNumbersImplService">
+    <wsdl:port name="AddNumbersImplPort" binding="tns:AddNumbersImplServiceSoapBinding">
+      <soap:address location="http://localhost:9090/AddNumbersImplPort"/>
+    </wsdl:port>
+  </wsdl:service>
 </wsdl:definitions>

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/add_numbers_expected.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl?rev=630382&r1=630381&r2=630382&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl (original)
+++ incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl Fri Feb 22 19:12:48 2008
@@ -1,80 +1,80 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<wsdl:definitions name="ImageSenderService" targetNamespace="http://fortest.tools.cxf.apache.org/" xmlns:tns="http://fortest.tools.cxf.apache.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
-  <wsdl:types>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://fortest.tools.cxf.apache.org/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://fortest.tools.cxf.apache.org/">
-    <xsd:element name="getImage" type="tns:getImage"/>
-    <xsd:complexType name="getImage">
-        <xsd:sequence>
-            <xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="getImageResponse" type="tns:getImageResponse"/>
-    <xsd:complexType name="getImageResponse">
-        <xsd:sequence>
-            <xsd:element xmlns:ns0="http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="return" ns0:expectedContentTypes="image/png" type="xsd:base64Binary"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="sendImage" type="tns:sendImage"/>
-    <xsd:complexType name="sendImage">
-        <xsd:sequence>
-	    <xsd:element xmlns:ns0="http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="arg0" ns0:expectedContentTypes="image/png" type="xsd:base64Binary"/>
-        </xsd:sequence>
-    </xsd:complexType>
-    <xsd:element name="sendImageResponse" type="tns:sendImageResponse"/>
-    <xsd:complexType name="sendImageResponse">
-        <xsd:sequence/>
-    </xsd:complexType>
-</xsd:schema>
-  </wsdl:types>
-  <wsdl:message name="sendImageResponse">
-    <wsdl:part name="parameters" element="tns:sendImageResponse">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:message name="sendImage">
-    <wsdl:part name="parameters" element="tns:sendImage">
-    </wsdl:part>
-  </wsdl:message>
-  <wsdl:portType name="ImageSender">
-    <wsdl:operation name="sendImage">
-      <wsdl:input name="sendImage" message="tns:sendImage">
-    </wsdl:input>
-      <wsdl:output name="sendImageResponse" message="tns:sendImageResponse">
-    </wsdl:output>
-    </wsdl:operation>
-  </wsdl:portType>
-  <wsdl:binding name="ImageSenderServiceSoapBinding" type="tns:ImageSender">
-    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-    <wsdl:operation name="sendImage">
-      <soap:operation soapAction="" style="document"/>
-      <wsdl:input name="sendImage">
-        <soap:body use="literal"/>
-      </wsdl:input>
-      <wsdl:output name="sendImageResponse">
-        <soap:body use="literal"/>
-      </wsdl:output>
-    </wsdl:operation>
-  </wsdl:binding>
-  <wsdl:service name="ImageSenderService">
-    <wsdl:port name="ImageSenderPort" binding="tns:ImageSenderServiceSoapBinding">
-      <soap:address location="http://localhost:9090/ImageSenderPort"/>
-    </wsdl:port>
-  </wsdl:service>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<wsdl:definitions name="ImageSenderService" targetNamespace="http://fortest.tools.cxf.apache.org/" xmlns:tns="http://fortest.tools.cxf.apache.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:types>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://fortest.tools.cxf.apache.org/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://fortest.tools.cxf.apache.org/">
+    <xsd:element name="getImage" type="tns:getImage"/>
+    <xsd:complexType name="getImage">
+        <xsd:sequence>
+            <xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="getImageResponse" type="tns:getImageResponse"/>
+    <xsd:complexType name="getImageResponse">
+        <xsd:sequence>
+            <xsd:element xmlns:ns0="http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="return" ns0:expectedContentTypes="image/png" type="xsd:base64Binary"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="sendImage" type="tns:sendImage"/>
+    <xsd:complexType name="sendImage">
+        <xsd:sequence>
+	    <xsd:element xmlns:ns0="http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="arg0" ns0:expectedContentTypes="image/png" type="xsd:base64Binary"/>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:element name="sendImageResponse" type="tns:sendImageResponse"/>
+    <xsd:complexType name="sendImageResponse">
+        <xsd:sequence/>
+    </xsd:complexType>
+</xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="sendImageResponse">
+    <wsdl:part name="parameters" element="tns:sendImageResponse">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="sendImage">
+    <wsdl:part name="parameters" element="tns:sendImage">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:portType name="ImageSender">
+    <wsdl:operation name="sendImage">
+      <wsdl:input name="sendImage" message="tns:sendImage">
+    </wsdl:input>
+      <wsdl:output name="sendImageResponse" message="tns:sendImageResponse">
+    </wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="ImageSenderServiceSoapBinding" type="tns:ImageSender">
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="sendImage">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="sendImage">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="sendImageResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="ImageSenderService">
+    <wsdl:port name="ImageSenderPort" binding="tns:ImageSenderServiceSoapBinding">
+      <soap:address location="http://localhost:9090/ImageSenderPort"/>
+    </wsdl:port>
+  </wsdl:service>
 </wsdl:definitions>

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/expected_send_image.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message