summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/test/java/org/onap/aai/sparky/config/oxm/CrossEntityReferenceTest.java
blob: c403213b037e24252b2cc7e48a07007619262427 (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
package org.onap.aai.sparky.config.oxm;

import static org.junit.Assert.assertNotNull;

import java.util.ArrayList;

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

public class CrossEntityReferenceTest {
	
	private CrossEntityReference crossEntityReference; 
	private ArrayList<String> refAttribute; 
	 
	@Before
	  public void init() throws Exception {
		
		crossEntityReference = new CrossEntityReference();
		refAttribute = new ArrayList<String>(); 
	      
	  }
	
	@Test 
	public void updateValues() {
	
		crossEntityReference.setTargetEntityType("");
		assertNotNull(crossEntityReference.getTargetEntityType());
		crossEntityReference.setReferenceAttributes(refAttribute);
		assertNotNull(crossEntityReference.getReferenceAttributes());
		crossEntityReference.addReferenceAttribute("");
		assertNotNull(crossEntityReference.toString());
		
		
	}

}