cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1410515 - /cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
Date Fri, 16 Nov 2012 18:03:48 GMT
Author: dkulp
Date: Fri Nov 16 18:03:48 2012
New Revision: 1410515

URL: http://svn.apache.org/viewvc?rev=1410515&view=rev
Log:
Fix another IBM JDK random failure.

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

Modified: cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java?rev=1410515&r1=1410514&r2=1410515&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
(original)
+++ cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
Fri Nov 16 18:03:48 2012
@@ -21,6 +21,7 @@ package org.apache.cxf.tools.wsdlto.jaxw
 
 import java.io.File;
 import java.net.URISyntaxException;
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
@@ -32,6 +33,7 @@ import org.apache.cxf.tools.common.Front
 import org.apache.cxf.tools.common.ProcessorTestBase;
 import org.apache.cxf.tools.common.ToolConstants;
 import org.apache.cxf.tools.common.ToolContext;
+import org.apache.cxf.tools.common.model.JavaException;
 import org.apache.cxf.tools.common.model.JavaInterface;
 import org.apache.cxf.tools.common.model.JavaMethod;
 import org.apache.cxf.tools.common.model.JavaModel;
@@ -188,8 +190,13 @@ public class JAXWSContainerTest extends 
             assertTrue(methodSame);
             
             assertEquals(2, m1.getExceptions().size());
-            assertEquals("BadRecordLitFault", m1.getExceptions().get(0).getName());
-            assertEquals("NoSuchCodeLitFault", m1.getExceptions().get(1).getName());
+            List<String> names = new ArrayList<String>();
+            for (JavaException exc : m1.getExceptions()) {
+                names.add(exc.getName());
+            }
+            
+            assertTrue("BadRecordLitFault", names.contains("BadRecordLitFault"));
+            assertTrue("NoSuchCodeLitFault", names.contains("NoSuchCodeLitFault"));
 
             String address = null;
 



Mime
View raw message