@Test public void getURIToSourceEntry_Wiki() { when(publisher.getSourceType()).thenReturn(WikiNotificationTypeHandler.WIKI_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 + "/path%3D" + sourceEntryId + "/0", 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 getURIToEventSource(Publisher publisher); String getURIToSourceEntry(Publisher publisher, String sourceEntryId); void setServerContextPathURI(String serverContextPathURI); String getNotificationTabContext(); String getUriToNotificationSettings(); String getUriToNotificationNews(); }
UriBuilder { public String getURIToSourceEntry(Publisher publisher, String sourceEntryId) { return getURIToEventSource(publisher) + typeHandlerSelector.getTypeHandler(publisher.getSourceType()).getSourceEntryPath(sourceEntryId); } UriBuilder(); String getURIToContext(Publisher publisher); String getURIToEventSource(Publisher publisher); String getURIToSourceEntry(Publisher publisher, String sourceEntryId); void setServerContextPathURI(String serverContextPathURI); String getNotificationTabContext(); String getUriToNotificationSettings(); String getUriToNotificationNews();  }