Skip to content

Commit

Permalink
Correcting test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chicoine committed Oct 23, 2023
1 parent f6336cd commit 2b4ab88
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ public void testExecuteWithNonExistentDirectory() throws IOException {
}
}

@Test
public void testExecuteWithEmptyDirectory() throws IOException {
File emptyDir = tempFolder.newFolder("emptyDir");
String[] args = {"-ExtractMatBundle", emptyDir.getAbsolutePath(), "-dir"};

try {
operation.execute(args);
fail("Expected IllegalArgumentException was not thrown");
} catch (IllegalArgumentException e) {
assertEquals("The path specified with -dir is empty.", e.getMessage());
}
}

// @Test
// public void testExecuteWithNonJsonFile() throws IOException {
Expand Down Expand Up @@ -231,6 +219,6 @@ public void run() {
}
File[] files = emptyDir.listFiles();
assertNotNull(files);
assertEquals(8, files.length);
assertEquals(11, files.length);
}
}

0 comments on commit 2b4ab88

Please sign in to comment.