-
Notifications
You must be signed in to change notification settings - Fork 2
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
Both are executed when Mock Static void method #355
Comments
@hellsof the interaction needs to be added to the then block. Otherwise you are still executing the method and shifting it. Same goes for non static methods. |
There is no such problem after trying the non-static method, can you give a correct sample code, thanks. |
@hellsof I didn't get the problem you were talking about. But now I understand. You are absolutely right there is a bug in the interception code. |
Yes, an exception should not be thrown here, but it is thrown when it is actually executed, causing the above test case to pass the test. |
Perhaps the following example can better demonstrate this problem:
|
Signed-off-by: Joke de Buhr <joke@xckk.de>
Signed-off-by: Joke de Buhr <joke@xckk.de>
Signed-off-by: Joke de Buhr <joke@xckk.de>
@hellsof The problem should be fixed now. |
The following example will pass the test:
The text was updated successfully, but these errors were encountered: