public void testExiting() {
XLogger logger = XLoggerFactory.getXLogger("UnitTest");
logger.exit();
assertEquals(Integer.valueOf(0), logger.exit(0));
assertEquals(Boolean.FALSE, logger.exit(false));
assertEquals(3, listAppender.list.size());
verify((LoggingEvent) listAppender.list.get(0), "exit");
verify((LoggingEvent) listAppender.list.get(1), "exit with (0)");
verify((LoggingEvent) listAppender.list.get(2), "exit with (false)");
}
XLoggerTest.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:bartleby
作者:
评论列表
文章目录