test_class.declarator: LOGGER = LoggerFactory.getLogger(MultiRepositoryManagerTest.class)
test_class.modifier: protected static final
test_class.original_string: protected static final Logger LOGGER = LoggerFactory.getLogger(MultiRepositoryManagerTest.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: workspaceRepositoryRoot
test_class.modifier: static
test_class.original_string: static String workspaceRepositoryRoot;
test_class.type: String
test_class.var_name: workspaceRepositoryRoot
test_class.file: org.eclipse.winery.repository/src/test/java/org/eclipse/winery/repository/backend/filebased/MultiRepositoryManagerTest.java
test_class.identifier: MultiRepositoryManagerTest
test_case.body: @Test
      public void testRepositoryListImport() throws UnsupportedEncodingException {
          ArrayList<RepositoryProperties> repositoryList = new ArrayList<>();
          repositoryList.add(new RepositoryProperties("mainTestRepository",
              "https://github.com/winery/mulit-repo-test"));
          repositoryList.add(new RepositoryProperties("standardTestRepository", "https://github.com/winery/test-repository", "plain"));
          MultiRepositoryManager multiRepositoryManager = new MultiRepositoryManager();
          multiRepositoryManager.addRepositoryToFile(repositoryList);
          try {
              assertTrue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(), URLEncoder.encode("https://github.com/winery", "UTF-8")).toFile().exists());
              assertTrue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(), URLEncoder.encode("https://github.com/winery", "UTF-8"), "mulit-repo-test").toFile().exists());
              assertTrue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(), URLEncoder.encode("https://github.com/winery", "UTF-8"), "multi-repo-dependency").toFile().exists());
              assertTrue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(), URLEncoder.encode("https://github.com/winery", "UTF-8"), "test-repository").toFile().exists());
          } catch (UnsupportedEncodingException e) {
              LOGGER.error("Error while encoding.");
              throw e;
          }
      }
test_case.class_method_signature: MultiRepositoryManagerTest.testRepositoryListImport()
test_case.full_signature: @Test public void testRepositoryListImport()
test_case.identifier: testRepositoryListImport
test_case.invocations: add add addRepositoryToFile assertTrue exists toFile get getRepositoryRoot getRepositoryConfig getInstance encode assertTrue exists toFile get getRepositoryRoot getRepositoryConfig getInstance encode assertTrue exists toFile get getRepositoryRoot getRepositoryConfig getInstance encode assertTrue exists toFile get getRepositoryRoot getRepositoryConfig getInstance encode error
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRepositoryListImport()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(MultiRepositoryManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(MultiRepositoryManager.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: org.eclipse.winery.repository/src/main/java/org/eclipse/winery/repository/backend/filebased/MultiRepositoryManager.java
focal_class.identifier: MultiRepositoryManager
focal_class.class_method_signature: MultiRepositoryManager.initializeRepositoryListForMultiRepositoryAndReconfigureFactory(List<RepositoryProperties> repositoryList)
focal_class.full_signature:  void initializeRepositoryListForMultiRepositoryAndReconfigureFactory(List<RepositoryProperties> repositoryList)
focal_class.identifier: initializeRepositoryListForMultiRepositoryAndReconfigureFactory
focal_class.parameters: (List<RepositoryProperties> repositoryList)
focal_class.return: void
focal_class.signature: void initializeRepositoryListForMultiRepositoryAndReconfigureFactory(List<RepositoryProperties> repositoryList)
focal_class.class_method_signature: MultiRepositoryManager.isMultiRepositoryFileStuctureEstablished(Path repoPath)
focal_class.full_signature:  boolean isMultiRepositoryFileStuctureEstablished(Path repoPath)
focal_class.identifier: isMultiRepositoryFileStuctureEstablished
focal_class.parameters: (Path repoPath)
focal_class.return: boolean
focal_class.signature: boolean isMultiRepositoryFileStuctureEstablished(Path repoPath)
focal_class.class_method_signature: MultiRepositoryManager.createMultiRepositoryFileStructure(Path oldPath, Path newPath)
focal_class.full_signature:  void createMultiRepositoryFileStructure(Path oldPath, Path newPath)
focal_class.identifier: createMultiRepositoryFileStructure
focal_class.parameters: (Path oldPath, Path newPath)
focal_class.return: void
focal_class.signature: void createMultiRepositoryFileStructure(Path oldPath, Path newPath)
focal_class.class_method_signature: MultiRepositoryManager.getRepositoriesAsList()
focal_class.full_signature: public List<RepositoryProperties> getRepositoriesAsList()
focal_class.identifier: getRepositoriesAsList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<RepositoryProperties>
focal_class.signature: List<RepositoryProperties> getRepositoriesAsList()
focal_class.class_method_signature: MultiRepositoryManager.addRepositoryToFile(List<RepositoryProperties> repositories)
focal_class.full_signature: public void addRepositoryToFile(List<RepositoryProperties> repositories)
focal_class.identifier: addRepositoryToFile
focal_class.modifiers: public
focal_class.parameters: (List<RepositoryProperties> repositories)
focal_class.return: void
focal_class.signature: void addRepositoryToFile(List<RepositoryProperties> repositories)
focal_method.body: public void addRepositoryToFile(List<RepositoryProperties> repositories) {
          IRepository repo = RepositoryFactory.getRepository();
          if (!(repo instanceof MultiRepository)) {
              initializeRepositoryListForMultiRepositoryAndReconfigureFactory(repositories);
              repo = RepositoryFactory.getRepository();
          }
          ((MultiRepository) repo).addRepositoryToFile(repositories);
      }
focal_method.class_method_signature: MultiRepositoryManager.addRepositoryToFile(List<RepositoryProperties> repositories)
focal_method.full_signature: public void addRepositoryToFile(List<RepositoryProperties> repositories)
focal_method.identifier: addRepositoryToFile
focal_method.invocations: getRepository initializeRepositoryListForMultiRepositoryAndReconfigureFactory getRepository addRepositoryToFile
focal_method.modifiers: public
focal_method.parameters: (List<RepositoryProperties> repositories)
focal_method.return: void
focal_method.signature: void addRepositoryToFile(List<RepositoryProperties> repositories)