【发布时间】:2021-07-26 22:23:45
【问题描述】:
这是我试图涵盖的代码的 sn-p,特别是 catch 块。
JSONObject bodyObject = new JSONObject();
String body = null;
try{
body = bodyObject.put(DecisionTreeConstants.EDGE_ACCOUNT_STATUS, processStatusPretty).toString();
} catch (JSONException e) {
LOGGER.debug(" ");
}
【问题讨论】:
-
你是在测试异常是被抛出还是测试异常的处理?
标签: java json exception junit code-coverage