cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1023973 - /cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
Date Mon, 18 Oct 2010 20:04:34 GMT
Author: dkulp
Date: Mon Oct 18 20:04:34 2010
New Revision: 1023973

URL: http://svn.apache.org/viewvc?rev=1023973&view=rev
Log:
CLose conduits to cleanup JMS connections

Modified:
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java?rev=1023973&r1=1023972&r2=1023973&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
(original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
Mon Oct 18 20:04:34 2010
@@ -31,6 +31,7 @@ import org.apache.cxf.factory_pattern.Nu
 import org.apache.cxf.factory_pattern.NumberFactory;
 import org.apache.cxf.factory_pattern.NumberFactoryService;
 import org.apache.cxf.factory_pattern.NumberService;
+import org.apache.cxf.frontend.ClientProxy;
 import org.apache.cxf.jaxws.ServiceImpl;
 import org.apache.cxf.jaxws.support.ServiceDelegateAccessor;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
@@ -102,9 +103,14 @@ public class MultiplexClientServerTest e
         Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
         assertTrue("20 is even", num.isEven().isEven());
         
+        ClientProxy.getClient(num).getConduit().close();
+        
         W3CEndpointReference numberTwentyThreeRef = factory.create("23");
         num =  (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
         assertTrue("23 is not even", !num.isEven().isEven());
+        
+        ClientProxy.getClient(num).getConduit().close();
+        ClientProxy.getClient(factory).getConduit().close();
     }
     
     @Test
@@ -133,10 +139,14 @@ public class MultiplexClientServerTest e
             assertTrue("match on exception message " + expected.getMessage(),
                        expected.getMessage().indexOf("999") != -1);
         }
+        ClientProxy.getClient(num).getConduit().close();
         
         ref = factory.create("37");
         assertNotNull("reference", ref);
         num =  (Number)serviceImpl.getPort(ref, Number.class);
         assertTrue("37 is not even", !num.isEven().isEven());
+        
+        ClientProxy.getClient(num).getConduit().close();
+        ClientProxy.getClient(factory).getConduit().close();
     }
 }



Mime
View raw message