cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1334309 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java
Date Sat, 05 May 2012 02:59:08 GMT
Author: dkulp
Date: Sat May  5 02:59:08 2012
New Revision: 1334309

URL: http://svn.apache.org/viewvc?rev=1334309&view=rev
Log:
WADL params could be in any order depending on how javac compiled them
and the vm loaded them.  Account for that in the test

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java?rev=1334309&r1=1334308&r2=1334309&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorTest.java
Sat May  5 02:59:08 2012
@@ -519,7 +519,14 @@ public class WadlGeneratorTest extends A
         assertEquals(number, params.length);
         
         for (int i = 0; i < number; i++) {
-            checkParameter(paramsEls.get(i), params[i]);
+            boolean found = false;
+            for (int y = 0; y < params.length; y++) {
+                if (params[y].getName().equals(paramsEls.get(i).getAttribute("name"))) {
+                    checkParameter(paramsEls.get(i), params[y]);
+                    found = true;
+                }
+            }
+            assertTrue(found);
         }
     }
     



Mime
View raw message