@Test public void getManager() { ProjectRepositoryManagerFactory factory = new ProjectRepositoryManagerFactory(); ProjectRepositoryManager repoManager = factory.getManager(new File("."), "project"); assertNotNull(repoManager); }
ProjectRepositoryManager getManager(File reposDir, String projectName) { Assert.notNull(reposDir); Assert.hasLength(projectName); File projectDir = new File(reposDir, projectName); return new ProjectRepositoryManager(projectName, projectDir, lockManager, eventBus); }
ProjectRepositoryManagerFactory { ProjectRepositoryManager getManager(File reposDir, String projectName) { Assert.notNull(reposDir); Assert.hasLength(projectName); File projectDir = new File(reposDir, projectName); return new ProjectRepositoryManager(projectName, projectDir, lockManager, eventBus); } }
ProjectRepositoryManagerFactory { ProjectRepositoryManager getManager(File reposDir, String projectName) { Assert.notNull(reposDir); Assert.hasLength(projectName); File projectDir = new File(reposDir, projectName); return new ProjectRepositoryManager(projectName, projectDir, lockManager, eventBus); }  }
ProjectRepositoryManagerFactory { ProjectRepositoryManager getManager(File reposDir, String projectName) { Assert.notNull(reposDir); Assert.hasLength(projectName); File projectDir = new File(reposDir, projectName); return new ProjectRepositoryManager(projectName, projectDir, lockManager, eventBus); }   }
ProjectRepositoryManagerFactory { ProjectRepositoryManager getManager(File reposDir, String projectName) { Assert.notNull(reposDir); Assert.hasLength(projectName); File projectDir = new File(reposDir, projectName); return new ProjectRepositoryManager(projectName, projectDir, lockManager, eventBus); }    }