\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
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