cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject cxf git commit: Improved system test for [CXF-6267]: Refactor issuing and renewing SAML token
Date Fri, 10 Apr 2015 09:45:17 GMT
Repository: cxf
Updated Branches:
  refs/heads/master d88cd9e42 -> 64eee11a9


Improved system test for [CXF-6267]: Refactor issuing and renewing SAML token


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

Branch: refs/heads/master
Commit: 64eee11a907d724373f80e38db24b7474ede7164
Parents: d88cd9e
Author: Andrei Shakirin <andrei.shakirin@gmail.com>
Authored: Fri Apr 10 11:45:01 2015 +0200
Committer: Andrei Shakirin <andrei.shakirin@gmail.com>
Committed: Fri Apr 10 11:45:01 2015 +0200

----------------------------------------------------------------------
 .../apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/64eee11a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java
----------------------------------------------------------------------
diff --git a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java
b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java
index 310ffc6..456dc51 100644
--- a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java
+++ b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/stsclient/STSTokenHelperTest.java
@@ -41,7 +41,9 @@ import org.apache.cxf.systest.sts.deployment.STSServer;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.apache.cxf.ws.security.SecurityConstants;
 import org.apache.cxf.ws.security.policy.interceptors.STSTokenHelper;
+import org.apache.cxf.ws.security.tokenstore.SecurityToken;
 import org.apache.cxf.ws.security.trust.STSClient;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 
 /**
@@ -96,7 +98,8 @@ public class STSTokenHelperTest extends AbstractBusClientServerTestBase
{
         exchange.put(Endpoint.class, ep);
         
         STSTokenHelper.TokenRequestParams params = new STSTokenHelper.TokenRequestParams();
-        STSTokenHelper.getToken(message, params);
+        SecurityToken token = STSTokenHelper.getToken(message, params);
+        Assert.assertNotNull(token);
     }
 
     private STSClient initStsClient(Bus bus) {


Mime
View raw message