Documentation error: proceed for constructors and modifying arguments #177

dapperdanman opened this Issue May 28, 2015 · 1 comment


2 participants

The following URL it says:

Although not shown here, a call to proceed() can be also be done inside a "$init(Invocation inv, ...)"
mock method, to execute the real implementation of a mocked constructor. Additionally, for
mocked methods/constructors having parameters, we can replace the argument values passed to
the real implementation by passing the replacement values in a proceed(, , ...) call.

When I actually try it, I get:

java.lang.UnsupportedOperationException: Cannot replace arguments when proceeding into constructor

@rliesenfeld rliesenfeld added the bug label May 28, 2015

@rliesenfeld rliesenfeld self-assigned this May 28, 2015


This comment has been minimized.

Show comment
Hide comment

rliesenfeld May 28, 2015


Fixed, thanks.


rliesenfeld commented May 28, 2015

Fixed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment