Parcourir la source

Add test dependencies

Issue gh-17880
Joe Grandja il y a 3 semaines
Parent
commit
a620113264

+ 1 - 0
dependencies/spring-security-dependencies.gradle

@@ -60,6 +60,7 @@ dependencies {
 		api libs.org.hamcrest
 		api libs.org.hibernate.orm.hibernate.core
 		api libs.org.hsqldb
+		api libs.com.jayway.jsonpath.json.path
 		api libs.org.apereo.cas.client.cas.client.core
 		api libs.org.opensaml.opensaml5.saml.api
 		api libs.org.opensaml.opensaml5.saml.impl

+ 1 - 0
gradle/libs.versions.toml

@@ -24,6 +24,7 @@ com-nimbusds-oauth2-oidc-sdk = "com.nimbusds:oauth2-oidc-sdk:11.26.1"
 com-squareup-okhttp3-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "com-squareup-okhttp3" }
 com-squareup-okhttp3-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "com-squareup-okhttp3" }
 com-unboundid-unboundid-ldapsdk = "com.unboundid:unboundid-ldapsdk:7.0.3"
+com-jayway-jsonpath-json-path = "com.jayway.jsonpath:json-path:2.9.0"
 commons-collections = "commons-collections:commons-collections:3.2.2"
 io-micrometer-context-propagation = "io.micrometer:context-propagation:1.1.3"
 io-micrometer-micrometer-observation = "io.micrometer:micrometer-observation:1.14.11"

+ 13 - 0
oauth2/oauth2-authorization-server/spring-security-oauth2-authorization-server.gradle

@@ -17,5 +17,18 @@ dependencies {
 	optional "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
 	optional "org.springframework:spring-jdbc"
 
+	testImplementation project(":spring-security-test")
+	testImplementation "org.springframework:spring-webmvc"
+	testImplementation "org.bouncycastle:bcpkix-jdk18on"
+	testImplementation "org.bouncycastle:bcprov-jdk18on"
+	testImplementation "org.junit.jupiter:junit-jupiter"
+	testImplementation "org.assertj:assertj-core"
+	testImplementation "org.mockito:mockito-core"
+	testImplementation "com.jayway.jsonpath:json-path"
+	testImplementation "com.squareup.okhttp3:mockwebserver"
+
+	testRuntimeOnly "org.hsqldb:hsqldb"
+	testRuntimeOnly "org.junit.platform:junit-platform-launcher"
+
 	provided "jakarta.servlet:jakarta.servlet-api"
 }