You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by em...@apache.org on 2007/12/14 07:37:35 UTC
svn commit: r604113 -
/incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Author: ema
Date: Thu Dec 13 22:37:34 2007
New Revision: 604113
URL: http://svn.apache.org/viewvc?rev=604113&view=rev
Log:
To fix the Jetty throws InterruptedException sometimes
Modified:
incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Modified: incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?rev=604113&r1=604112&r2=604113&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java (original)
+++ incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java Thu Dec 13 22:37:34 2007
@@ -452,6 +452,7 @@
@Test
public void testHelloWorldExternalBindingFile() throws Exception {
Server server = new Server(8585);
+
ResourceHandler reshandler = new ResourceHandler();
reshandler.setResourceBase(getLocation("/wsdl2java_wsdl/"));
server.addHandler(reshandler);
@@ -460,7 +461,12 @@
env.put(ToolConstants.CFG_BINDING, "http://localhost:8585/remote-hello_world_binding.xsd");
processor.setContext(env);
processor.execute();
- server.stop();
+ try {
+ reshandler.stop();
+ } finally {
+ server.stop();
+ server.destroy();
+ }
}