【发布时间】:2015-07-28 09:45:27
【问题描述】:
我有一个类的私有 void 方法。我想使用 Jmockit 对其进行测试,有办法吗?
private void logRetry(IOException ex) {
if (log.isWarnEnabled()) {
log.warn("I/O exception (" + ex.getClass().getName() + ") caught when processing request : "
+ ex.getMessage());
}
if (log.isDebugEnabled()) {
log.debug(ex.getMessage(), ex);
}
log.info("Re-Trying the request on next available host");
}
【问题讨论】: