具有实例化自定义对象的方法的单位测试
如何控制我的Junit 5测试的GetCaptrudCharacterResponse()的输出值?
示例实现:
class ToBeTestedClass{
private CaptureResponseWrapper co;
void triggeredMethod(HttpServletResponse s){
co = new CaptureResponseWrapper(s);
String s = co.getCapturedCharacterResponse();
}
}
}
当前Junit 5对PowerMock没有支持。
一下解决这个简单的问题?
抱歉,菜鸟在这里。
How do I control the output value of the getCapturedCharacterResponse() for my junit 5 testing?
Example implementation:
class ToBeTestedClass{
private CaptureResponseWrapper co;
void triggeredMethod(HttpServletResponse s){
co = new CaptureResponseWrapper(s);
String s = co.getCapturedCharacterResponse();
}
}
}
Currently junit 5 does not have support on powermock.
any suggestion or fix for this simple problem?
apologies noob here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论