mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5568 - ensure directory exists - fix ci
This commit is contained in:
parent
3b39d2cc2a
commit
55f040e616
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue