From 93bec5411ff6bc5c7074994f364a7f663550efae Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Sat, 27 Aug 2022 22:33:36 +0800 Subject: [PATCH] Remove unnecessary blank lines --- .../java/cn/hippo4j/common/toolkit/ConditionUtilTest.java | 4 ---- .../src/test/java/cn/hippo4j/common/toolkit/FileUtilTest.java | 3 --- 2 files changed, 7 deletions(-) diff --git a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/ConditionUtilTest.java b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/ConditionUtilTest.java index 42067e0f..523bd5d1 100644 --- a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/ConditionUtilTest.java +++ b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/ConditionUtilTest.java @@ -26,19 +26,15 @@ public class ConditionUtilTest { @Test public void assertCondition() { - // init consumer AtomicBoolean checkValue = new AtomicBoolean(false); NoArgsConsumer trueConsumer = () -> checkValue.set(true); NoArgsConsumer falseConsumer = () -> checkValue.set(false); - // test trueConsumer run ConditionUtil.condition(true, trueConsumer, falseConsumer); Assert.isTrue(checkValue.get()); - // test falseConsumer run ConditionUtil.condition(false, trueConsumer, falseConsumer); Assert.isTrue(!checkValue.get()); - } } diff --git a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/FileUtilTest.java b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/FileUtilTest.java index f5474a1a..783a1953 100644 --- a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/FileUtilTest.java +++ b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/FileUtilTest.java @@ -23,14 +23,11 @@ public class FileUtilTest { @Test public void assertReadUtf8String() { - String testText = "abcd简体繁体\uD83D\uDE04\uD83D\uDD25& *\n" + "second line\n" + "empty line next\n"; - String testFilePath = "classpath:/test/test_utf8.txt"; String contentByFileUtil = FileUtil.readUtf8String(testFilePath); Assert.isTrue(testText.equals(contentByFileUtil)); - } }