From d1f690257a77d34371e8f5b1d9f49501bc68769e Mon Sep 17 00:00:00 2001 From: Pierre POUCHIN Date: Mon, 28 Mar 2022 16:55:14 +0200 Subject: [PATCH] Removed unused import --- .../java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java b/src/test/java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java index d329e30..6e9a248 100644 --- a/src/test/java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java +++ b/src/test/java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java @@ -16,7 +16,6 @@ package fr.igred.ij.plugin; -import ij.IJ; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -75,10 +74,10 @@ void testRun() throws IOException { String expected = String.format("The macro extensions are designed to be used within a macro.%n" + "Instructions on doing so will be printed to the Log window.%n"); try (InputStream is = ext.getClass().getResourceAsStream("/helper.md")) { - if(is != null) { + if (is != null) { ByteArrayOutputStream result = new ByteArrayOutputStream(); - byte[] buffer = new byte[2 ^ 10]; - int length = is.read(buffer); + byte[] buffer = new byte[2 ^ 10]; + int length = is.read(buffer); while (length != -1) { result.write(buffer, 0, length); length = is.read(buffer); @@ -173,7 +172,7 @@ void testEndSudoError() { @Test void testListInvalidArgs() { final double datasetId = 2; - Object[] args = {"dataset", null, datasetId}; + Object[] args = {"dataset", null, datasetId}; ext.handleExtension("list", args); String expected = "Second argument should not be null."; assertEquals(expected, outContent.toString().trim());