Skip to content

Commit beccbf7

Browse files
committed
NO-JIRA: OSGI Test to use JUnit 5. Add Sonar exclusion.
1 parent 807d914 commit beccbf7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

osgi-itests/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<artifactId>rosette-api</artifactId>
1717
<version>1.23.1-SNAPSHOT</version>
1818
</dependency>
19+
<dependency>
20+
<groupId>org.junit.jupiter</groupId>
21+
<artifactId>junit-jupiter-api</artifactId>
22+
<version>${junit.version}</version>
23+
<scope>provided</scope>
24+
</dependency>
1925

2026
<!-- The goal of this test is to make sure rosette-api resolves successfully in OSGi with given dependencies. -->
2127
<!-- A failure in this test indicates changes in the minimum runtime requirements of the bundle. -->

osgi-itests/src/main/java/com/basistech/rosette/osgi/it/RosetteApiOsgiTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
package com.basistech.rosette.osgi.it;
1818

1919
import com.basistech.rosette.api.HttpRosetteAPI;
20-
import org.junit.Test;
20+
import org.junit.jupiter.api.Test;
2121

22-
import static org.junit.Assert.assertNotNull;
22+
import static org.junit.jupiter.api.Assertions.assertNotNull;
2323

24+
@SuppressWarnings("java:S5960") // This is a test class.
2425
public class RosetteApiOsgiTest {
2526
@Test
2627
public void smokeTest() {

0 commit comments

Comments
 (0)