Modified: 
cxf/sandbox/oauth_1.0a/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: 
http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?rev=979862&r1=979861&r2=979862&view=diff
==============================================================================
--- 
cxf/sandbox/oauth_1.0a/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
 (original)
+++ 
cxf/sandbox/oauth_1.0a/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
 Tue Jul 27 20:46:55 2010
@@ -43,10 +43,11 @@ import org.apache.cxf.tools.wsdlto.WSDLT
 import 
org.apache.cxf.tools.wsdlto.frontend.jaxws.validator.UniqueBodyValidator;
 import org.apache.cxf.wsdl11.WSDLRuntimeException;
 
+import org.eclipse.jetty.server.Server;
+import org.eclipse.jetty.server.handler.ResourceHandler;
+
 import org.junit.Test;
 
-import org.mortbay.jetty.Server;
-import org.mortbay.jetty.handler.ResourceHandler;
 
 
 public class CodeGenBugTest extends AbstractCodeGenTest {
@@ -464,7 +465,8 @@ public class CodeGenBugTest extends Abst
 
         ResourceHandler reshandler = new ResourceHandler();
         reshandler.setResourceBase(getLocation("/wsdl2java_wsdl/"));
-        server.addHandler(reshandler);
+        // this is the only handler we're supposed to need, so we don't need 
to 'add' it.
+        server.setHandler(reshandler);
         server.start();
         env.put(ToolConstants.CFG_WSDLURL, 
"http://localhost:8585/hello_world.wsdl";);
         env.put(ToolConstants.CFG_BINDING, 
"http://localhost:8585/remote-hello_world_binding.xsd";);


Reply via email to