Skip to content

Commit 2558dfb

Browse files
committed
[test] Try no such file exception
1 parent 3032795 commit 2558dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/ibatis/io/ExternalResourcesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void testcopyExternalResource_emptyStringAsFile() {
7777
badFile = Path.of(" ").toFile();
7878
ExternalResources.copyExternalResource(badFile, destFile);
7979
} catch (Exception e) {
80-
assertTrue(e instanceof InvalidPathException);
80+
assertTrue(e instanceof InvalidPathException || e instanceof NoSuchFileException);
8181
}
8282

8383
}

0 commit comments

Comments
 (0)