cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r586375 - in /incubator/cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/common/model/ common/src/test/java/org/apache/cxf/tools/common/model/ wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/
Date Fri, 19 Oct 2007 11:05:09 GMT
Author: mmao
Date: Fri Oct 19 04:05:07 2007
New Revision: 586375

URL: http://svn.apache.org/viewvc?rev=586375&view=rev
Log:
* Remove the old JavaAnnotation
* Add the test missed in the last commit


Removed:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaAnnotation.java
    incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/common/model/JavaAnnotationTest.java
Modified:
    incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java

Modified: incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java?rev=586375&r1=586374&r2=586375&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Fri Oct 19 04:05:07 2007
@@ -1140,9 +1140,13 @@
         processor.setContext(env);
         processor.execute();
 
-//         File sei = new File(output, "type_substitution/server/CarDealer.java");
-//         assertTrue(output.exists());
-//         String contents = getStringFromFile(sei);
-//         assertTrue(contents.indexOf("@XmlSeeAlso({ObjectFactory.class})") != -1);
+        File sei = new File(output, "com/example/AddNumbersPortType.java");
+        assertTrue(sei.exists());
+        String contents = getStringFromFile(sei).replace("  ", " ");
+        String expected = "@Action(input = \"3in\", output = \"3out\", "
+            + "fault = {@FaultAction(className = AddNumbersFault_Exception.class, value =
\"3fault\")})";
+        assertTrue(contents.indexOf("import javax.xml.ws.Action;") != -1);
+        assertTrue(contents.indexOf("import javax.xml.ws.FaultAction;") != -1);
+        assertTrue(contents.indexOf(expected) != -1);
     }
 }



Mime
View raw message