You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
due to the fix of issue #2238, the returned stack trace is not complete when an exception is thrown from a spy inside another spy.
The problem appeared in released version 3.9.0 (specifically 3.8.14) and still exists in 4.1.0.
…e nested spies. Behaviour of the filtering redundant method calls from stacktrace was changed. Now it removes only lines that have the same method name and line number
Hi,
due to the fix of issue #2238, the returned stack trace is not complete when an exception is thrown from a spy inside another spy.
The problem appeared in released version 3.9.0 (specifically 3.8.14) and still exists in 4.1.0.
I wrote a unit test simulating this behavior:
https://github.com/holubec-petr/mockito/blob/stack_trace_clean_up/src/test/java/org/mockito/internal/creation/bytebuddy/InlineDelegateByteBuddyMockMakerTest.java#L272
Problem is that the method
MockMethodAdvice.hideRecursiveCall()
is too aggressive when removing stack trace frames.Check that
Note that some configuration are impossible to mock via Mockito
(same as any question on stackoverflow.com)
The text was updated successfully, but these errors were encountered: