summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/test/java/org/onap/aai/sparky/config/oxm/GeoEntityDescriptorTest.java
blob: dffda5ca1cb17664068a21d886cb9abec58aa3bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package org.onap.aai.sparky.config.oxm;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;


import org.junit.Before;
import org.junit.Test;

public class GeoEntityDescriptorTest {
	
	private GeoEntityDescriptor geoEntityDescriptor; 
	 
	@Before
	  public void init() throws Exception {
		geoEntityDescriptor = new GeoEntityDescriptor();
	      
	  }
	
	@Test 
	public void updateValues() {
	
		geoEntityDescriptor.setGeoLatName("");
		assertNotNull(geoEntityDescriptor.getGeoLatName());
		geoEntityDescriptor.setGeoLongName("");
		assertNotNull(geoEntityDescriptor.getGeoLongName());
		assertNotNull(geoEntityDescriptor.toString());
		geoEntityDescriptor.setGeoLatName(null);
		assertNull(geoEntityDescriptor.getGeoLatName());
		geoEntityDescriptor.setGeoLongName(null);
		assertNull(geoEntityDescriptor.getGeoLongName());
		assertNotNull(geoEntityDescriptor.toString());
		
		
	}

}