Merge "the upgrade button is allowed when VFM in instance not exists in model."
[vid.git] / vid-app-common / src / test / java / org / onap / vid / model / RequestReferencesContainerTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
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 package org.onap.vid.model;
22
23 import org.junit.Test;
24 import org.onap.vid.mso.model.RequestReferences;
25
26 import java.util.Map;
27
28 public class RequestReferencesContainerTest {
29
30     private RequestReferencesContainer createTestSubject() {
31         return new RequestReferencesContainer(new RequestReferences());
32     }
33
34     @Test
35     public void testGetAdditionalProperties() throws Exception {
36         RequestReferencesContainer testSubject;
37         Map<String, Object> result;
38
39         // default test
40         testSubject = createTestSubject();
41         result = testSubject.getAdditionalProperties();
42     }
43
44     @Test
45     public void testSetAdditionalProperty() throws Exception {
46         RequestReferencesContainer testSubject;
47         String name = "";
48         Object value = null;
49
50         // default test
51         testSubject = createTestSubject();
52         testSubject.setAdditionalProperty(name, value);
53     }
54
55     @Test
56     public void testGetRequestReferences() throws Exception {
57         RequestReferencesContainer testSubject;
58         RequestReferences result;
59
60         // default test
61         testSubject = createTestSubject();
62         result = testSubject.getRequestReferences();
63     }
64
65     @Test
66     public void testToString() throws Exception {
67         RequestReferencesContainer testSubject;
68         String result;
69
70         // default test
71         testSubject = createTestSubject();
72         result = testSubject.toString();
73     }
74 }