2 * ============LICENSE_START==========================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ============LICENSE_END=============================================
22 * ====================================================================
25 package org.onap.music.unittests.jsonobjects;
27 import static org.junit.Assert.*;
28 import org.junit.Before;
29 import org.junit.Test;
30 import org.onap.music.datastore.jsonobjects.JsonOnboard;
32 public class JsonOnboardTest {
34 JsonOnboard jo = null;
38 jo = new JsonOnboard();
43 public void testGetPassword() {
44 String password = "password";
45 jo.setPassword(password);
46 assertEquals(password,jo.getPassword());
50 public void testGetAid() {
53 assertEquals(aid,jo.getAid());
58 public void testGetAppname() {
59 String appName = "appName";
60 jo.setAppname(appName);
61 assertEquals(appName,jo.getAppname());
66 public void testGetUserId() {
67 String userId = "userId";
69 assertEquals(userId,jo.getUserId());
74 public void testGetIsAAF() {
77 assertEquals(aaf,jo.getIsAAF());
82 public void testKeyspace() {
83 jo.setKeyspace_name("Keyspace");
84 assertEquals("Keyspace",jo.getKeyspace());