1
我有一個類的私有無效方法。我想用Jmockit測試它,有沒有一種方法?使用jmockit測試private void method
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");
}