From 9496f31d3b2a1674f57a0395d050be0d9c6b87f0 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 13 Apr 2021 14:22:19 -0400 Subject: Make op history classes work with generic events Issue-ID: POLICY-3198 Change-Id: I5b80d35fbb523094ae5464e9c058fd8f2c71ff50 Signed-off-by: Jim Hahn --- .../apps/controller/usecases/UsecasesEventManagerTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'controlloop/common/controller-usecases/src/test/java') diff --git a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java index 98758f4da..7160f372f 100644 --- a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java +++ b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java @@ -523,10 +523,9 @@ public class UsecasesEventManagerTest { */ @Test public void testLoadPreprocessorStepsNeedTargetEntity() { - stepa = new Step2(mgr, - ControlLoopOperationParams.builder() - .targetType(TargetType.toTargetType(event.getTargetType())) - .targetEntityIds(Map.of()).build(), event) { + stepa = new Step2(mgr, ControlLoopOperationParams.builder() + .targetType(TargetType.toTargetType(event.getTargetType())).targetEntityIds(Map.of()).build(), + event) { @Override public List getPropertyNames() { return List.of(OperationProperties.AAI_TARGET_ENTITY); @@ -758,7 +757,8 @@ public class UsecasesEventManagerTest { mgr.storeInDataBase(mgr.getPartialHistory().peekLast()); - verify(dataMgr).store(REQ_ID.toString(), event, null, mgr.getPartialHistory().peekLast().getClOperation()); + verify(dataMgr).store(REQ_ID.toString(), event.getClosedLoopControlName(), event, null, + mgr.getPartialHistory().peekLast().getClOperation()); } @Test -- cgit 1.2.3-korg