Log inaccessible file in RandomAccessDataFile

Closes gh-11401
This commit is contained in:
Douglas Cardoso
2017-12-22 14:54:10 +01:00
committed by Stephane Nicoll
parent 970b16f8bc
commit feecc27677
2 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ public class RandomAccessDataFileTests {
@Test
public void fileExists() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.expectMessage("File must exist");
this.thrown.expectMessage("File /does/not/exist must exist");
new RandomAccessDataFile(new File("/does/not/exist"));
}
@@ -120,7 +120,7 @@ public class RandomAccessDataFileTests {
@Test
public void fileExistsWithConcurrentReads() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.expectMessage("File must exist");
this.thrown.expectMessage("File /does/not/exist must exist");
new RandomAccessDataFile(new File("/does/not/exist"), 1);
}