From f6d611e496d13cdf1a2804f693d1140855b48e21 Mon Sep 17 00:00:00 2001 From: Max Lepikhin Date: Wed, 6 Nov 2024 11:13:11 -0700 Subject: [PATCH] spotless Signed-off-by: Max Lepikhin --- .../java/org/opensearch/ml/engine/utils/FileUtilsTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);