@Test public void throwOmrsExceptionOnGetEntitiesForRelationshipType() throws Exception{ PropertyServerException exception = new PropertyServerException(501, "className-getEntitiesForRelationshipType", "actionDescription--getEntitiesForRelationshipType", "errorMessage--getEntitiesForRelationshipType", "systemAction--getEntitiesForRelationshipType", "userAction--getEntitiesForRelationshipType"); when(repositoryHandler.getEntitiesForRelationshipType(eq(USER_ID), eq(glossaries.get(0).getGUID()), eq(GLOSSARY_TYPE_NAME), eq(EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_GUID), eq(EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME), anyInt(), anyInt(), eq("getExternalGlossaryLinks"))).thenThrow(exception); GlossaryViewEntityDetailResponse response = underTest.getExternalGlossaryLinks(USER_ID, SERVER_NAME, glossaries.get(0).getGUID(),0, 10); assertExceptionDataInResponse(exception, response); }
public GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID, Integer from, Integer size){ return getRelatedEntitiesResponse(userId, serverName, glossaryGUID, GLOSSARY_TYPE_NAME, EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME, from, size, "getExternalGlossaryLinks"); }
GlossaryService extends GlossaryViewOMAS { public GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID, Integer from, Integer size){ return getRelatedEntitiesResponse(userId, serverName, glossaryGUID, GLOSSARY_TYPE_NAME, EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME, from, size, "getExternalGlossaryLinks"); } }
GlossaryService extends GlossaryViewOMAS { public GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID, Integer from, Integer size){ return getRelatedEntitiesResponse(userId, serverName, glossaryGUID, GLOSSARY_TYPE_NAME, EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME, from, size, "getExternalGlossaryLinks"); } GlossaryService(); }
GlossaryService extends GlossaryViewOMAS { public GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID, Integer from, Integer size){ return getRelatedEntitiesResponse(userId, serverName, glossaryGUID, GLOSSARY_TYPE_NAME, EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME, from, size, "getExternalGlossaryLinks"); } GlossaryService(); GlossaryViewEntityDetailResponse getGlossary(String userId, String serverName, String glossaryGUID); GlossaryViewEntityDetailResponse getAllGlossaries(String userId, String serverName, Integer from, Integer size); GlossaryViewEntityDetailResponse getTermHomeGlossary(String userId, String serverName, String termGUID); GlossaryViewEntityDetailResponse getCategoryHomeGlossary(String userId, String serverName, String categoryGUID); GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID,
                                                                     Integer from, Integer size); }
GlossaryService extends GlossaryViewOMAS { public GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID, Integer from, Integer size){ return getRelatedEntitiesResponse(userId, serverName, glossaryGUID, GLOSSARY_TYPE_NAME, EXTERNALLY_SOURCED_GLOSSARY_RELATIONSHIP_NAME, from, size, "getExternalGlossaryLinks"); } GlossaryService(); GlossaryViewEntityDetailResponse getGlossary(String userId, String serverName, String glossaryGUID); GlossaryViewEntityDetailResponse getAllGlossaries(String userId, String serverName, Integer from, Integer size); GlossaryViewEntityDetailResponse getTermHomeGlossary(String userId, String serverName, String termGUID); GlossaryViewEntityDetailResponse getCategoryHomeGlossary(String userId, String serverName, String categoryGUID); GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID,
                                                                     Integer from, Integer size);  }