JUnit tests with a case list first
Forces an explicit test case plan before any test code is written.
BeginnerCOMMUNITY ANALYSISJavaJUnitMockito
Generate JUnit 5 tests for the attached class. Step 1: list the test cases you intend to write — happy path, boundary values, null/empty input, error handling, concurrency if relevant. Stop. Step 2 (after I confirm): write the tests using the project's existing conventions and Mockito for collaborators. Step 3: list behaviour you could not test and why.
Use Case
Raising real coverage on a business-critical class.
Expected Result
A case list, then tests, then a list of untestable behaviour.
Related recipe