Skip to content

Commit 52c6ba4

Browse files
committed
replace IllegalStateException with IOException in checkTestResources
1 parent 8bd4ff0 commit 52c6ba4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

jabkit/src/test/java/org/jabref/cli/ArgumentProcessorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ArgumentProcessorTest {
5454
private CommandLine commandLine;
5555

5656
@BeforeAll
57-
static void checkTestResources() {
57+
static void checkTestResources() throws IOException {
5858
String[] required = new String[] {"origin.bib", "paper.aux", "ArgumentProcessorTestExportMatches.bib"};
5959
StringBuilder missing = new StringBuilder();
6060
for (String res : required) {
@@ -66,7 +66,7 @@ static void checkTestResources() {
6666
}
6767
}
6868
if (missing.length() > 0) {
69-
throw new IllegalStateException("Required test resources missing from classpath: " + missing);
69+
throw new IOException("Required test resources missing from classpath: " + missing);
7070
}
7171
}
7272

@@ -89,7 +89,7 @@ void auxImport(@TempDir Path tempDir) throws IOException {
8989
try (InputStream originIs = ArgumentProcessorTest.class.getResourceAsStream("origin.bib");
9090
InputStream auxIs = ArgumentProcessorTest.class.getResourceAsStream("paper.aux")) {
9191
if (originIs == null || auxIs == null) {
92-
throw new IllegalStateException("Required test resources are missing from classpath");
92+
throw new IOException("Required test resources are missing from classpath");
9393
}
9494

9595
Path fullBib = tempDir.resolve("origin.bib");
Submodule csl-styles updated 104 files

0 commit comments

Comments
 (0)