cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sea...@apache.org
Subject svn commit: r656700 - /cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Date Thu, 15 May 2008 15:28:34 GMT
Author: seanoc
Date: Thu May 15 08:28:34 2008
New Revision: 656700

URL: http://svn.apache.org/viewvc?rev=656700&view=rev
Log:
fix failing test assertion

Modified:
    cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java

Modified: cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?rev=656700&r1=656699&r2=656700&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
(original)
+++ cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Thu May 15 08:28:34 2008
@@ -951,8 +951,18 @@
         List<String> results2 = FileUtils.readLines(new File(output.getCanonicalPath(),

             "org/mypkg/SoapService.java")); 
         
-        assertTrue(results2.contains(" * this is package javadoc"));
-        assertTrue(results2.contains(" * this is class javadoc"));
+        boolean match1 = false;
+        boolean match2 = false;
+        for (String str : results2) {
+            if (str.contains("package javadoc")) {
+                match1 = true;
+            }
+            if (str.contains("class javadoc")) {
+                match2 = true;
+            }
+        }
+        assertTrue(match1);
+        assertTrue(match2);
         
     }
     



Mime
View raw message