1 package org.onap.vid.mso;
3 import static org.junit.Assert.*;
5 import org.onap.vid.changeManagement.RequestDetailsWrapper;
9 import javax.ws.rs.core.MultivaluedHashMap;
11 import org.junit.Assert;
13 public class RestMsoImplementationTest {
15 private RestMsoImplementation createTestSubject() {
16 return new RestMsoImplementation();
20 public void testInitMsoClient() throws Exception {
21 RestMsoImplementation testSubject;
22 MultivaluedHashMap<String, Object> result;
26 testSubject = createTestSubject();
27 result = testSubject.initMsoClient();
28 } catch (Exception e) {
34 public void testGetForObject() throws Exception {
35 RestMsoImplementation testSubject;
41 testSubject = createTestSubject();
42 testSubject.GetForObject(sourceID, path, null);
43 } catch (Exception e) {
48 public void testDelete() throws Exception {
49 RestMsoImplementation testSubject;
55 testSubject = createTestSubject();
56 testSubject.Delete(null, null, sourceID, path, null);
57 } catch (Exception e) {
62 public void testPostForObject() throws Exception {
63 RestMsoImplementation testSubject;
64 Object requestDetails = null;
70 testSubject = createTestSubject();
71 testSubject.PostForObject(requestDetails, sourceID, path, null);
81 public void testPrepareClient() throws Exception {
82 RestMsoImplementation testSubject;
84 String methodName = "";
88 testSubject = createTestSubject();
89 testSubject.prepareClient(path, methodName);
100 // public void testInitMsoClient() throws Exception {
101 // RestMsoImplementation testSubject;
104 // testSubject = createTestSubject();
105 // testSubject.initMsoClient();