@Test public void getURIToSourceEntry_Forum() { when(publisher.getSourceType()).thenReturn(ForumNotificationTypeHandler.FORUM_SOURCE_TYPE); when(publisher.getSubcontextId()).thenReturn(subContextId); String uriToSourceEntry = uriBuilderTestObject.getURIToSourceEntry(publisher, sourceEntryId); assertEquals("Wrong URI with type " + publisher.getSourceType(), testContextPathUri + "/url/RepositoryEntry/" + contextId + "/CourseNode/" + subContextId + "/Message/" + sourceEntryId, uriToSourceEntry); }
public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); }
UriBuilder { public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); } }
UriBuilder { public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); } UriBuilder(); }
UriBuilder { public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); } UriBuilder(); String getURIToContext(Publisher publisher); String getURIToCourse(Long courseRepositoryEntryId); String getURIToGroup(Long groupId); String getURIToCourseNode(Long courseRepositoryEntryId, Long courseNodeId); String getURIToEventSource(Publisher publisher); String getURIToSourceEntry(Publisher publisher, String sourceEntryId); void setServerContextPathURI(String serverContextPathURI); String getNotificationTabContext(); String getUriToNotificationSettings(); String getUriToNotificationNews(); String getUriToAssessmentDetail(Long courseRepositoryEntryId, Long identityId, Long courseNodeId); String getUriToAssessmentView(Long courseRepositoryEntryId, Long identityId); String getAssessmentDetailContext(); String getTopicAssignmentTabContext(); String getUriToTopicAssignmentFolderTab(Long courseRepositoryEntryId, Long courseNodeId, Long topicId); String getUriToTopicAssignmentDescriptionTab(Long courseRepositoryEntryId, Long courseNodeId, Long topicId); String getUriToTopicAssignmentTab(Long courseRepositoryEntryId, Long courseNodeId, Long projectId, String tabId); String getURIToProject(Long courseRepositoryEntryId, Long courseNodeId, Long projectId); }
UriBuilder { public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); } UriBuilder(); String getURIToContext(Publisher publisher); String getURIToCourse(Long courseRepositoryEntryId); String getURIToGroup(Long groupId); String getURIToCourseNode(Long courseRepositoryEntryId, Long courseNodeId); String getURIToEventSource(Publisher publisher); String getURIToSourceEntry(Publisher publisher, String sourceEntryId); void setServerContextPathURI(String serverContextPathURI); String getNotificationTabContext(); String getUriToNotificationSettings(); String getUriToNotificationNews(); String getUriToAssessmentDetail(Long courseRepositoryEntryId, Long identityId, Long courseNodeId); String getUriToAssessmentView(Long courseRepositoryEntryId, Long identityId); String getAssessmentDetailContext(); String getTopicAssignmentTabContext(); String getUriToTopicAssignmentFolderTab(Long courseRepositoryEntryId, Long courseNodeId, Long topicId); String getUriToTopicAssignmentDescriptionTab(Long courseRepositoryEntryId, Long courseNodeId, Long topicId); String getUriToTopicAssignmentTab(Long courseRepositoryEntryId, Long courseNodeId, Long projectId, String tabId); String getURIToProject(Long courseRepositoryEntryId, Long courseNodeId, Long projectId);  }