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

Closed
dapperdanman opened this issue May 28, 2015 · 1 comment
Closed
Assignees
Labels
bug

Comments

@dapperdanman
Copy link

@dapperdanman dapperdanman commented May 28, 2015

The following URL http://jmockit.org/tutorial/StateBasedTesting.html#proceed 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
@rliesenfeld

This comment has been minimized.

Copy link
Member

@rliesenfeld 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
2 participants
You can’t perform that action at this time.