1 package org.onap.aai.sparky.config.oxm;
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;
8 import org.junit.Before;
11 public class GeoOxmEntityDescriptorTest {
13 private GeoOxmEntityDescriptor geoOxmEntityDescriptor;
16 public void init() throws Exception {
17 geoOxmEntityDescriptor = new GeoOxmEntityDescriptor();
22 public void updateValues() {
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());