blob: ce038c349c52402ef93335617418cec266ee05ad [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.osam.aai.util;
24
25public class AAIRestInterfaceTest {
26
27 /*
28 TO BE IMPLEMENTED
29
30 private AAIRestInterface createTestSubject() {
31 return new AAIRestInterface("");
32 }
33
34 @Test
35 public void testEncodeURL() throws Exception {
36 AAIRestInterface testSubject;
37 String nodeKey = "";
38 String result;
39
40 // default test
41 testSubject = createTestSubject();
42 result = testSubject.encodeURL(nodeKey);
43 }
44
45 @Test
46 public void testSetRestSrvrBaseURL() throws Exception {
47 AAIRestInterface testSubject;
48 String baseURL = "";
49
50 // test 1
51 testSubject = createTestSubject();
52 baseURL = null;
53 testSubject.SetRestSrvrBaseURL(baseURL);
54
55 // test 2
56 testSubject = createTestSubject();
57 baseURL = "";
58 testSubject.SetRestSrvrBaseURL(baseURL);
59 }
60
61 @Test
62 public void testGetRestSrvrBaseURL() throws Exception {
63 AAIRestInterface testSubject;
64 String result;
65
66 // default test
67 testSubject = createTestSubject();
68 result = testSubject.getRestSrvrBaseURL();
69 }
70
71
72 @Test
73 public void testRestPut() throws Exception {
74 AAIRestInterface testSubject;
75 String fromAppId = "";
76 String transId = "";
77 String path = "";
78 String payload = "";
79 boolean xml = false;
80
81 // default test
82 testSubject = createTestSubject();
83 testSubject.RestPut(fromAppId, transId, path, payload, xml);
84 }
85
86 @Test
87 public void testRestPost() throws Exception {
88 AAIRestInterface testSubject;
89 String fromAppId = "";
90 String transId = "";
91 String path = "";
92 String payload = "";
93 boolean xml = false;
94
95 // default test
96 testSubject = createTestSubject();
97 testSubject.RestPost(fromAppId, transId, path, payload, xml);
98 }*/
99}