From 9a6e3981c7a541303910771c96b64c1335c2b0a5 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 19 May 2026 16:15:28 +0200 Subject: [PATCH 1/2] Add jupiter to dependencyManagement --- its/plugin/tests/pom.xml | 19 ++++++++++--- .../java/com/sonar/it/java/suite/NewTest.java | 28 +++++++++++++++++++ pom.xml | 20 +++++++++++++ 3 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 its/plugin/tests/src/test/java/com/sonar/it/java/suite/NewTest.java diff --git a/its/plugin/tests/pom.xml b/its/plugin/tests/pom.xml index 7746fa75d69..667d17a2590 100644 --- a/its/plugin/tests/pom.xml +++ b/its/plugin/tests/pom.xml @@ -54,6 +54,21 @@ junit test + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.vintage + junit-vintage-engine + test + org.assertj assertj-core @@ -104,10 +119,6 @@ maven-surefire-plugin -server - - com/sonar/it/java/suite/*TestSuite.java - com/sonar/it/java/*Test.java - diff --git a/its/plugin/tests/src/test/java/com/sonar/it/java/suite/NewTest.java b/its/plugin/tests/src/test/java/com/sonar/it/java/suite/NewTest.java new file mode 100644 index 00000000000..df3e92f4450 --- /dev/null +++ b/its/plugin/tests/src/test/java/com/sonar/it/java/suite/NewTest.java @@ -0,0 +1,28 @@ +/* + * SonarQube Java + * Copyright (C) SonarSource Sàrl + * mailto:info AT sonarsource DOT com + * + * You can redistribute and/or modify this program under the terms of + * the Sonar Source-Available License Version 1, as published by SonarSource Sàrl. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the Sonar Source-Available License for more details. + * + * You should have received a copy of the Sonar Source-Available License + * along with this program; if not, see https://sonarsource.com/license/ssal/ + */ +package com.sonar.it.java.suite; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.fail; + +class NewTest { + @Test + void test() { + fail("fail() in 5."); + } +} diff --git a/pom.xml b/pom.xml index 0d14f365ebf..2cd1e0bf279 100644 --- a/pom.xml +++ b/pom.xml @@ -115,6 +115,8 @@ mockito-core-${mockito-core.version}.jar 1.7.30 + + 5.14.3 @@ -246,6 +248,24 @@ 4.13.2 test + + org.junit.jupiter + junit-jupiter-api + ${junit-jupiter.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit-jupiter.version} + test + + + org.junit.vintage + junit-vintage-engine + ${junit-jupiter.version} + test + org.mockito mockito-core From d6f257445181e7a0cd9a9c70f6bc3e03f65525a0 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 19 May 2026 17:02:11 +0200 Subject: [PATCH 2/2] Add --- its/plugin/tests/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/its/plugin/tests/pom.xml b/its/plugin/tests/pom.xml index 667d17a2590..575c38c55f8 100644 --- a/its/plugin/tests/pom.xml +++ b/its/plugin/tests/pom.xml @@ -119,6 +119,11 @@ maven-surefire-plugin -server + + com/sonar/it/java/suite/*TestSuite.java + com/sonar/it/java/suite/NewTest.java + com/sonar/it/java/*Test.java +