[java-identity-provider COMMIT] in /trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl: ExtractRemoteUs...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Sep 29 13:49:29 EDT 2015
Author: scantor
Date: Tue Sep 29 13:49:28 2015
New Revision: 7789
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7789&view=rev
Log:
Fix no-servlet tests.
Modified:
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractRemoteUserTest.java
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUserAgentIdentifierTest.java
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromBasicAuthTest.java
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromFormRequestTest.java
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractX509CertificateFromRequestTest.java
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractRemoteUserTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractRemoteUserTest.java?rev=7789&r1=7788&r2=7789&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractRemoteUserTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractRemoteUserTest.java Tue Sep 29 13:49:28 2015
@@ -56,6 +56,7 @@
}
@Test public void testNoServlet() throws Exception {
+ action.setHttpServletRequest(null);
action.initialize();
final Event event = action.execute(src);
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUserAgentIdentifierTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUserAgentIdentifierTest.java?rev=7789&r1=7788&r2=7789&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUserAgentIdentifierTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUserAgentIdentifierTest.java Tue Sep 29 13:49:28 2015
@@ -43,6 +43,9 @@
}
@Test public void testNoServlet() throws Exception {
+ action = new ExtractUserAgentIdentifier();
+ action.initialize();
+
final Event event = action.execute(src);
ActionTestingSupport.assertEvent(event, AuthnEventIds.NO_CREDENTIALS);
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromBasicAuthTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromBasicAuthTest.java?rev=7789&r1=7788&r2=7789&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromBasicAuthTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromBasicAuthTest.java Tue Sep 29 13:49:28 2015
@@ -45,6 +45,8 @@
}
@Test public void testNoServlet() throws Exception {
+ action = new ExtractUsernamePasswordFromBasicAuth();
+ action.initialize();
final Event event = action.execute(src);
ActionTestingSupport.assertEvent(event, AuthnEventIds.NO_CREDENTIALS);
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromFormRequestTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromFormRequestTest.java?rev=7789&r1=7788&r2=7789&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromFormRequestTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractUsernamePasswordFromFormRequestTest.java Tue Sep 29 13:49:28 2015
@@ -45,6 +45,10 @@
}
@Test public void testNoServlet() throws Exception {
+ action = new ExtractUsernamePasswordFromFormRequest();
+ action.setUsernameFieldName("j_username");
+ action.setPasswordFieldName("j_password");
+ action.initialize();
final Event event = action.execute(src);
ActionTestingSupport.assertEvent(event, AuthnEventIds.NO_CREDENTIALS);
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractX509CertificateFromRequestTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractX509CertificateFromRequestTest.java?rev=7789&r1=7788&r2=7789&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ExtractX509CertificateFromRequestTest.java (original)
[... 12 lines stripped ...]
More information about the commits
mailing list