Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation error: proceed for constructors and modifying arguments #177

dapperdanman opened this issue May 28, 2015 · 1 comment


Copy link

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 self-assigned this May 28, 2015
Copy link

Fixed, thanks.

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

No branches or pull requests

2 participants