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
NullPointerException is thrown by mocked instance in Expectations in JMockit 1.12 #89
Comments
I will need an example test; otherwise I've no idea how to produce the NPE. |
public class TestClass Some test cases pass but some test cases throw exception. |
Running the example test, there is no NullPointerException for me... |
Yes. But in my other code there is NullPointerException. That is proprietary code. So I can not post that code. |
Thank you. This issue is resolved. But some other test cases started failing when I downloaded this 577b334 code. Cases which has result = new MyException() in Expectations() are not working properly. Method which I mocked to throw MyException is not throwing Exception. |
Mocked instance throws NullPointerException in Expectations() with JMockit 1.12 but it runs successfully with JMockit 1.11.
The text was updated successfully, but these errors were encountered: