cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1437066 - /cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java
Date Tue, 22 Jan 2013 17:41:01 GMT
Author: ay
Date: Tue Jan 22 17:41:00 2013
New Revision: 1437066

URL: http://svn.apache.org/viewvc?rev=1437066&view=rev
Log:
fix the sporadic connection hanging issue for systests/ws-specs

Modified:
    cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java

Modified: cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java?rev=1437066&r1=1437065&r2=1437066&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java
(original)
+++ cxf/branches/2.6.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_feature/WSAFaultToClientServerTest.java
Tue Jan 22 17:41:00 2013
@@ -19,6 +19,7 @@
 package org.apache.cxf.systest.ws.addr_feature;
 
 import java.io.ByteArrayOutputStream;
+import java.io.Closeable;
 import java.net.URL;
 import java.util.Map;
 
@@ -115,6 +116,7 @@ public class WSAFaultToClientServerTest 
                    new String(input.toByteArray()).indexOf("http://www.w3.org/2005/08/addressing")
> -1);       
         assertTrue("Fault deatil is expected", 
                    new String(input.toByteArray()).indexOf("Negative numbers cant be added")
> -1);
+        ((Closeable)port).close();        
     }
      
     private AddNumbersPortType getTwoWayPort() throws Exception {



Mime
View raw message