This commit is contained in:
gtully 2015-03-10 16:18:50 +00:00
parent 3b39d2cc2a
commit 55f040e616
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ public class LockFileTest {
public void testNoDeleteOnUnlockIfNotLocked() throws Exception { public void testNoDeleteOnUnlockIfNotLocked() throws Exception {
File lockFile = new File(IOHelper.getDefaultDataDirectory(), "lockToTest1"); File lockFile = new File(IOHelper.getDefaultDataDirectory(), "lockToTest1");
IOHelper.mkdirs(lockFile.getParentFile());
lockFile.createNewFile(); lockFile.createNewFile();
LockFile underTest = new LockFile(lockFile, true); LockFile underTest = new LockFile(lockFile, true);
@ -51,6 +52,7 @@ public class LockFileTest {
public void testDeleteOnUnlockIfLocked() throws Exception { public void testDeleteOnUnlockIfLocked() throws Exception {
File lockFile = new File(IOHelper.getDefaultDataDirectory(), "lockToTest2"); File lockFile = new File(IOHelper.getDefaultDataDirectory(), "lockToTest2");
IOHelper.mkdirs(lockFile.getParentFile());
lockFile.createNewFile(); lockFile.createNewFile();
LockFile underTest = new LockFile(lockFile, true); LockFile underTest = new LockFile(lockFile, true);