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