Skip to content
Snippets Groups Projects
Commit c102a3ed authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2966 OZG-3171 use urlProvider instead of properties

parent 0e84d026
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ public class UserRemoteService {
}
String buildUserProfileUri(UserId userId) {
return UriComponentsBuilder.fromUriString(String.format(userManagerProperties.getProfileTemplate(), userId.toString())).toUriString();
return UriComponentsBuilder.fromUriString(String.format(userManagerUrlProvider.getUserProfileTemplate(), userId.toString())).toUriString();
}
private HttpEntity<Object> buildHttpEntityWithAuthorization() {
......
......@@ -241,14 +241,14 @@ class UserRemoteServiceTest {
@BeforeEach
void mock() {
when(userManagerProperties.getProfileTemplate()).thenReturn(profileUriTemplate);
when(userManagerUrlProvider.getUserProfileTemplate()).thenReturn(profileUriTemplate);
}
@Test
void shouldCallUserManagerProperties() {
void shouldCallUserManagerUrlProvider() {
service.buildUserProfileUri(UserProfileTestFactory.ID);
verify(userManagerProperties).getProfileTemplate();
verify(userManagerUrlProvider).getUserProfileTemplate();
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment