Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Updated function test env with new tests and features"
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
repository
/
LockTest.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
b/policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
index
5c1cc14
..
fd75978
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
@@
-34,7
+34,7
@@
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
@ExtendWith(MockitoExtension.class)
import reactor.test.StepVerifier;
@ExtendWith(MockitoExtension.class)
-
public
class LockTest {
+class LockTest {
@SuppressWarnings("squid:S2925") // "Thread.sleep" should not be used in tests.
private void sleep() {
@SuppressWarnings("squid:S2925") // "Thread.sleep" should not be used in tests.
private void sleep() {
@@
-54,7
+54,7
@@
public class LockTest {
}
@Test
}
@Test
-
public
void testLock() throws IOException, ServiceException {
+ void testLock() throws IOException, ServiceException {
Lock lock = new Lock();
lock.lockBlocking(LockType.SHARED);
lock.unlockBlocking();
Lock lock = new Lock();
lock.lockBlocking(LockType.SHARED);
lock.unlockBlocking();
@@
-69,7
+69,7
@@
public class LockTest {
}
@Test
}
@Test
-
public
void testReactiveLock() {
+ void testReactiveLock() {
Lock lock = new Lock();
Mono<Lock> seq = lock.lock(LockType.EXCLUSIVE) //
Lock lock = new Lock();
Mono<Lock> seq = lock.lock(LockType.EXCLUSIVE) //