From de835797e31a0fce2616569aad2b6064b0923adf Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 15 Apr 2023 21:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=20Lombok=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/EnumerationTests.java | 6 ++++-- .../xyz/zhouxy/plusone/commons/util/NumberUtilTest.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/java/xyz/zhouxy/plusone/commons/EnumerationTests.java b/src/test/java/xyz/zhouxy/plusone/commons/EnumerationTests.java index 79ba044..1aaf835 100644 --- a/src/test/java/xyz/zhouxy/plusone/commons/EnumerationTests.java +++ b/src/test/java/xyz/zhouxy/plusone/commons/EnumerationTests.java @@ -3,17 +3,19 @@ package xyz.zhouxy.plusone.commons; import static org.junit.jupiter.api.Assertions.assertTrue; import com.google.common.collect.Lists; -import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import xyz.zhouxy.plusone.commons.util.Enumeration; import javax.annotation.Nonnull; import java.util.Collection; -@Slf4j class EnumerationTests { + private static final Logger log = LoggerFactory.getLogger(EnumerationTests.class); + @Test void testEnumeration() { assertTrue(EntityStatus.AVAILABLE == EntityStatus.of(0)); diff --git a/src/test/java/xyz/zhouxy/plusone/commons/util/NumberUtilTest.java b/src/test/java/xyz/zhouxy/plusone/commons/util/NumberUtilTest.java index 3c42b12..1b71e08 100644 --- a/src/test/java/xyz/zhouxy/plusone/commons/util/NumberUtilTest.java +++ b/src/test/java/xyz/zhouxy/plusone/commons/util/NumberUtilTest.java @@ -3,11 +3,13 @@ package xyz.zhouxy.plusone.commons.util; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; -@Slf4j class NumberUtilTest { + private static final Logger log = LoggerFactory.getLogger(NumberUtilTest.class); + @Test void testSum() { long result = 0;