One test per question, each writing and asserting its own transcript under output/. Covers lifecycle, extensions, parameterized and dynamic tests, mocks vs spies, verification, strict stubs, static and constructor mocking, and flaky tests. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CifR2BE7PBvRy5hT8TS9oz
6 lines
264 B
Plaintext
6 lines
264 B
Plaintext
when(gw.charge("a", anyLong())) -> InvalidUseOfMatchersException
|
|
Invalid use of argument matchers!
|
|
2 matchers expected, 1 recorded:
|
|
-> at lab.jm.D_MockitoCoreTest.lambda$q21_matchersAndCaptor$0(D_MockitoCoreTest.java:103)
|
|
ArgumentCaptor saw account=zoe cents=1234
|