@Test public void extractUuidFromResourceLinks_shouldExtractUuidWhenMissingUuidPattern() { String category = CategoryEnum.PERSON_ADDRESS.getCategory(); Mockito.when(feedConfigurationService.getFeedConfigurationByCategory(category)) .thenReturn(createPersonAddressFeedConfiguration(true)); String uuid = atomFeedEventConfigurationService.extractUuidFromResourceLinks( createResourceLinks(true), category, CLIENT_WITH_DIFFERENT_PATTERN); Assert.assertNotNull(uuid); Assert.assertEquals(ADDRESS_UUID_FROM_DIFFERENT_CLIENT, uuid); }
@Override public String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory, String preferredClient) { String uuid = extractBasedOnLinkTemplates(eventResourceLinks, eventCategory, preferredClient); if (StringUtils.isBlank(uuid)) { uuid = extractBasedOnResourceLinks(eventResourceLinks, preferredClient); } return uuid; }
AtomfeedEventConfigurationServiceImpl implements EventConfigurationService { @Override public String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory, String preferredClient) { String uuid = extractBasedOnLinkTemplates(eventResourceLinks, eventCategory, preferredClient); if (StringUtils.isBlank(uuid)) { uuid = extractBasedOnResourceLinks(eventResourceLinks, preferredClient); } return uuid; } }
AtomfeedEventConfigurationServiceImpl implements EventConfigurationService { @Override public String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory, String preferredClient) { String uuid = extractBasedOnLinkTemplates(eventResourceLinks, eventCategory, preferredClient); if (StringUtils.isBlank(uuid)) { uuid = extractBasedOnResourceLinks(eventResourceLinks, preferredClient); } return uuid; }  }
AtomfeedEventConfigurationServiceImpl implements EventConfigurationService { @Override public String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory, String preferredClient) { String uuid = extractBasedOnLinkTemplates(eventResourceLinks, eventCategory, preferredClient); if (StringUtils.isBlank(uuid)) { uuid = extractBasedOnResourceLinks(eventResourceLinks, preferredClient); } return uuid; }  @Override EventConfiguration getEventConfigurationByCategory(SyncCategory categoryEnum); @Override String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory,
			String preferredClient); }
AtomfeedEventConfigurationServiceImpl implements EventConfigurationService { @Override public String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory, String preferredClient) { String uuid = extractBasedOnLinkTemplates(eventResourceLinks, eventCategory, preferredClient); if (StringUtils.isBlank(uuid)) { uuid = extractBasedOnResourceLinks(eventResourceLinks, preferredClient); } return uuid; }  @Override EventConfiguration getEventConfigurationByCategory(SyncCategory categoryEnum); @Override String extractUuidFromResourceLinks(Map<String, String> eventResourceLinks, String eventCategory,
			String preferredClient);  }