Documentation error: proceed for constructors and modifying arguments #177

Closed
dapperdanman opened this Issue May 28, 2015 · 1 comment

Comments

2 participants
@dapperdanman

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.

Show comment
Hide comment
@rliesenfeld

rliesenfeld May 28, 2015

Member

Fixed, thanks.

Member

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