You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2008/05/15 17:28:34 UTC
svn commit: r656700 -
/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
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);
}