[java-idp-integration-tests COMMIT] /trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegration...
noreply at shibboleth.net
noreply at shibboleth.net
Fri Dec 19 17:16:21 EST 2014
Author: tzeller
Date: Fri Dec 19 17:16:21 2014
New Revision: 43
URL: http://svn.shibboleth.net/view/java-idp-integration-tests?rev=43&view=rev
Log:
Enable validation of SAML responses when using FirefoxDriver.
Modified:
trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegrationWithConsentTest.java
Modified: trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegrationWithConsentTest.java
URL: http://svn.shibboleth.net/view/java-idp-integration-tests/trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegrationWithConsentTest.java?rev=43&r1=42&r2=43&view=diff
==============================================================================
--- trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegrationWithConsentTest.java (original)
+++ trunk/src/test/java/net/shibboleth/idp/test/saml2/SAML2UnsolicitedSSOIntegrationWithConsentTest.java Fri Dec 19 17:16:21 2014
@@ -311,7 +311,11 @@
* @throws Exception
*/
protected void validateResponse() throws Exception {
- validator.validateResponse(unmarshallResponse(driver.getPageSource()));
+ if (driver instanceof FirefoxDriver) {
+ validator.validateResponse(unmarshallResponse(driver.findElement(By.tagName("body")).getText()));
+ } else {
+ validator.validateResponse(unmarshallResponse(driver.getPageSource()));
+ }
}
/**
More information about the commits
mailing list