You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/03/08 22:15:35 UTC
svn commit: r1298586 -
/cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java
Author: dkulp
Date: Thu Mar 8 21:15:34 2012
New Revision: 1298586
URL: http://svn.apache.org/viewvc?rev=1298586&view=rev
Log:
Fix build failure
Modified:
cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java
Modified: cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java?rev=1298586&r1=1298585&r2=1298586&view=diff
==============================================================================
--- cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java (original)
+++ cxf/trunk/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java Thu Mar 8 21:15:34 2012
@@ -26,9 +26,9 @@ import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
+import java.util.NoSuchElementException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.xml.bind.JAXBElement;
@@ -260,7 +260,14 @@ public abstract class WsnBrokerTest exte
@Override
public Enumeration<URL> getResources(String name) throws IOException {
if ("META-INF/services/javax.xml.ws.spi.Provider".equals(name)) {
- return Collections.emptyEnumeration();
+ return new Enumeration<URL>() {
+ public boolean hasMoreElements() {
+ return false;
+ }
+ public URL nextElement() {
+ throw new NoSuchElementException();
+ }
+ };
}
return super.getResources(name);
}