public interface MongoLockRepositoryITestInterface
| Modifier and Type | Method and Description |
|---|---|
void |
ensureKeyUniqueness() |
void |
findByKeyShouldReturnLockWhenThereIsOne() |
void |
initializeRepository() |
void |
insertUpdateShouldInsertWhenEmpty() |
void |
insertUpdateShouldThrowExceptionWhenLockIsInDBWIthDifferentOwnerAndNotExpired() |
void |
insertUpdateShouldUpdateWhenExpiresAtIsGraterThanSaved() |
void |
insertUpdateShouldUpdateWhenSameOwner() |
void |
removeShouldNotRemoveWhenDifferentOwner() |
void |
removeShouldRemoveWhenSameOwner() |
void |
updateIfSameOwnerShouldNotInsertWhenEmpty() |
void |
updateIfSameOwnerShouldNotUpdateWhenDifferentOwnerAndExpiresAtIsNotGrater() |
void |
updateIfSameOwnerShouldNotUpdateWhenExpiresAtIsGraterThanSavedButOtherOwner() |
void |
updateIfSameOwnerShouldUpdateWhenSameOwner() |
@Test void ensureKeyUniqueness()
@Test
void findByKeyShouldReturnLockWhenThereIsOne()
throws LockPersistenceException,
MongockException
@Test
void insertUpdateShouldInsertWhenEmpty()
throws LockPersistenceException,
MongockException
@Test
void insertUpdateShouldUpdateWhenExpiresAtIsGraterThanSaved()
throws LockPersistenceException,
MongockException
@Test
void insertUpdateShouldUpdateWhenSameOwner()
throws LockPersistenceException,
MongockException
@Test
void insertUpdateShouldThrowExceptionWhenLockIsInDBWIthDifferentOwnerAndNotExpired()
throws LockPersistenceException,
MongockException
@Test
void removeShouldRemoveWhenSameOwner()
throws LockPersistenceException,
MongockException
@Test
void removeShouldNotRemoveWhenDifferentOwner()
throws LockPersistenceException,
MongockException
@Test
void updateIfSameOwnerShouldNotInsertWhenEmpty()
throws LockPersistenceException,
MongockException
@Test
void updateIfSameOwnerShouldNotUpdateWhenExpiresAtIsGraterThanSavedButOtherOwner()
throws LockPersistenceException,
MongockException
@Test
void updateIfSameOwnerShouldUpdateWhenSameOwner()
throws LockPersistenceException,
MongockException
@Test
void updateIfSameOwnerShouldNotUpdateWhenDifferentOwnerAndExpiresAtIsNotGrater()
throws LockPersistenceException,
MongockException
void initializeRepository()
Copyright © 2023. All rights reserved.