cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: [CXF-5567] UPdate test case to pass
Date Tue, 18 Mar 2014 18:40:48 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5786063da -> d05e1a988


[CXF-5567] UPdate test case to pass


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/d05e1a98
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/d05e1a98
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/d05e1a98

Branch: refs/heads/master
Commit: d05e1a9889f308fc3e37ae40aece575c1421c273
Parents: 5786063
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue Mar 18 14:40:00 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Mar 18 14:40:00 2014 -0400

----------------------------------------------------------------------
 .../cxf/systest/sts/symmetric/SymmetricBindingTest.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d05e1a98/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/symmetric/SymmetricBindingTest.java
----------------------------------------------------------------------
diff --git a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/symmetric/SymmetricBindingTest.java
b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/symmetric/SymmetricBindingTest.java
index b478361..9b232a5 100644
--- a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/symmetric/SymmetricBindingTest.java
+++ b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/symmetric/SymmetricBindingTest.java
@@ -32,6 +32,7 @@ import javax.xml.transform.dom.DOMSource;
 import javax.xml.ws.BindingProvider;
 import javax.xml.ws.Dispatch;
 import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
 
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -50,6 +51,7 @@ import org.apache.cxf.ws.security.SecurityConstants;
 import org.apache.cxf.ws.security.trust.STSClient;
 import org.apache.wss4j.dom.WSConstants;
 import org.example.contract.doubleit.DoubleItPortType;
+
 import org.junit.BeforeClass;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized.Parameters;
@@ -285,9 +287,7 @@ public class SymmetricBindingTest extends AbstractBusClientServerTestBase
{
         bus.shutdown(true);
     }
     
-    // TODO See CXF-5567
     @org.junit.Test
-    @org.junit.Ignore
     public void testUsernameTokenSAML1Dispatch() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
@@ -302,7 +302,7 @@ public class SymmetricBindingTest extends AbstractBusClientServerTestBase
{
         QName portQName = new QName(NAMESPACE, "DoubleItSymmetricSAML1Port");
        
         Dispatch<DOMSource> dispatch = 
-            service.createDispatch(portQName, DOMSource.class, Service.Mode.PAYLOAD);
+            service.createDispatch(portQName, DOMSource.class, Service.Mode.PAYLOAD, new
AddressingFeature());
         updateAddressPort(dispatch, test.getPort());
         
         // Setup STSClient
@@ -316,6 +316,8 @@ public class SymmetricBindingTest extends AbstractBusClientServerTestBase
{
         // Make a successful request
         Client client = ((DispatchImpl<DOMSource>) dispatch).getClient();
         client.getRequestContext().put("ws-security.sts.client", stsClient);
+        //client.getRequestContext().put("find.dispatch.operation", Boolean.TRUE);
+        
         
         if (test.isStreaming()) {
             client.getRequestContext().put(SecurityConstants.ENABLE_STREAMING_SECURITY, "true");


Mime
View raw message