Skip to content

Commit 24e1822

Browse files
committed
fix chcckstyle.
1 parent f216d13 commit 24e1822

12 files changed

+184
-176
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedInputStream.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.apache.hadoop.io.erasurecode.rawcoder.RawErasureDecoder;
4242
import org.apache.hadoop.test.GenericTestUtils;
4343
import org.junit.jupiter.api.AfterEach;
44-
import org.junit.jupiter.api.Assertions;
4544
import org.junit.jupiter.api.BeforeEach;
4645
import org.junit.jupiter.api.Test;
4746

@@ -216,7 +215,7 @@ public void testPread() throws Exception {
216215
int ret = in.read(startOffset, buf, 0, fileLen);
217216
assertEquals(remaining, ret);
218217
for (int i = 0; i < remaining; i++) {
219-
Assertions.assertEquals(expected[startOffset + i], buf[i],
218+
assertEquals(expected[startOffset + i], buf[i],
220219
"Byte at " + (startOffset + i) + " should be the " + "same");
221220
}
222221
}

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUpgrade.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import static org.apache.hadoop.test.GenericTestUtils.assertExists;
2525
import static org.junit.jupiter.api.Assertions.assertEquals;
2626
import static org.junit.jupiter.api.Assertions.assertFalse;
27+
import static org.junit.jupiter.api.Assertions.assertThrows;
2728
import static org.junit.jupiter.api.Assertions.assertTrue;
2829
import static org.junit.jupiter.api.Assertions.fail;
2930

@@ -52,7 +53,6 @@
5253
import org.junit.jupiter.api.Timeout;
5354

5455
import org.apache.hadoop.thirdparty.com.google.common.base.Joiner;
55-
import org.junit.jupiter.api.Assertions;
5656

5757
/**
5858
* This test ensures the appropriate response (successful or failure) from
@@ -442,7 +442,7 @@ private void deleteStorageFilesWithPrefix(String[] nameNodeDirs, String prefix)
442442

443443
@Test
444444
public void testUpgradeFromPreUpgradeLVFails() throws IOException {
445-
Assertions.assertThrows(IOException.class, () -> {
445+
assertThrows(IOException.class, () -> {
446446
Storage.checkVersionUpgradable(Storage.LAST_PRE_UPGRADE_LAYOUT_VERSION + 1);
447447
fail("Expected IOException is not thrown");
448448
});

0 commit comments

Comments
 (0)