Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Support for transient policies not recreated at synchronization
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
configuration
/
ApplicationConfigTest.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/configuration/ApplicationConfigTest.java
b/policy-agent/src/test/java/org/oransc/policyagent/configuration/ApplicationConfigTest.java
index
27b9c87
..
96abd1c
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/configuration/ApplicationConfigTest.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/configuration/ApplicationConfigTest.java
@@
-21,6
+21,7
@@
package org.oransc.policyagent.configuration;
import static org.junit.jupiter.api.Assertions.assertEquals;
package org.oransc.policyagent.configuration;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@
-78,6
+79,11
@@
public class ApplicationConfigTest {
assertEquals(RIC_CONFIG_1, appConfigUnderTest.getRic(RIC_CONFIG_1.name()),
"Not correct Ric retrieved from configurations.");
assertEquals(RIC_CONFIG_1, appConfigUnderTest.getRic(RIC_CONFIG_1.name()),
"Not correct Ric retrieved from configurations.");
+
+ update = appConfigUnderTest.setConfiguration(configParserResult(RIC_CONFIG_1)).blockFirst();
+ assertNull(update, "Nothing should be updated");
+ assertTrue(appConfigUnderTest.getRicConfigs().contains(RIC_CONFIG_1), "Ric should remain.");
+
}
@Test
}
@Test