1 package org.onap.aai.sparky.config.oxm;
3 import static org.junit.Assert.assertNotNull;
4 import static org.junit.Assert.assertNull;
6 import java.util.ArrayList;
8 import org.junit.Before;
11 public class OxmEntityDescriptorTest {
13 private OxmEntityDescriptor oxmEntityDescriptor;
14 private ArrayList<String> primaryKeyAttributeNames;
17 public void init() throws Exception {
18 oxmEntityDescriptor = new OxmEntityDescriptor();
19 primaryKeyAttributeNames = new ArrayList<String>();
24 public void updateValues() {
26 oxmEntityDescriptor.setEntityName("");
27 assertNotNull(oxmEntityDescriptor.getEntityName());
28 oxmEntityDescriptor.setPrimaryKeyAttributeNames(primaryKeyAttributeNames);
29 assertNotNull(oxmEntityDescriptor.getPrimaryKeyAttributeNames());
30 oxmEntityDescriptor.addPrimaryKeyName("");
31 assertNotNull(oxmEntityDescriptor.toString());
32 oxmEntityDescriptor.setEntityName(null);
33 assertNull(oxmEntityDescriptor.getEntityName());
34 oxmEntityDescriptor.setPrimaryKeyAttributeNames(null);
35 assertNull(oxmEntityDescriptor.getPrimaryKeyAttributeNames());
36 assertNotNull(oxmEntityDescriptor.toString());