X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fdatarouter%2Fentity%2FAaiEventEntityTest.java;fp=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fdatarouter%2Fentity%2FAaiEventEntityTest.java;h=1f71dcdb1e039a15b38969b7ce4aa4a2ee85bcdf;hb=0f03ce7eea220df68d84a7f0f088a38ebb088039;hp=665b8f95707fc55bc5096958c301fbe169f83705;hpb=7ef885b28efb072407fc88fac593cde3e29da38d;p=aai%2Fdata-router.git diff --git a/src/test/java/org/onap/aai/datarouter/entity/AaiEventEntityTest.java b/src/test/java/org/onap/aai/datarouter/entity/AaiEventEntityTest.java index 665b8f9..1f71dcd 100644 --- a/src/test/java/org/onap/aai/datarouter/entity/AaiEventEntityTest.java +++ b/src/test/java/org/onap/aai/datarouter/entity/AaiEventEntityTest.java @@ -22,7 +22,7 @@ package org.onap.aai.datarouter.entity; import org.junit.Assert; import org.junit.Test; -import org.onap.aai.datarouter.util.CrossEntityReference; +import org.onap.aai.util.CrossEntityReference; import java.io.IOException; import java.security.NoSuchAlgorithmException; @@ -95,34 +95,6 @@ public class AaiEventEntityTest { Assert.assertNotNull(entity.toString()); } - @Test - public void testOxmEntityDescriptor(){ - OxmEntityDescriptor descriptor = new OxmEntityDescriptor(); - descriptor.setEntityName("entity-1"); - Assert.assertEquals(descriptor.getEntityName(), "entity-1"); - - descriptor.setPrimaryKeyAttributeName(new ArrayList()); - Assert.assertTrue(descriptor.getPrimaryKeyAttributeName().size()==0); - - Assert.assertFalse(descriptor.hasSearchableAttributes()); - - List searchableAttr = new ArrayList(); - searchableAttr.add("search"); - descriptor.setSearchableAttributes(searchableAttr); - Assert.assertTrue(descriptor.getSearchableAttributes().size()==1); - - Assert.assertTrue(descriptor.hasSearchableAttributes()); - - CrossEntityReference ref = new CrossEntityReference(); - descriptor.setCrossEntityReference(ref); - Assert.assertEquals(descriptor.getCrossEntityReference(), ref); - - descriptor.setSuggestableEntity(true); - Assert.assertTrue(descriptor.isSuggestableEntity()); - - Assert.assertNotNull(descriptor.toString()); - } - @Test public void testPolicyResponse(){ PolicyResponse response = new PolicyResponse(PolicyResponse.ResponseType.SUCCESS, "response-data");