Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added RIC state to RicInfo in the agent NBI
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
MockPolicyAgent.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java
b/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java
index
efbd576
..
2b66a35
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java
@@
-129,14
+129,10
@@
public class MockPolicyAgent {
@LocalServerPort
private int port;
@LocalServerPort
private int port;
- private void keepServerAlive() {
+ private void keepServerAlive()
throws InterruptedException
{
logger.info("Keeping server alive!");
logger.info("Keeping server alive!");
- try {
- synchronized (this) {
- this.wait();
- }
- } catch (Exception ex) {
- logger.error("Unexpected: " + ex);
+ synchronized (this) {
+ this.wait();
}
}
}
}
@@
-147,7
+143,8
@@
public class MockPolicyAgent {
}
@Test
}
@Test
- @SuppressWarnings("squid:S2699") // Tests should include assertions. This test is only for keeping the server alive,
+ @SuppressWarnings("squid:S2699") // Tests should include assertions. This test is only for keeping the server
+ // alive,
// so it will only be confusing to add an assertion.
public void runMock() throws Exception {
keepServerAlive();
// so it will only be confusing to add an assertion.
public void runMock() throws Exception {
keepServerAlive();