Move common code to router-core from DR
[aai/data-router.git] / src / test / java / org / onap / aai / datarouter / entity / AaiEventEntityTest.java
index 665b8f9..1f71dcd 100644 (file)
@@ -22,7 +22,7 @@ package org.onap.aai.datarouter.entity;
 \r
 import org.junit.Assert;\r
 import org.junit.Test;\r
-import org.onap.aai.datarouter.util.CrossEntityReference;\r
+import org.onap.aai.util.CrossEntityReference;\r
 \r
 import java.io.IOException;\r
 import java.security.NoSuchAlgorithmException;\r
@@ -95,34 +95,6 @@ public class AaiEventEntityTest {
         Assert.assertNotNull(entity.toString());\r
     }\r
 \r
-    @Test\r
-    public void testOxmEntityDescriptor(){\r
-        OxmEntityDescriptor descriptor = new OxmEntityDescriptor();\r
-        descriptor.setEntityName("entity-1");\r
-        Assert.assertEquals(descriptor.getEntityName(), "entity-1");\r
-\r
-        descriptor.setPrimaryKeyAttributeName(new ArrayList<String>());\r
-        Assert.assertTrue(descriptor.getPrimaryKeyAttributeName().size()==0);\r
-\r
-        Assert.assertFalse(descriptor.hasSearchableAttributes());\r
-\r
-        List<String> searchableAttr = new ArrayList<String>();\r
-        searchableAttr.add("search");\r
-        descriptor.setSearchableAttributes(searchableAttr);\r
-        Assert.assertTrue(descriptor.getSearchableAttributes().size()==1);\r
-\r
-        Assert.assertTrue(descriptor.hasSearchableAttributes());\r
-\r
-        CrossEntityReference ref = new CrossEntityReference();\r
-        descriptor.setCrossEntityReference(ref);\r
-        Assert.assertEquals(descriptor.getCrossEntityReference(), ref);\r
-\r
-        descriptor.setSuggestableEntity(true);\r
-        Assert.assertTrue(descriptor.isSuggestableEntity());\r
-\r
-        Assert.assertNotNull(descriptor.toString());\r
-    }\r
-\r
     @Test\r
     public void testPolicyResponse(){\r
         PolicyResponse response = new PolicyResponse(PolicyResponse.ResponseType.SUCCESS, "response-data");\r