aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-api
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-api
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-api')
-rw-r--r--server/sonar-webserver-api/build.gradle9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-webserver-api/build.gradle b/server/sonar-webserver-api/build.gradle
index 8bec2704447..219be3e9683 100644
--- a/server/sonar-webserver-api/build.gradle
+++ b/server/sonar-webserver-api/build.gradle
@@ -34,6 +34,7 @@ dependencies {
testImplementation 'com.google.code.findbugs:jsr305'
testImplementation 'com.tngtech.java:junit-dataprovider'
testImplementation 'javax.servlet:javax.servlet-api'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
testImplementation testFixtures(project(':server:sonar-server-common'))
@@ -42,4 +43,12 @@ dependencies {
testFixturesApi 'junit:junit'
testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
+
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
+ testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
+}
+
+test {
+ // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
+ useJUnitPlatform()
}