diff --git a/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java b/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java index d3f3985cc..f68e395c2 100644 --- a/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java +++ b/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java @@ -69,6 +69,7 @@ void setup() { this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc) .withDelegate(new LocalHostWebClient(this.environment)) .build(); + this.webClient.getOptions().setThrowExceptionOnScriptError(false); this.webClient.getCookieManager().clearCookies(); } diff --git a/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java b/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java index 4f6f1d214..ffe404ff8 100644 --- a/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java +++ b/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java @@ -68,6 +68,7 @@ void setup() { this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc) .withDelegate(new LocalHostWebClient(this.environment)) .build(); + this.webClient.getOptions().setThrowExceptionOnScriptError(false); this.webClient.getCookieManager().clearCookies(); }