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
MOCK_CONTEXT报java.lang.NullPointerException #98
Comments
如果异常信息里有打印出错误堆栈,可以贴一下哦~ |
没有其他信息,就报了个空指针异常 |
是在什么地方使用了 |
我调试了一下在TestableClassTransformer类46行的transform方法出现的java/lang/reflect/InvocationTargetException |
下面这个代码就出现了
}
}
} |
在没有关联Mock容器的测试类里使用 感谢详细的代码例子👍 |
在使用mockito的自动注入注解@mock和@Injectable也会出现该npe的问题。 |
mockito的自动注入注解导致NPE可以贴一个大概的示例吗,直接代码理解起来会直观一点 |
参数化测试在 |
No description provided.
The text was updated successfully, but these errors were encountered: