We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82018c commit c95a403Copy full SHA for c95a403
src/test/java/org/cryptomator/cryptofs/DirectoryIdBackupTest.java
@@ -97,6 +97,13 @@ public void beforeEachRead() throws IOException {
97
decChannel = mock(DecryptingReadableByteChannel.class);
98
}
99
100
+ @Test
101
+ @DisplayName("If the given path is not a cipherContentDir, throw IllegalArgumentException")
102
+ public void wrongPath() throws IOException {
103
+ var dirIdBackupSpy = spy(dirIdBackup);
104
+ Assertions.assertThrows(IllegalArgumentException.class, () -> dirIdBackupSpy.read(testDir));
105
+ }
106
+
107
@Test
108
@DisplayName("If the directory id is longer than 36 characters, throw IllegalStateException")
109
public void contentLongerThan36Chars() throws IOException {
0 commit comments