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 "Version Up & Removed unncessary properties"
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
tasks
/
ServiceSupervisionTest.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/tasks/ServiceSupervisionTest.java
b/policy-agent/src/test/java/org/oransc/policyagent/tasks/ServiceSupervisionTest.java
index
f26083a
..
495b2a5
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/tasks/ServiceSupervisionTest.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/tasks/ServiceSupervisionTest.java
@@
-56,7
+56,7
@@
import org.oransc.policyagent.utils.LoggingUtils;
import reactor.core.publisher.Mono;
@ExtendWith(MockitoExtension.class)
import reactor.core.publisher.Mono;
@ExtendWith(MockitoExtension.class)
-
public
class ServiceSupervisionTest {
+class ServiceSupervisionTest {
private static final String SERVICE_NAME = "Service name";
private static final String RIC_NAME = "name";
private static final String SERVICE_NAME = "Service name";
private static final String RIC_NAME = "name";
@@
-88,10
+88,11
@@
public class ServiceSupervisionTest {
.ric(ric) //
.type(policyType) //
.lastModified("lastModified") //
.ric(ric) //
.type(policyType) //
.lastModified("lastModified") //
+ .isTransient(false) //
.build();
@Test
.build();
@Test
-
public
void serviceExpired_policyAndServiceAreDeletedInRepoAndPolicyIsDeletedInRic() {
+ void serviceExpired_policyAndServiceAreDeletedInRepoAndPolicyIsDeletedInRic() {
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
setUpCreationOfA1Client();
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
setUpCreationOfA1Client();
@@
-112,7
+113,7
@@
public class ServiceSupervisionTest {
}
@Test
}
@Test
-
public
void serviceExpiredButDeleteInRicFails_policyAndServiceAreDeletedInRepoAndErrorLoggedForRic() {
+ void serviceExpiredButDeleteInRicFails_policyAndServiceAreDeletedInRepoAndErrorLoggedForRic() {
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
setUpCreationOfA1Client();
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
setUpCreationOfA1Client();
@@
-139,7
+140,7
@@
public class ServiceSupervisionTest {
}
@Test
}
@Test
-
public
void serviceNotExpired_shouldNotBeChecked() {
+ void serviceNotExpired_shouldNotBeChecked() {
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
ServiceSupervision serviceSupervisionUnderTest =
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(2));
ServiceSupervision serviceSupervisionUnderTest =
@@
-155,7
+156,7
@@
public class ServiceSupervisionTest {
}
@Test
}
@Test
-
public
void serviceWithoutKeepAliveInterval_shouldNotBeChecked() {
+ void serviceWithoutKeepAliveInterval_shouldNotBeChecked() {
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(0));
ServiceSupervision serviceSupervisionUnderTest =
setUpRepositoryWithKeepAliveInterval(Duration.ofSeconds(0));
ServiceSupervision serviceSupervisionUnderTest =