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
项目里会有一些静态常量,在项目启动是通过静态初始化取到值,虽然我瞎琢磨,通过mock up来改值,但是不同分支(比如needMockValue为1或2)我得new不同的mockup,有什么更方便的方法吗? @Mock public void $clinit() { Deencapsulation.setField(Config.class, "needMockValue", "newVaule"); }
@Mock public void $clinit() { Deencapsulation.setField(Config.class, "needMockValue", "newVaule"); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
项目里会有一些静态常量,在项目启动是通过静态初始化取到值,虽然我瞎琢磨,通过mock up来改值,但是不同分支(比如needMockValue为1或2)我得new不同的mockup,有什么更方便的方法吗?
@Mock public void $clinit() { Deencapsulation.setField(Config.class, "needMockValue", "newVaule"); }
The text was updated successfully, but these errors were encountered: