Introduced mocked SO workflows in VID FE
[vid.git] / vid-app-common / src / main / java / org / onap / vid / controller / MsoConfig.java
index 7f90d6a..efe6c20 100644 (file)
@@ -29,6 +29,7 @@ import org.onap.vid.mso.MsoBusinessLogic;
 import org.onap.vid.mso.MsoBusinessLogicImpl;
 import org.onap.vid.mso.MsoInterface;
 import org.onap.vid.mso.MsoProperties;
+import org.onap.vid.mso.rest.MockedWorkflowsRestClient;
 import org.onap.vid.mso.rest.MsoRestClientNew;
 import org.onap.vid.services.CloudOwnerService;
 import org.onap.vid.services.CloudOwnerServiceImpl;
@@ -52,6 +53,11 @@ public class MsoConfig {
             MsoProperties.MSO_SERVER_URL));
     }
 
+    @Bean
+    public MockedWorkflowsRestClient mockedWorkflowsClient(ObjectMapper unirestObjectMapper){
+        return new MockedWorkflowsRestClient(new SyncRestClient(unirestObjectMapper), "http://vid-simulator:1080/");
+    }
+
     @Bean
     public MsoBusinessLogic getMsoBusinessLogic(MsoInterface msoClient, FeatureManager featureManager){
         return new MsoBusinessLogicImpl(msoClient, featureManager);