Fix unit test

This commit is contained in:
Rene Pfeuffer
2019-12-05 07:43:26 +01:00
parent c4ed6f917d
commit 9ca2a57667

View File

@@ -63,7 +63,7 @@ class CopyOnWriteTest {
new FileOutputStream(unchangedOriginalFile.toFile()).write("this should be kept".getBytes());
assertThrows(
IOException.class,
StoreException.class,
() -> withTemporaryFile(
file -> {
throw new IOException("test");
@@ -79,7 +79,7 @@ class CopyOnWriteTest {
new FileOutputStream(backedUpFile.toFile()).write("this should be kept".getBytes());
assertThrows(
IOException.class,
StoreException.class,
() -> withTemporaryFile(
Files::delete,
backedUpFile));