Author: ema
Date: Thu Mar 22 23:38:40 2007
New Revision: 521600
URL: http://svn.apache.org/viewvc?view=rev&rev=521600
Log:
Added test case for CXF-188
Added:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
(with props)
Modified:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToWSDLProcessorTest.java
Added:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java?view=auto&rev=521600
==============================================================================
---
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
(added)
+++
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
Thu Mar 22 23:38:40 2007
@@ -0,0 +1,30 @@
+/**
+ * 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.fortest.cxf188;
+
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
[EMAIL PROTECTED](style = javax.jws.soap.SOAPBinding.Style.RPC,
+ use = javax.jws.soap.SOAPBinding.Use.LITERAL)
[EMAIL PROTECTED](portName = "DemoPort", targetNamespace =
"http://apache.org/cxf",
+ serviceName = "DemoService", name = "Demo")
+interface Demo {
+ void sayHi();
+}
Propchange:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/fortest/cxf188/Demo.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified:
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToWSDLProcessorTest.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToWSDLProcessorTest.java?view=diff&rev=521600&r1=521599&r2=521600
==============================================================================
---
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToWSDLProcessorTest.java
(original)
+++
incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToWSDLProcessorTest.java
Thu Mar 22 23:38:40 2007
@@ -415,4 +415,21 @@
fail("Should not happen other exception " + e.getMessage());
}
}
+
+ public void testCXF188() throws Exception {
+ env.put(ToolConstants.CFG_OUTPUTFILE, output.getPath() +
"/cxf188.wsdl");
+ env.put(ToolConstants.CFG_CLASSNAME,
"org.apache.cxf.tools.fortest.cxf188.Demo");
+ j2wProcessor.setEnvironment(env);
+ j2wProcessor.process();
+
+ File wsdlFile = new File(output, "cxf188.wsdl");
+ assertTrue("Fail to generate wsdl file", wsdlFile.exists());
+
+ env.put(ToolConstants.CFG_COMPILE, "compile");
+ env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+ env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() +
"/classes");
+ env.put(ToolConstants.CFG_WSDLURL, output.getCanonicalPath() +
"/cxf188.wsdl");
+ wj2Processor.setContext(env);
+ wj2Processor.execute();
+ }
}