dffda5ca1cb17664068a21d886cb9abec58aa3bd
[aai/sparky-be.git] / sparkybe-onap-service / src / test / java / org / onap / aai / sparky / config / oxm / GeoEntityDescriptorTest.java
1 package org.onap.aai.sparky.config.oxm;
2
3 import static org.junit.Assert.assertNotNull;
4 import static org.junit.Assert.assertNull;
5
6
7 import org.junit.Before;
8 import org.junit.Test;
9
10 public class GeoEntityDescriptorTest {
11         
12         private GeoEntityDescriptor geoEntityDescriptor; 
13          
14         @Before
15           public void init() throws Exception {
16                 geoEntityDescriptor = new GeoEntityDescriptor();
17               
18           }
19         
20         @Test 
21         public void updateValues() {
22         
23                 geoEntityDescriptor.setGeoLatName("");
24                 assertNotNull(geoEntityDescriptor.getGeoLatName());
25                 geoEntityDescriptor.setGeoLongName("");
26                 assertNotNull(geoEntityDescriptor.getGeoLongName());
27                 assertNotNull(geoEntityDescriptor.toString());
28                 geoEntityDescriptor.setGeoLatName(null);
29                 assertNull(geoEntityDescriptor.getGeoLatName());
30                 geoEntityDescriptor.setGeoLongName(null);
31                 assertNull(geoEntityDescriptor.getGeoLongName());
32                 assertNotNull(geoEntityDescriptor.toString());
33                 
34                 
35         }
36
37 }