From 859220169863fa64cf494c2c7235841bab1545d3 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Mon, 13 Sep 2021 20:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E5=B9=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/core/dataformat/DateFormatTest.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java b/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java index ec256213..27494f29 100644 --- a/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java +++ b/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java @@ -7,19 +7,18 @@ import java.util.Locale; import com.alibaba.easyexcel.test.util.TestFileUtil; import com.alibaba.excel.EasyExcel; +import lombok.extern.slf4j.Slf4j; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - /** * @author Jiaju Zhuang */ @FixMethodOrder(MethodSorters.NAME_ASCENDING) +@Slf4j public class DateFormatTest { private static File file07; @@ -48,10 +47,10 @@ public class DateFormatTest { EasyExcel.read(file, DateFormatData.class, null).locale(Locale.CHINA).sheet().doReadSync(); for (DateFormatData data : list) { if (data.getDateStringCn() != null && !data.getDateStringCn().equals(data.getDate())) { - LOGGER.info("date:cn:{},{}", data.getDateStringCn(), data.getDate()); + log.info("date:cn:{},{}", data.getDateStringCn(), data.getDate()); } if (data.getNumberStringCn() != null && !data.getNumberStringCn().equals(data.getNumber())) { - LOGGER.info("number:cn{},{}", data.getNumberStringCn(), data.getNumber()); + log.info("number:cn{},{}", data.getNumberStringCn(), data.getNumber()); } } for (DateFormatData data : list) { @@ -65,10 +64,10 @@ public class DateFormatTest { EasyExcel.read(file, DateFormatData.class, null).locale(Locale.US).sheet().doReadSync(); for (DateFormatData data : list) { if (data.getDateStringUs() != null && !data.getDateStringUs().equals(data.getDate())) { - LOGGER.info("date:us:{},{}", data.getDateStringUs(), data.getDate()); + log.info("date:us:{},{}", data.getDateStringUs(), data.getDate()); } if (data.getNumberStringUs() != null && !data.getNumberStringUs().equals(data.getNumber())) { - LOGGER.info("number:us{},{}", data.getNumberStringUs(), data.getNumber()); + log.info("number:us{},{}", data.getNumberStringUs(), data.getNumber()); } } for (DateFormatData data : list) {