Generate unit and integration tests

java-testskillsetup L20
limited-grisaille833/claude-java-plugins
What it does

Generate unit and integration tests

Best for

Writing comprehensive tests for untested Java code; covers happy path, edge cases, exception handling with mocking guidance.

Inputs
  • · Java class or method
Outputs
  • · Generated test class (JUnit 5)
  • · Test methods with mocking setup (Mockito)
  • · Comments on test strategy
Requires
  • · JUnit 5
  • · Mockito (optional)
Preconditions

Java code provided; test framework configured in project

Failure modes
  • · Cannot detect all edge cases automatically
  • · Mocking complex stateful objects may be challenging