cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1506518 - in /cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching: CachingTest.java ServerCachingTest.java
Date Wed, 24 Jul 2013 12:25:36 GMT
Author: coheigea
Date: Wed Jul 24 12:25:36 2013
New Revision: 1506518

URL: http://svn.apache.org/r1506518
Log:
Making some tests thread-safe

Modified:
    cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/CachingTest.java
    cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/ServerCachingTest.java

Modified: cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/CachingTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/CachingTest.java?rev=1506518&r1=1506517&r2=1506518&view=diff
==============================================================================
--- cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/CachingTest.java
(original)
+++ cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/CachingTest.java
Wed Jul 24 12:25:36 2013
@@ -74,9 +74,7 @@ public class CachingTest extends Abstrac
         stopAllServers();
     }
 
-    // @Ignore'd due to continually failing on Jenkins build
     @org.junit.Test
-    @org.junit.Ignore
     public void testSTSClientCaching() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
@@ -91,6 +89,7 @@ public class CachingTest extends Abstrac
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1Port");
         DoubleItPortType port = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port).getRequestContext().put("thread.local.request.context", "true");
         updateAddressPort(port, PORT);
         
         // Make a successful invocation
@@ -135,6 +134,7 @@ public class CachingTest extends Abstrac
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1Port2");
         DoubleItPortType port = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port).getRequestContext().put("thread.local.request.context", "true");
         updateAddressPort(port, PORT);
         
         // Disable storing tokens per-proxy

Modified: cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/ServerCachingTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/ServerCachingTest.java?rev=1506518&r1=1506517&r2=1506518&view=diff
==============================================================================
--- cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/ServerCachingTest.java
(original)
+++ cxf/trunk/services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/caching/ServerCachingTest.java
Wed Jul 24 12:25:36 2013
@@ -101,6 +101,7 @@ public class ServerCachingTest extends A
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1AlternativePort");
         DoubleItPortType port = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port).getRequestContext().put("thread.local.request.context", "true");
         updateAddressPort(port, PORT);
         
         // Make an initial successful invocation
@@ -152,6 +153,7 @@ public class ServerCachingTest extends A
         QName portQName = new QName(NAMESPACE, "DoubleItTransportUTPort");
         DoubleItPortType transportUTPort = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)transportUTPort).getRequestContext().put("thread.local.request.context",
"true");
         updateAddressPort(transportUTPort, PORT);
         
         // Make an initial successful invocation
@@ -190,6 +192,7 @@ public class ServerCachingTest extends A
         QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricBSTPort");
         DoubleItPortType bstPort = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)bstPort).getRequestContext().put("thread.local.request.context",
"true");
         updateAddressPort(bstPort, PORT2);
         
         // Make an initial successful invocation



Mime
View raw message