cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf-fediz git commit: Fixing Metadata test
Date Wed, 20 Jul 2016 11:08:06 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.2.x-fixes 4af5680b0 -> c7ee8a223


Fixing Metadata test


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

Branch: refs/heads/1.2.x-fixes
Commit: f00f2b36b1352faa176d2e0eff6319e290792dfa
Parents: 4af5680
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jul 20 11:32:43 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jul 20 11:56:38 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/core/federation/FederationMetaDataTest.java   | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/f00f2b36/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationMetaDataTest.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationMetaDataTest.java
b/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationMetaDataTest.java
index 58b51c9..8ed7c05 100644
--- a/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationMetaDataTest.java
+++ b/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationMetaDataTest.java
@@ -108,10 +108,13 @@ public class FederationMetaDataTest {
         try {
             FedizContext config = loadConfig("ROOT_NO_KEY");
 
+            HttpServletRequest req = EasyMock.createMock(HttpServletRequest.class);
+            EasyMock.expect(req.getRequestURL()).andReturn(new StringBuffer(TEST_REQUEST_URL));
+            EasyMock.expect(req.getContextPath()).andReturn(CONTEXT_PATH);
+            EasyMock.replay(req);
+            
             FedizProcessor wfProc = new FederationProcessorImpl();
-            Document doc;
-           
-            doc = wfProc.getMetaData(null, config);
+            Document doc = wfProc.getMetaData(req, config);
             Assert.assertNull(doc);
             fail("Failure expected as signing store contains more than one certificate");
         } catch (ProcessingException ex) {


Mime
View raw message