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
Version of JMockit that was used:
1.49 (also in master branch at 5c6a2df)
Description of the problem or enhancement request:
According to the documentation for the "$advice" method,
If defined, this fake method will handle executions of each and every method in the target class (or classes, when applying the fake over unspecified classes from a base type).
However, if the target class contains a private method, the tests fail when creating a new mock, with an IllegalArgumentException ("Unsupported fake for private method.....").
I created a pull request that adds a validation for this issue on the FakingEverythingTest: #702
In this case, I think private methods should either be supported or ignored.
The text was updated successfully, but these errors were encountered:
Version of JMockit that was used:
1.49 (also in master branch at 5c6a2df)
Description of the problem or enhancement request:
According to the documentation for the "$advice" method,
However, if the target class contains a private method, the tests fail when creating a new mock, with an
IllegalArgumentException
("Unsupported fake for private method.....").I created a pull request that adds a validation for this issue on the
FakingEverythingTest
: #702In this case, I think private methods should either be supported or ignored.
The text was updated successfully, but these errors were encountered: