@Test public void testLocalRepoEmpty() throws Exception { Hashtable<String, Object> config = new Hashtable<>(); assertEquals(null, MavenConfigService.getLocalRepoFromConfig(config)); }
static String getLocalRepoFromConfig(Dictionary<String, Object> dict) { String path = null; if (dict != null) { path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); if (path == null) { String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); if (settings != null) { path = getLocalRepositoryFromSettings(new File(settings)); } } } return path; }
MavenConfigService { static String getLocalRepoFromConfig(Dictionary<String, Object> dict) { String path = null; if (dict != null) { path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); if (path == null) { String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); if (settings != null) { path = getLocalRepositoryFromSettings(new File(settings)); } } } return path; } }
MavenConfigService { static String getLocalRepoFromConfig(Dictionary<String, Object> dict) { String path = null; if (dict != null) { path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); if (path == null) { String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); if (settings != null) { path = getLocalRepositoryFromSettings(new File(settings)); } } } return path; } MavenConfigService(ConfigurationAdmin configurationAdmin); }
MavenConfigService { static String getLocalRepoFromConfig(Dictionary<String, Object> dict) { String path = null; if (dict != null) { path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); if (path == null) { String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); if (settings != null) { path = getLocalRepositoryFromSettings(new File(settings)); } } } return path; } MavenConfigService(ConfigurationAdmin configurationAdmin);  }
MavenConfigService { static String getLocalRepoFromConfig(Dictionary<String, Object> dict) { String path = null; if (dict != null) { path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); if (path == null) { String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); if (settings != null) { path = getLocalRepositoryFromSettings(new File(settings)); } } } return path; } MavenConfigService(ConfigurationAdmin configurationAdmin);   }