-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b14521
commit ad4072a
Showing
6 changed files
with
77 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/test/java/com/originalflipster/cloud/lock/StorageLockTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.originalflipster.cloud.lock; | ||
|
||
import com.originalflipster.cloud.lock.storage.CloudStorage; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class StorageLockTest { | ||
|
||
|
||
private static final class MockStorage implements CloudStorage { | ||
|
||
@Override | ||
public boolean lockFileExists() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean lock() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public String getLockContent() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean hasLock() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void deleteLock() { | ||
|
||
} | ||
|
||
@Override | ||
public void unlock() { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters