diff --git a/ml-algorithms/src/test/java/org/opensearch/ml/engine/utils/FileUtilsTest.java b/ml-algorithms/src/test/java/org/opensearch/ml/engine/utils/FileUtilsTest.java index 3959aeffdf..16138fea8b 100644 --- a/ml-algorithms/src/test/java/org/opensearch/ml/engine/utils/FileUtilsTest.java +++ b/ml-algorithms/src/test/java/org/opensearch/ml/engine/utils/FileUtilsTest.java @@ -45,16 +45,14 @@ public void testSplitFileIntoChunks() throws Exception { // Split file into chunks. int chunkSize = 325; - List chunkPaths = FileUtils - .splitFileIntoChunks(file, tempDir.newFolder().toPath(), chunkSize); + List chunkPaths = FileUtils.splitFileIntoChunks(file, tempDir.newFolder().toPath(), chunkSize); // Verify. int currentPosition = 0; for (String chunkPath : chunkPaths) { byte[] chunk = Files.readAllBytes(Path.of(chunkPath)); assertTrue("Chunk size", currentPosition + chunk.length <= data.length); - Assert.assertArrayEquals(Arrays - .copyOfRange(data, currentPosition, currentPosition + chunk.length), chunk); + Assert.assertArrayEquals(Arrays.copyOfRange(data, currentPosition, currentPosition + chunk.length), chunk); currentPosition += chunk.length; } assertEquals(currentPosition, data.length);