Increasing test coverage
[aai/sparky-be.git] / src / test / java / org / onap / aai / sparky / config / oxm / CrossEntityReferenceTest.java
1 package org.onap.aai.sparky.config.oxm;
2
3 import static org.junit.Assert.assertNotNull;
4
5 import java.util.ArrayList;
6
7 import org.junit.Before;
8 import org.junit.Test;
9
10 public class CrossEntityReferenceTest {
11         
12         private CrossEntityReference crossEntityReference; 
13         private ArrayList<String> refAttribute; 
14          
15         @Before
16           public void init() throws Exception {
17                 
18                 crossEntityReference = new CrossEntityReference();
19                 refAttribute = new ArrayList<String>(); 
20               
21           }
22         
23         @Test 
24         public void updateValues() {
25         
26                 crossEntityReference.setTargetEntityType("");
27                 assertNotNull(crossEntityReference.getTargetEntityType());
28                 crossEntityReference.setReferenceAttributes(refAttribute);
29                 assertNotNull(crossEntityReference.getReferenceAttributes());
30                 crossEntityReference.addReferenceAttribute("");
31                 assertNotNull(crossEntityReference.toString());
32                 
33                 
34         }
35
36 }