【发布时间】:2022-01-05 00:03:04
【问题描述】:
场景:在集成测试期间要测试的负面场景之下。当前测试用例因退出而失败并且未到达测试方法。
示例:
private void method1(int a){
try{
if(a == 0){
throw exception();
}else{
---
}
}catch(exceptionclass e){
System.exit(1);
}
}
【问题讨论】:
标签: junit5 system.exit