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