You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by mm...@apache.org on 2007/10/19 13:05:09 UTC

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/

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);
     }
 }