Remove unnecessary blank lines

pull/602/head
chen.ma 2 years ago
parent ddd8ec224c
commit 93bec5411f

@ -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());
}
}

@ -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));
}
}

Loading…
Cancel
Save