Merge "added file to test MusicReponse.java"
[music.git] / src / test / java / org / onap / music / unittests / jsonobjects / JsonOnboardTest.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2017 AT&T Intellectual Property
6  * ===================================================================
7  *  Modifications Copyright (c) 2019 IBM.
8  * ===================================================================
9  *  Licensed under the Apache License, Version 2.0 (the "License");
10  *  you may not use this file except in compliance with the License.
11  *  You may obtain a copy of the License at
12  * 
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  *  Unless required by applicable law or agreed to in writing, software
16  *  distributed under the License is distributed on an "AS IS" BASIS,
17  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  *  See the License for the specific language governing permissions and
19  *  limitations under the License.
20  * 
21  * ============LICENSE_END=============================================
22  * ====================================================================
23  */
24  
25 package org.onap.music.unittests.jsonobjects;
26
27 import static org.junit.Assert.*;
28 import org.junit.Before;
29 import org.junit.Test;
30 import org.onap.music.datastore.jsonobjects.JsonOnboard;
31
32 public class JsonOnboardTest {
33
34     JsonOnboard jo = null;
35     
36     @Before
37     public void init() {
38         jo = new JsonOnboard();
39     }
40
41     
42     @Test
43     public void testGetPassword() {
44         String password = "password";
45         jo.setPassword(password);
46         assertEquals(password,jo.getPassword());
47     }
48
49     @Test
50     public void testGetAid() {
51         String aid = "aid";
52         jo.setAid(aid);
53         assertEquals(aid,jo.getAid());
54
55     }
56
57     @Test
58     public void testGetAppname() {
59         String appName = "appName";
60         jo.setAppname(appName);
61         assertEquals(appName,jo.getAppname());
62
63     }
64
65     @Test
66     public void testGetUserId() {
67         String userId = "userId";
68         jo.setUserId(userId);
69         assertEquals(userId,jo.getUserId());
70
71     }
72
73     @Test
74     public void testGetIsAAF() {
75         String aaf = "true";
76         jo.setIsAAF(aaf);
77         assertEquals(aaf,jo.getIsAAF());
78         
79     }
80     
81     @Test
82     public void testKeyspace() {
83         jo.setKeyspace_name("Keyspace");
84         assertEquals("Keyspace",jo.getKeyspace());
85         
86     }
87
88 }