This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new 41193b8 Use JUnit 5
41193b8 is described below
commit 41193b8ae972c094adffca1b24e18a15c0f30ad2
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Oct 28 22:25:58 2024 +0100
Use JUnit 5
---
pom.xml | 5 ++---
.../org/apache/maven/dist/tools/site/SiteReportTest.java | 10 +++-------
.../org/apache/maven/dist/tools/source/PatternTest.java | 14 +++++---------
3 files changed, 10 insertions(+), 19 deletions(-)
diff --git a/pom.xml b/pom.xml
index f7cc049..f757920 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,9 +167,8 @@
<version>1.129</version>
</dependency>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/src/test/java/org/apache/maven/dist/tools/site/SiteReportTest.java
b/src/test/java/org/apache/maven/dist/tools/site/SiteReportTest.java
index 9ebd8d2..778899c 100644
--- a/src/test/java/org/apache/maven/dist/tools/site/SiteReportTest.java
+++ b/src/test/java/org/apache/maven/dist/tools/site/SiteReportTest.java
@@ -23,18 +23,14 @@ import java.io.InputStream;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* SiteReportTest
*/
-public class SiteReportTest {
- /**
- * SiteReportTest
- */
- public SiteReportTest() {}
+class SiteReportTest {
private String readDocument(String resource) throws IOException {
try (InputStream in = getClass().getResourceAsStream(resource)) {
diff --git a/src/test/java/org/apache/maven/dist/tools/source/PatternTest.java
b/src/test/java/org/apache/maven/dist/tools/source/PatternTest.java
index fac582f..f5112d5 100644
--- a/src/test/java/org/apache/maven/dist/tools/source/PatternTest.java
+++ b/src/test/java/org/apache/maven/dist/tools/source/PatternTest.java
@@ -18,27 +18,23 @@
*/
package org.apache.maven.dist.tools.source;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* PatternTest
*
* @author skygo
*/
-public class PatternTest {
- /**
- * Test Pattern
- */
- public PatternTest() {}
+class PatternTest {
/**
* Test of getGroupId method, of class ConfigurationLineInfo.
*/
@Test
- public void testGetGroupId() {
+ void testGetGroupId() {
String q =
DistCheckSourceReleaseReport.getSourceReleasePattern("doxia");
assertTrue("doxia-1.4-source-release.zip.asc".matches(q));