Java testing with JUnit 5 and Mockito: test lifecycle, mocking, and integration test patterns
75
63%
Does it follow best practices?
Impact
92%
1.14xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/testing-java/SKILL.mdUnit tests with Mockito mocking patterns
MockitoExtension annotation
100%
100%
@Mock annotation used
100%
100%
No Mockito.mock() calls
100%
100%
@InjectMocks used
0%
100%
verify() used
100%
100%
@Captor used
0%
100%
Test method naming
0%
100%
Arrange comment
100%
100%
Act & Assert comment
100%
100%
@Test annotation
100%
100%
Parameterized tests for edge-case coverage
@ParameterizedTest annotation
100%
100%
Input source annotation
100%
100%
Multiple whitespace variants
100%
100%
JUnit 5 @Test annotation
100%
100%
Test method naming
0%
58%
Arrange comment
0%
0%
Act & Assert comment
0%
0%
@ExtendWith(MockitoExtension) if mocks present
100%
100%
No Mockito.mock() calls
100%
100%
Integration test setup with JaCoCo coverage
@SpringBootTest or @DataJpaTest
100%
100%
H2 in-memory database
100%
100%
H2 dependency scope
100%
100%
Integration test source set
100%
100%
Separate Gradle task for integration tests
100%
100%
JaCoCo plugin applied
100%
100%
jacocoTestReport task
100%
100%
jacocoTestCoverageVerification task
100%
100%
80% coverage minimum
100%
100%
No Mockito.mock() in integration test
100%
100%
c0b2e4b
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.