3bcc01d63d30b0d891dff2e7ca6a4a6bb732367b
[vid.git] / vid-app-common / src / test / java / org / onap / vid / mso / RestMsoImplementationTest.java
1 package org.onap.vid.mso;
2
3 import static org.junit.Assert.*;
4 import org.junit.Test;
5 import org.onap.vid.changeManagement.RequestDetailsWrapper;
6
7 import java.util.*;
8
9 import javax.ws.rs.core.MultivaluedHashMap;
10
11 import org.junit.Assert;
12
13 public class RestMsoImplementationTest {
14
15     private RestMsoImplementation createTestSubject() {
16         return new RestMsoImplementation();
17     }
18
19     @Test
20     public void testInitMsoClient() throws Exception {
21         RestMsoImplementation testSubject;
22         MultivaluedHashMap<String, Object> result;
23
24         // default test
25         try {
26             testSubject = createTestSubject();
27             result = testSubject.initMsoClient();
28         } catch (Exception e) {
29         }
30     }
31
32
33     @Test
34     public void testGetForObject() throws Exception {
35         RestMsoImplementation testSubject;
36         String sourceID = "";
37         String path = "";
38
39         // default test
40         try {
41             testSubject = createTestSubject();
42             testSubject.GetForObject(sourceID, path, null);
43         } catch (Exception e) {
44         }
45     }
46
47     @Test
48     public void testDelete() throws Exception {
49         RestMsoImplementation testSubject;
50         String sourceID = "";
51         String path = "";
52
53         // default test
54         try {
55             testSubject = createTestSubject();
56             testSubject.Delete(null, null, sourceID, path, null);
57         } catch (Exception e) {
58         }
59     }
60
61     @Test
62     public void testPostForObject() throws Exception {
63         RestMsoImplementation testSubject;
64         Object requestDetails = null;
65         String sourceID = "";
66         String path = "";
67
68         // default test
69         try {
70             testSubject = createTestSubject();
71             testSubject.PostForObject(requestDetails, sourceID, path, null);
72         } catch (
73
74         Exception e) {
75         }
76     }
77
78
79
80     @Test
81     public void testPrepareClient() throws Exception {
82         RestMsoImplementation testSubject;
83         String path = "";
84         String methodName = "";
85
86         // default test
87         try {
88             testSubject = createTestSubject();
89             testSubject.prepareClient(path, methodName);
90         } catch (
91
92         Exception e) {
93         }
94     }
95
96
97
98
99     // @Test
100     // public void testInitMsoClient() throws Exception {
101     // RestMsoImplementation testSubject;
102     //
103     // // default test
104     // testSubject = createTestSubject();
105     // testSubject.initMsoClient();
106     // }
107
108 }