Registry / testing / junit-jupiter-api

junit-jupiter-api

JSON →
library6.1.0javamavenunverified

Module 'junit-jupiter-api' of JUnit provides the core annotations and interfaces for writing tests in JUnit 5.

<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>6.1.0</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-JUPITER-API
J
junit-jupiter-api
testingjavav6.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Test
org.junit.jupiter.api.Test

A minimal JUnit 5 test using the @Test annotation.

import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class ExampleTest { @Test void testAddition() { assertEquals(2, 1 + 1); } }
Debug
Known issues
gotchaJUnit Jupiter API 5.x is not compatible with JUnit 4 runners or annotations without the Vintage engine.
fix
Add junit-jupiter-engine and junit-vintage-engine dependencies if you need to run JUnit 4 tests alongside JUnit 5.
affects: >=5.0.0
Upgrade
Version history
6.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
junit-jupiter-api — mvn dependency:get junit-jupiter-api · libregistry