您好我正在尝试运行jacoco代码覆盖并让所有2个分支错过错误,我的代码覆盖率始终为0.0%我尝试为下面的代码编写测试用例...
public void someSchedulerJob(){
if (true) {
log.info("Run Job");
try {
//few method calls which needs to be run every day
} catch (Exceptionexp) {
log.error("Exception doing scheduler job "+ exp);
}
}else{
log.info("Disabled Scheduler Job");
}
}
如何使用junit 100%
为此方法生成代码覆盖率报告此致