1 package org.onap.vid.mso.rest;
3 import java.util.Collections;
4 import org.jetbrains.annotations.NotNull;
5 import org.onap.vid.client.SyncRestClient;
6 import org.onap.vid.model.SOWorkflows;
7 import org.onap.vid.mso.MsoResponseWrapper2;
9 public class MockedWorkflowsRestClient {
11 private SyncRestClient syncRestClient;
12 private String baseUrl;
14 public MockedWorkflowsRestClient(SyncRestClient syncRestClient, String baseUrl) {
15 this.syncRestClient = syncRestClient;
16 this.baseUrl = baseUrl;
19 public MsoResponseWrapper2<SOWorkflows> getWorkflows(String vnfName) {
20 // Temporary skip vnfName and call mocked service
21 return new MsoResponseWrapper2<>(syncRestClient
22 .get(getWorkflowsUrl(),
23 Collections.emptyMap(),
24 Collections.emptyMap(),
29 private String getWorkflowsUrl() {
30 return baseUrl + "so/workflows";