MXUnit injectMethod not working if calls to methods being replaced are not "this" scoped

Description

Using MXUnit compatibility and `injectMethod`, the injected method is not called by the SUT when running tests unless the call to the injected method is scoped with "this.". This is not necessary in MXUnit.

In other words, if the SUT does not scope the call to the injected method with "this.", the original method will be called instead of the injected one.

Test case attached.

Attachments

1

Gliffy Diagrams

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

Sentry

Created February 12, 2015 at 12:20 PM
Updated September 29, 2015 at 7:32 PM
Resolved September 29, 2015 at 7:32 PM