@ConditionalRun(RepositoryInstalled.MercurialInstalled.class) @Test public void testRepositoryMatchingSourceRoot() throws IllegalAccessException, InvocationTargetException, ForbiddenSymlinkException, InstantiationException, NoSuchMethodException, IOException { File root = new File(repository.getSourceRoot(), "mercurial"); env.setSourceRoot(root.getAbsolutePath()); env.setProjectsEnabled(true); Repository repo = RepositoryFactory.getRepository(root); assertNull("should not get repo for root if projects enabled", repo); }
public static Repository getRepository(File file) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IOException, ForbiddenSymlinkException { return getRepository(file, CommandTimeoutType.INDEXER); }
RepositoryFactory { public static Repository getRepository(File file) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IOException, ForbiddenSymlinkException { return getRepository(file, CommandTimeoutType.INDEXER); } }
RepositoryFactory { public static Repository getRepository(File file) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IOException, ForbiddenSymlinkException { return getRepository(file, CommandTimeoutType.INDEXER); } private  RepositoryFactory(); }
RepositoryFactory { public static Repository getRepository(File file) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IOException, ForbiddenSymlinkException { return getRepository(file, CommandTimeoutType.INDEXER); } private  RepositoryFactory(); static List<Class<? extends Repository>> getRepositoryClasses(); static List<Class<? extends Repository>> getDisabledRepositoryClasses(); static Repository getRepository(File file); static Repository getRepository(File file, CommandTimeoutType cmdType); static Repository getRepository(File file, CommandTimeoutType cmdType, boolean isNested); static Repository getRepository(RepositoryInfo info, CommandTimeoutType cmdType); static void initializeIgnoredNames(RuntimeEnvironment env); static String matchRepositoryByName(String name); }
RepositoryFactory { public static Repository getRepository(File file) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IOException, ForbiddenSymlinkException { return getRepository(file, CommandTimeoutType.INDEXER); } private  RepositoryFactory(); static List<Class<? extends Repository>> getRepositoryClasses(); static List<Class<? extends Repository>> getDisabledRepositoryClasses(); static Repository getRepository(File file); static Repository getRepository(File file, CommandTimeoutType cmdType); static Repository getRepository(File file, CommandTimeoutType cmdType, boolean isNested); static Repository getRepository(RepositoryInfo info, CommandTimeoutType cmdType); static void initializeIgnoredNames(RuntimeEnvironment env); static String matchRepositoryByName(String name);  }