We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public class Tool { public void doIt() { } }
import mockit.Invocation; import mockit.Mock; import mockit.MockUp; public class ToolMock extends MockUp<Tool>{ @Mock public void doIt(Invocation e){ } }
mocks=test.ToolMock
import mockit.NonStrictExpectations; import org.junit.Test; public class Test1 { @Test public void test1() { new NonStrictExpectations(Tool.class) {{ }}; } @Test public void test2() { new Tool().doIt(); } }
java.lang.NullPointerException at test.Tool.doIt(Tool.java) at test.Test1.test2(Test1.java:16)
Also all consequent tests getting the same NullPointerException, if Tool class get used.
The text was updated successfully, but these errors were encountered:
Well spotted, thanks! It will be fixed for release 1.12.
Sorry, something went wrong.
f869b3a
Merge pull request jmockit#62 from hazendaz/renovate/spring-core
e36035d
Update spring core to v5.3.23
rliesenfeld
No branches or pull requests
Reproduction steps:
Create following files:
Run Test1.
Result:
Also all consequent tests getting the same NullPointerException, if Tool class get used.
The text was updated successfully, but these errors were encountered: