Browse Source

Supply Port Number to HtmlUnit WebClient

Josh Cummings 1 month ago
parent
commit
1eaac8b2d8

+ 1 - 1
servlet/spring-boot/java/saml2/saml-extension-federation/src/integTest/java/example/SamlExtensionFederationApplicationITests.java

@@ -73,7 +73,7 @@ public class SamlExtensionFederationApplicationITests {
 	}
 
 	private void performLogin() throws Exception {
-		HtmlPage login = this.webClient.getPage("/");
+		HtmlPage login = this.webClient.getPage("http://localhost:" + this.port);
 		login.getAnchors().get(0).click();
 		this.webClient.waitForBackgroundJavaScript(10000);
 		HtmlForm form = findForm(login);