This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 85a21d77 Run the mdep-599 IT fixture on JUnit 5
85a21d77 is described below
commit 85a21d77833324f04d2e287b7fe84da4e28ce2d8
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Oct 31 13:14:18 2026 +0000
Run the mdep-599 IT fixture on JUnit 5
---
src/it/projects/mdep-599-analyze-java9/pom.xml | 12 +++---------
.../src/test/java/hello/HelloTest.java | 7 +++----
2 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/src/it/projects/mdep-599-analyze-java9/pom.xml
b/src/it/projects/mdep-599-analyze-java9/pom.xml
index cc5103af..adf88ae6 100644
--- a/src/it/projects/mdep-599-analyze-java9/pom.xml
+++ b/src/it/projects/mdep-599-analyze-java9/pom.xml
@@ -45,15 +45,9 @@
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- <version>1.3</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.3</version>
<scope>test</scope>
</dependency>
</dependencies>
diff --git
a/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java
b/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java
index 97dfb690..01e2c1bf 100644
--- a/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java
+++ b/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java
@@ -19,15 +19,14 @@ package hello;
* under the License.
*/
-import static org.hamcrest.CoreMatchers.is;
-import org.junit.Test;
-import static org.junit.Assert.*;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class HelloTest {
@Test
public void add() {
- assertThat(1 + 1, is(2));
+ assertEquals(2, 1 + 1);
}
}