cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-fediz git commit: Fixing tests
Date Sat, 26 Mar 2016 19:45:04 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master e5492d868 -> f5e1bb825


Fixing tests


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

Branch: refs/heads/master
Commit: f5e1bb82593558fd76a8bef3d9ae71575d6c3623
Parents: e5492d8
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Sat Mar 26 19:44:53 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Sat Mar 26 19:44:53 2016 +0000

----------------------------------------------------------------------
 .../test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/f5e1bb82/systests/samlsso/src/test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java
----------------------------------------------------------------------
diff --git a/systests/samlsso/src/test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java
b/systests/samlsso/src/test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java
index cfd7caa..aa974be 100644
--- a/systests/samlsso/src/test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java
+++ b/systests/samlsso/src/test/java/org/apache/cxf/fediz/systests/idp/IdpTest.java
@@ -19,7 +19,6 @@
 
 package org.apache.cxf.fediz.systests.idp;
 
-import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
@@ -232,7 +231,7 @@ public class IdpTest {
         
         // Decode + verify response
         byte[] deflatedToken = Base64Utility.decode(samlResponse);
-        InputStream inputStream = new ByteArrayInputStream(deflatedToken);
+        InputStream inputStream = new DeflateEncoderDecoder().inflateToken(deflatedToken);
         
         Document responseDoc = StaxUtils.read(new InputStreamReader(inputStream, "UTF-8"));
         
@@ -485,7 +484,7 @@ public class IdpTest {
         
         // Decode + verify response
         byte[] deflatedToken = Base64Utility.decode(samlResponse);
-        InputStream inputStream = new ByteArrayInputStream(deflatedToken);
+        InputStream inputStream = new DeflateEncoderDecoder().inflateToken(deflatedToken);
         
         Document responseDoc = StaxUtils.read(new InputStreamReader(inputStream, "UTF-8"));
         


Mime
View raw message