If you want to make use of the JUnit 5 dependency with your Java project to write your test cases, you will need to add the below relevant dependency XML code in your pom.xml file.
Add in pom.xml file:<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.3</version>
<scope>test</scope>
</dependency>
Note: Make sure to load maven changes.

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!