junit
Installation
SKILL.md
JUnit 5
JUnit is the programmer-friendly testing framework for Java and the JVM. JUnit 5 is the current major version, composed of the JUnit Platform, JUnit Jupiter, and JUnit Vintage.
When to Use
- Java & JVM Ecosystem Testing: The gold standard testing framework (JUnit 5 / Jupiter) for Java, Kotlin, and Spring Boot applications.
- Parameterized & Dynamic Testing: Executing tests across CSV sources, method sources, and enum arguments.
- Lifecycle Extensions: Customizing test execution with JUnit 5 Extension model (
@ExtendWith). - Spring Boot Integration Testing: Pairing with
@SpringBootTestand MockMvc to test enterprise web applications.
Quick Start
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class CalculatorTest {