update to junit5

This commit is contained in:
Looly
2023-03-31 02:56:36 +08:00
parent 210fed9621
commit c14390dd6d
507 changed files with 8903 additions and 8847 deletions

View File

@@ -9,7 +9,7 @@ import cn.hutool.log.dialect.log4j2.Log4j2LogFactory;
import cn.hutool.log.dialect.slf4j.Slf4jLogFactory;
import cn.hutool.log.dialect.tinylog.TinyLog2Factory;
import cn.hutool.log.dialect.tinylog.TinyLogFactory;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* 日志门面单元测试

View File

@@ -1,8 +1,8 @@
package cn.hutool.log;
import cn.hutool.log.level.Level;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* 日志门面单元测试
@@ -25,7 +25,7 @@ public class LogTest {
* 兼容slf4j日志消息格式测试即第二个参数是异常对象时正常输出异常信息
*/
@Test
@Ignore
@Disabled
public void logWithExceptionTest() {
final Log log = LogFactory.get();
final Exception e = new Exception("test Exception");

View File

@@ -1,7 +1,7 @@
package cn.hutool.log;
import cn.hutool.log.dialect.logtube.LogTubeLogFactory;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class LogTubeTest {

View File

@@ -2,7 +2,7 @@ package cn.hutool.log;
import cn.hutool.log.dialect.console.ConsoleColorLogFactory;
import cn.hutool.log.dialect.console.ConsoleLogFactory;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class StaticLogTest {
@Test