diff options
author | Dejan Milisavljevic <130993898+dejan-milisavljevic-sonarsource@users.noreply.github.com> | 2024-02-22 15:15:56 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-02-22 20:02:53 +0000 |
commit | 02ba3396555695a7577f23486b1e4c0b3c67b978 (patch) | |
tree | 8156e6b229b4e4f130cfcdb60e11480055a1ef13 /server/sonar-webserver-pushapi | |
parent | c3503992fbe7d16e36f2fd60792d45226dfce7ee (diff) | |
download | sonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.tar.gz sonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.zip |
SONAR-21643 Convert some IT tests to Junit 5 (#10672)
Diffstat (limited to 'server/sonar-webserver-pushapi')
-rw-r--r-- | server/sonar-webserver-pushapi/build.gradle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-webserver-pushapi/build.gradle b/server/sonar-webserver-pushapi/build.gradle index d9aec037bc1..b9bfa53d5db 100644 --- a/server/sonar-webserver-pushapi/build.gradle +++ b/server/sonar-webserver-pushapi/build.gradle @@ -13,6 +13,7 @@ dependencies { testImplementation 'junit:junit' testImplementation 'org.assertj:assertj-core' + testImplementation 'org.junit.jupiter:junit-jupiter-api' testImplementation 'org.mockito:mockito-core' testImplementation 'org.awaitility:awaitility' testImplementation testFixtures(project(':server:sonar-webserver-ws')) @@ -20,4 +21,12 @@ dependencies { testFixturesApi project(':sonar-testing-harness') testFixturesCompileOnly testFixtures(project(':server:sonar-webserver-ws')) + + 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() } |