File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/org/cryptomator/cryptofs Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1616
1717import java .io .IOException ;
1818import java .nio .file .FileSystemException ;
19+ import java .nio .file .NoSuchFileException ;
1920import java .nio .file .Path ;
2021
2122import static org .mockito .ArgumentMatchers .any ;
@@ -76,7 +77,7 @@ public void validatePath() throws IOException {
7677 @ DisplayName ("If the dirId backup file does not exists, throw UnsupportedOperationException" )
7778 public void notExistingDirIdFile () throws IOException {
7879 var ciphertextNode = tmpPath .resolve ("toDecrypt.c9r" );
79- when (dirIdBackup .read (ciphertextNode )).thenThrow (UnsupportedOperationException .class );
80+ when (dirIdBackup .read (ciphertextNode )).thenThrow (NoSuchFileException .class );
8081
8182 Assertions .assertThrows (UnsupportedOperationException .class , () -> testObjSpy .decryptFilenameInternal (ciphertextNode ));
8283 }
You can’t perform that action at this time.
0 commit comments