aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core/build.gradle
diff options
context:
space:
mode:
authorDejan Milisavljevic <130993898+dejan-milisavljevic-sonarsource@users.noreply.github.com>2024-02-22 15:15:56 +0100
committersonartech <sonartech@sonarsource.com>2024-02-22 20:02:53 +0000
commit02ba3396555695a7577f23486b1e4c0b3c67b978 (patch)
tree8156e6b229b4e4f130cfcdb60e11480055a1ef13 /server/sonar-webserver-core/build.gradle
parentc3503992fbe7d16e36f2fd60792d45226dfce7ee (diff)
downloadsonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.tar.gz
sonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.zip
SONAR-21643 Convert some IT tests to Junit 5 (#10672)
Diffstat (limited to 'server/sonar-webserver-core/build.gradle')
-rw-r--r--server/sonar-webserver-core/build.gradle9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-webserver-core/build.gradle b/server/sonar-webserver-core/build.gradle
index 562fda20b89..4ea552a5129 100644
--- a/server/sonar-webserver-core/build.gradle
+++ b/server/sonar-webserver-core/build.gradle
@@ -68,6 +68,7 @@ dependencies {
testImplementation 'org.eclipse.jetty:jetty-server'
testImplementation 'org.eclipse.jetty:jetty-servlet'
testImplementation 'org.hamcrest:hamcrest-all'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
testImplementation 'org.subethamail:subethasmtp'
@@ -77,5 +78,13 @@ dependencies {
testImplementation testFixtures(project(':server:sonar-webserver-ws'))
testImplementation project(':sonar-testing-harness')
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
+ testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
+
runtimeOnly 'io.jsonwebtoken:jjwt-jackson'
}
+
+test {
+ // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
+ useJUnitPlatform()
+}