MUSIC-465 junits-Application.java file
[music.git] / src / test / java / org / onap / music / rest / ApplicationTest.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2019 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.rest;
26
27 import static org.junit.Assert.*;
28
29 import org.junit.Test;
30
31 public class ApplicationTest {
32
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;
41         
42         @Test
43         public void testsetApplication_name() {
44                 apl.setApplication_name(application_name);
45                 assertEquals("music",apl.getApplication_name());
46         }
47         
48         @Test
49         public void testsetUsername()
50         {
51                 apl.setUsername(username);
52                 assertEquals("music",apl.getUsername());
53         }
54         
55         @Test
56         public void testsetPassword()
57         {
58                 apl.setPassword(password);
59                 assertEquals("music",apl.getPassword());
60         }
61         
62         @Test
63         public void testsetKeyspace_name()
64         {
65                 apl.setKeyspace_name(keyspace_name);
66                 assertEquals("music",apl.getKeyspace_name());
67         }
68         
69         @Test
70         public void testsetIs_aaf()
71         {
72                 apl.setIs_aaf(is_aaf);
73                 assertEquals(false,apl.isIs_aaf());
74         }
75         
76         
77         @Test
78         public void testsetUuid()
79         {
80                 apl.setUuid(uuid);
81                 assertEquals("123",apl.getUuid());
82         }
83         
84         @Test
85         public void testsetIs_api()
86         {
87                 apl.setIs_api(is_api);
88                 assertEquals(true,apl.getIs_api());
89                 
90         }
91         
92         
93   
94 }