Test filesystem api

* Invariant tests for the File interface
* Invariant tests for reading / writing files
** Due to missing features currently ignoring CryptoFileSystem
This commit is contained in:
Markus Kreusch
2016-01-28 23:26:49 +01:00
parent bfe0a50205
commit 56fcb99248
7 changed files with 351 additions and 10 deletions
@@ -46,6 +46,9 @@ class InMemoryNode implements Node {
@Override
public Instant lastModified() {
if (!exists()) {
throw new UncheckedIOException(new IOException("File does not exist"));
}
return lastModified;
}