blob: 5f87a278873ac153185a2f5423a2a6731c23bdc6 (
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
38
39
40
41
42
43
|
package org.onap.aai.sparky.editattributes.entity;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.HashMap;
import org.junit.Before;
import org.junit.Test;
import org.onap.aai.sparky.viewandinspect.EntityTypeAggregation;
import org.onap.aai.sparky.viewandinspect.entity.GraphMeta;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
public class EditRequestTest {
private EditRequest editAttribute;
private HashMap<String,Object> attributes;
@Before
public void init() throws Exception {
editAttribute = new EditRequest();
attributes = new HashMap<String,Object>();
}
@Test
public void updateValues() {
editAttribute.setEntityUri("");
assertNotNull(editAttribute.getEntityUri());
editAttribute.setEntityType("");
assertNotNull(editAttribute.getEntityType());
editAttribute.setAttributes(attributes);
assertNotNull(editAttribute.getAttributes());
}
}
|