aboutsummaryrefslogtreecommitdiffstats
path: root/models/src/test/java
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2021-11-19 15:59:54 +0000
committerFrancescoFioraEst <francesco.fiora@est.tech>2021-12-02 16:10:51 +0000
commit06499b21fb3a2842d1bbae3eb790c93ea6c9272a (patch)
tree1b8f4f2037c44cb7c8019193009f9c3abccaff21 /models/src/test/java
parent8f54ee96bb0b86425d9c177eb991b1fd91000ad4 (diff)
Add support transaction
Add support transaction in CommissioningProvider and ControlLoopInstantiationProvider Issue-ID: POLICY-3802 Change-Id: I8ddba4814547e335b7b27342189a3fc5d9dc4582 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'models/src/test/java')
-rw-r--r--models/src/test/java/org/onap/policy/clamp/controlloop/models/controlloop/persistence/provider/ControlLoopProviderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/src/test/java/org/onap/policy/clamp/controlloop/models/controlloop/persistence/provider/ControlLoopProviderTest.java b/models/src/test/java/org/onap/policy/clamp/controlloop/models/controlloop/persistence/provider/ControlLoopProviderTest.java
index 2b472c835..4b8617b3d 100644
--- a/models/src/test/java/org/onap/policy/clamp/controlloop/models/controlloop/persistence/provider/ControlLoopProviderTest.java
+++ b/models/src/test/java/org/onap/policy/clamp/controlloop/models/controlloop/persistence/provider/ControlLoopProviderTest.java
@@ -209,7 +209,7 @@ class ControlLoopProviderTest {
mock(ToscaNodeTemplateRepository.class), mock(ToscaNodeTemplatesRepository.class));
var toscaServiceTemplate = testControlLoopRead();
controlLoopProvider.deleteInstanceProperties(controlLoopProvider.saveInstanceProperties(toscaServiceTemplate),
- controlLoopProvider.getNodeTemplates(null, null));
+ controlLoopProvider.getAllNodeTemplates());
assertThat(controlLoopProvider.getControlLoops()).isEmpty();
}
@@ -255,7 +255,7 @@ class ControlLoopProviderTest {
.thenReturn(List.of(toscaNodeTemplate0));
// Getting all nodes
- var listNodes = controlLoopProvider.getNodeTemplates(null, null);
+ var listNodes = controlLoopProvider.getAllNodeTemplates();
assertNotNull(listNodes);
assertThat(listNodes).hasSize(2);