Переглянути джерело

Update Dependencies for Saml2 Login Sample

Josh Cummings 3 роки тому
батько
коміт
c2f34ad1de

+ 4 - 4
servlet/spring-boot/java/saml2/login/build.gradle

@@ -14,9 +14,9 @@ repositories {
 
 dependencies {
 	constraints {
-		implementation "org.opensaml:opensaml-core:4.1.1"
-		implementation "org.opensaml:opensaml-saml-api:4.1.1"
-		implementation "org.opensaml:opensaml-saml-impl:4.1.1"
+		implementation "org.opensaml:opensaml-core:4.2.0"
+		implementation "org.opensaml:opensaml-saml-api:4.2.0"
+		implementation "org.opensaml:opensaml-saml-impl:4.2.0"
 	}
 	implementation 'org.springframework.boot:spring-boot-starter-security'
 	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
@@ -24,7 +24,7 @@ dependencies {
 	implementation 'org.springframework.security:spring-security-saml2-service-provider'
 	implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
 
-	testImplementation 'net.sourceforge.htmlunit:htmlunit:2.44.0'
+	testImplementation 'net.sourceforge.htmlunit:htmlunit'
 	testImplementation 'org.springframework.boot:spring-boot-starter-test'
 	testImplementation 'org.springframework.security:spring-security-test'
 	testImplementation 'org.awaitility:awaitility:4.2.0'

+ 2 - 2
servlet/spring-boot/java/saml2/login/src/integTest/java/example/Saml2LoginApplicationITests.java

@@ -94,7 +94,7 @@ public class Saml2LoginApplicationITests {
 		void authenticationAttemptWhenValidThenShowsUserEmailAddress() throws Exception {
 			performLogin("one");
 			HtmlPage home = (HtmlPage) Saml2LoginApplicationITests.this.webClient.getCurrentWindow().getEnclosedPage();
-			assertThat(home.asText()).contains("You're email address is testuser@spring.security.saml");
+			assertThat(home.asNormalizedText()).contains("You're email address is testuser@spring.security.saml");
 		}
 
 		@Test
@@ -116,7 +116,7 @@ public class Saml2LoginApplicationITests {
 		void authenticationAttemptWhenValidThenShowsUserEmailAddress() throws Exception {
 			performLogin("two");
 			HtmlPage home = (HtmlPage) Saml2LoginApplicationITests.this.webClient.getCurrentWindow().getEnclosedPage();
-			assertThat(home.asText()).contains("You're email address is testuser@spring.security.saml");
+			assertThat(home.asNormalizedText()).contains("You're email address is testuser@spring.security.saml");
 		}
 
 		@Test