Increasing test coverage
[aai/sparky-be.git] / src / test / java / org / onap / aai / sparky / editattributes / entity / EditRequestTest.java
1 package org.onap.aai.sparky.editattributes.entity;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
5 import static org.junit.Assert.assertNull;
6
7 import java.util.HashMap;
8
9 import org.junit.Before;
10 import org.junit.Test;
11 import org.onap.aai.sparky.viewandinspect.EntityTypeAggregation;
12 import org.onap.aai.sparky.viewandinspect.entity.GraphMeta;
13
14 import com.fasterxml.jackson.databind.node.JsonNodeFactory;
15
16 public class EditRequestTest {
17         
18         private EditRequest editAttribute;
19         private HashMap<String,Object> attributes; 
20         
21         
22         
23         @Before
24           public void init() throws Exception {
25                 
26                 editAttribute = new EditRequest();
27                 attributes = new HashMap<String,Object>(); 
28               
29           }
30         
31         
32         @Test 
33         public void updateValues() {
34                 
35                 editAttribute.setEntityUri("");
36                 assertNotNull(editAttribute.getEntityUri());
37                 editAttribute.setEntityType("");
38                 assertNotNull(editAttribute.getEntityType());
39                 editAttribute.setAttributes(attributes);
40                 assertNotNull(editAttribute.getAttributes());
41         }
42
43 }