[java-identity-provider] branch maint-3.4 updated: Tie servlet request and context mock objects together correctly.
Scott Cantor
cantor.2 at osu.edu
Thu Sep 26 11:24:58 EDT 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-3.4
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=b70095303c87e7b818fb917aa6a5812916b20906
The following commit(s) were added to refs/heads/maint-3.4 by this push:
new b700953 Tie servlet request and context mock objects together correctly.
b700953 is described below
commit b70095303c87e7b818fb917aa6a5812916b20906
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Sep 24 15:16:31 2019 -0400
Tie servlet request and context mock objects together correctly.
---
.../test/java/net/shibboleth/idp/profile/RequestContextBuilder.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/idp-profile-api/src/test/java/net/shibboleth/idp/profile/RequestContextBuilder.java b/idp-profile-api/src/test/java/net/shibboleth/idp/profile/RequestContextBuilder.java
index f144579..5a425cd 100644
--- a/idp-profile-api/src/test/java/net/shibboleth/idp/profile/RequestContextBuilder.java
+++ b/idp-profile-api/src/test/java/net/shibboleth/idp/profile/RequestContextBuilder.java
@@ -311,7 +311,9 @@ public class RequestContextBuilder {
}
if (httpRequest == null) {
- httpRequest = new MockHttpServletRequest();
+ final MockHttpServletRequest hdr = new MockHttpServletRequest(servletContext);
+ hdr.addHeader("Accept-Language", Locale.ENGLISH.getLanguage());
+ httpRequest = hdr;
}
if (httpResponse == null) {
@@ -464,4 +466,4 @@ public class RequestContextBuilder {
@Nonnull final Map<String, ProfileConfiguration> rpProfileConfigs) {
return rpProfileConfigs.values().iterator().next();
}
-}
\ No newline at end of file
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list