Skip to content

Commit

Permalink
Removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Mar 28, 2022
1 parent 5410126 commit d1f6902
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/fr/igred/ij/plugin/OMEROExtensionErrorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit d1f6902

Please sign in to comment.