Minimal cleanup

This commit is contained in:
René Pfeuffer
2019-03-29 13:25:22 +01:00
parent 9833bfd34d
commit bf84037019
3 changed files with 7 additions and 8 deletions

View File

@@ -102,8 +102,6 @@ public class BranchRootResourceTest extends RepositoryTestBase {
branchRootResource = new BranchRootResource(serviceFactory, branchToDtoMapper, branchCollectionToDtoMapper, changesetCollectionToDtoMapper, resourceLinks);
super.branchRootResource = Providers.of(branchRootResource);
dispatcher = DispatcherMock.createDispatcher(getRepositoryRootResource());
// dispatcher.getRegistry().addSingletonResource(getRepositoryRootResource());
when(serviceFactory.create(new NamespaceAndName("space", "repo"))).thenReturn(service);
when(serviceFactory.create(any(Repository.class))).thenReturn(service);
when(service.getRepository()).thenReturn(new Repository("repoId", "git", "space", "repo"));