Adding additional information for failing tests
import javax.inject.Inject;
import javax.inject.Named;
import java.io.File;
+import java.nio.file.FileSystemException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
@@ -62,6 +63,7 @@ public void testTimeout()
throws Throwable
{
+ try {
File file = new File(System.getProperty("buildDirectory"), "foo.txt");
Files.deleteIfExists(file.toPath());
@@ -73,6 +75,11 @@ public void testTimeout()
Files.copy(largeJar.toPath(), lock.getFile().toPath(), StandardCopyOption.REPLACE_EXISTING);
lock = fileLockManager.writeFileLock(file);
+ } catch (FileSystemException ex) {
+ logger.error("Exception from filesystem "+ex.getMessage());
+ ex.printStackTrace();
+ throw ex;
+ }
}
