From 19016e3c0951ff994956e93b1c24e412a7ed542e Mon Sep 17 00:00:00 2001 From: Einat Vinouze Date: Mon, 18 May 2020 12:59:57 +0300 Subject: Introduce FeatureManager to ResourceCommand Issue-ID: VID-821 Signed-off-by: Einat Vinouze Change-Id: Id6c663d4612d69a48b4a9425db082fb6c33e08b1 Signed-off-by: Einat Vinouze --- .../vid/config/JobCommandsConfigWithMockedMso.java | 36 +++++++++++++--------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'vid-app-common/src/test/java/org/onap/vid/config') diff --git a/vid-app-common/src/test/java/org/onap/vid/config/JobCommandsConfigWithMockedMso.java b/vid-app-common/src/test/java/org/onap/vid/config/JobCommandsConfigWithMockedMso.java index 3f2bf7318..468fb41c3 100644 --- a/vid-app-common/src/test/java/org/onap/vid/config/JobCommandsConfigWithMockedMso.java +++ b/vid-app-common/src/test/java/org/onap/vid/config/JobCommandsConfigWithMockedMso.java @@ -174,8 +174,9 @@ public class JobCommandsConfigWithMockedMso { InProgressStatusService inProgressStatusService, WatchChildrenJobsBL watchChildrenJobsBL, RestMsoImplementation restMso, - AuditService auditService) { - return new ALaCarteServiceCommand(inProgressStatusService, watchChildrenJobsBL, asyncInstantiationBusinessLogic, jobsBrokerService, msoRequestBuilder, msoResultHandlerService, jobAdapter, restMso, auditService); + AuditService auditService, + FeatureManager featureManager) { + return new ALaCarteServiceCommand(inProgressStatusService, watchChildrenJobsBL, asyncInstantiationBusinessLogic, jobsBrokerService, msoRequestBuilder, msoResultHandlerService, jobAdapter, restMso, auditService, featureManager); } @Bean @@ -189,8 +190,9 @@ public class JobCommandsConfigWithMockedMso { InProgressStatusService inProgressStatusService, WatchChildrenJobsBL watchChildrenJobsBL, RestMsoImplementation restMso, - AuditService auditService) { - return new MacroServiceCommand(inProgressStatusService, watchChildrenJobsBL, asyncInstantiationBusinessLogic, jobsBrokerService, msoRequestBuilder, msoResultHandlerService, jobAdapter, restMso, auditService); + AuditService auditService, + FeatureManager featureManager) { + return new MacroServiceCommand(inProgressStatusService, watchChildrenJobsBL, asyncInstantiationBusinessLogic, jobsBrokerService, msoRequestBuilder, msoResultHandlerService, jobAdapter, restMso, auditService, featureManager); } @@ -204,9 +206,10 @@ public class JobCommandsConfigWithMockedMso { InProgressStatusService inProgressStatusService, WatchChildrenJobsBL watchChildrenJobsBL, JobsBrokerService jobsBrokerService, - JobAdapter jobAdapter) { + JobAdapter jobAdapter, + FeatureManager featureManager) { return new NetworkCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, - inProgressStatusService, watchChildrenJobsBL, jobsBrokerService, jobAdapter); + inProgressStatusService, watchChildrenJobsBL, jobsBrokerService, jobAdapter, featureManager); } @Bean @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) @@ -218,8 +221,10 @@ public class JobCommandsConfigWithMockedMso { WatchChildrenJobsBL watchChildrenJobsBL, RestMsoImplementation restMso, JobsBrokerService jobsBrokerService, - JobAdapter jobAdapter) { - return new InstanceGroupCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, inProgressStatusService, watchChildrenJobsBL, jobsBrokerService, jobAdapter); + JobAdapter jobAdapter, + FeatureManager featureManager) { + return new InstanceGroupCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, inProgressStatusService, + watchChildrenJobsBL, jobsBrokerService, jobAdapter, featureManager); } @Bean @@ -232,9 +237,10 @@ public class JobCommandsConfigWithMockedMso { WatchChildrenJobsBL watchChildrenJobsBL, RestMsoImplementation restMso, JobsBrokerService jobsBrokerService, - JobAdapter jobAdapter) { + JobAdapter jobAdapter, + FeatureManager featureManager) { return new InstanceGroupMemberCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, inProgressStatusService, - watchChildrenJobsBL, jobsBrokerService, jobAdapter); + watchChildrenJobsBL, jobsBrokerService, jobAdapter, featureManager); } @@ -265,9 +271,10 @@ public class JobCommandsConfigWithMockedMso { InProgressStatusService inProgressStatusService, WatchChildrenJobsBL watchChildrenJobsBL, JobsBrokerService jobsBrokerService, - JobAdapter jobAdapter) { + JobAdapter jobAdapter, + FeatureManager featureManager) { return new VolumeGroupCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, - inProgressStatusService, watchChildrenJobsBL, jobsBrokerService ,jobAdapter); + inProgressStatusService, watchChildrenJobsBL, jobsBrokerService ,jobAdapter, featureManager); } @Bean @@ -280,9 +287,10 @@ public class JobCommandsConfigWithMockedMso { InProgressStatusService inProgressStatusService, WatchChildrenJobsBL watchChildrenJobsBL, JobsBrokerService jobsBrokerService, - JobAdapter jobAdapter) { + JobAdapter jobAdapter, + FeatureManager featureManager) { return new VfmoduleCommand(asyncInstantiationBusinessLogic, restMso, msoRequestBuilder, msoResultHandlerService, - inProgressStatusService, watchChildrenJobsBL, jobsBrokerService, jobAdapter); + inProgressStatusService, watchChildrenJobsBL, jobsBrokerService, jobAdapter, featureManager); } @Bean public AuditService auditService(RestMsoImplementation msoClient, AsyncInstantiationRepository asyncInstantiationRepository) { -- cgit 1.2.3-korg