Reviews and improves Java unit tests with JUnit 5, AssertJ, and Mockito best practices. Covers migration, parameterized tests, mocking, boundary conditions, and anti-pattern elimination.
Ships in 131-java-testing-unit-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review and improve Java unit tests using modern JUnit 5, AssertJ, and Mockito best practices.
What is covered in this Skill?
@Test, @BeforeEach, @AfterEach, @DisplayName, @Nested, @ParameterizedTestassertThat, assertThatThrownBy@ValueSource/@CsvSource/@MethodSource@Mock, @InjectMocks, MockitoExtensionassertThatThrownBy, exception messages@NullMarked, @NullableScope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any unit test changes, ensure the project compiles. If compilation fails, stop immediately — do not proceed until resolved. After applying improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw compile or mvn compile and stop immediately if compilation fails.
Read references/131-java-testing-unit-testing.md and identify modernization and quality gaps in current tests.
Implement or refactor tests using JUnit 5, AssertJ, Mockito, parameterization, and stronger boundary checks.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/131-java-testing-unit-testing.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unit-testing, junit, mockito, assertj, test-quality, java-testing
/131-java-testing-unit-testing:131-java-testing-unit-testingfrom 131-java-testing-unit-testing
npx claudepluginhub jabrena/plinth --plugin 131-java-testing-unit-testingOther plugins' skills for the same job