Give name to initialization

This commit is contained in:
René Pfeuffer
2018-09-12 09:19:52 +02:00
parent 7c09f35ac8
commit af55bf6117
4 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ public class GroupCollectionToDtoMapperTest {
@Before
public void init() throws URISyntaxException {
scmPathInfoStore.set(uriInfo);
scmPathInfoStore.setFromRestRequest(uriInfo);
URI baseUri = new URI("http://example.com/base/");
expectedBaseUri = baseUri.resolve(GroupRootResource.GROUPS_PATH_V2 + "/");
when(uriInfo.getBaseUri()).thenReturn(baseUri);

View File

@@ -20,7 +20,7 @@ public class ScmPathInfoStoreTest {
when(uriInfo.getBaseUri()).thenReturn(someUri);
scmPathInfoStore.set(uriInfo);
scmPathInfoStore.setFromRestRequest(uriInfo);
assertSame(someUri, scmPathInfoStore.get().getApiRestUri());
}
@@ -30,7 +30,7 @@ public class ScmPathInfoStoreTest {
UriInfo uriInfo = mock(UriInfo.class);
ScmPathInfoStore scmPathInfoStore = new ScmPathInfoStore();
scmPathInfoStore.set(uriInfo);
scmPathInfoStore.set(uriInfo);
scmPathInfoStore.setFromRestRequest(uriInfo);
scmPathInfoStore.setFromRestRequest(uriInfo);
}
}