2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (c) 2019 AT&T Intellectual Property
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.rest;
27 import static org.junit.Assert.*;
29 import org.junit.Test;
31 public class ApplicationTest {
33 Application apl=new Application();
34 private String application_name="music";
35 private String username="music";
36 private String password="music";
37 private String keyspace_name="music";
38 private boolean is_aaf=false;
39 private String uuid="123";
40 private boolean is_api=true;
43 public void testsetApplication_name() {
44 apl.setApplication_name(application_name);
45 assertEquals("music",apl.getApplication_name());
49 public void testsetUsername()
51 apl.setUsername(username);
52 assertEquals("music",apl.getUsername());
56 public void testsetPassword()
58 apl.setPassword(password);
59 assertEquals("music",apl.getPassword());
63 public void testsetKeyspace_name()
65 apl.setKeyspace_name(keyspace_name);
66 assertEquals("music",apl.getKeyspace_name());
70 public void testsetIs_aaf()
72 apl.setIs_aaf(is_aaf);
73 assertEquals(false,apl.isIs_aaf());
78 public void testsetUuid()
81 assertEquals("123",apl.getUuid());
85 public void testsetIs_api()
87 apl.setIs_api(is_api);
88 assertEquals(true,apl.getIs_api());