mockito icon indicating copy to clipboard operation
mockito copied to clipboard

Avoid duplicate verbose logs across verification callbacks

Open bhawnapannu2701 opened this issue 3 months ago • 1 comments

While working on PR #1803 to stop duplicate verbose logs during verification, we discovered that the current approach is brittle because it depends on method timing and naming.

Proposal I’d like to discuss a design that avoids duplication across listeners entirely. Instead of detecting verification calls by name/timing, we could: – Track invocation events and mark those triggered by verification callbacks. – Ensure the VerboseMockInvocationLogger is called only for real method invocations.

Goal Arrive at a stable solution for de-duplicating verbose logging across listeners without relying on brittle timing checks.

Please advise on feasibility or alternative directions before we start implementing.

bhawnapannu2701 avatar Sep 26 '25 07:09 bhawnapannu2701

We’re a small university group contributing to Mockito as part of a software engineering course project. This issue looks clear and manageable, and we’d like to take it if it’s still available. Please let us know if it’s okay for us to proceed — thanks!

DuNothing avatar Oct 18 '25 12:10 DuNothing