mirror of
https://github.com/smyalygames/kahoot-challenge-2025.git
synced 2025-05-18 13:14:16 +02:00
feat(test): improved invalid path test
This commit is contained in:
parent
09404b84d0
commit
cfe6a78750
@ -55,7 +55,7 @@ class ReadFileTest {
|
||||
@Test
|
||||
@DisplayName("Testing for an invalid path")
|
||||
void invalidPath() {
|
||||
Path invalid = Path.of("//invalid.txt");
|
||||
Path invalid = Path.of("/d|r</in>va|id.txt");
|
||||
|
||||
assertThrowsExactly(RuntimeException.class, () -> ReadFile.open(invalid));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user