Registry / testing / junit
library4.13.2javamavenunverified

JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.

<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT
J
junit
testingjavav4.13.2
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.Test

Basic JUnit 4 test case

import org.junit.Test; import static org.junit.Assert.*; public class ExampleTest { @Test public void testAddition() { assertEquals(4, 2 + 2); } }
Debug
Known issues
breakingJUnit 4 and JUnit 5 have different APIs; ensure you use the correct version.
fix
Use JUnit 5 (junit-jupiter) for new projects.
affects: 4.x
Upgrade
Version history
4.13.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
junit — mvn dependency:get junit · libregistry