HttpRepository implements Repository { @Override public String configShortName(String config) { if (!config.startsWith("@")) { return null; } config = config.substring(1); if (configShortNamePattern != null) { Matcher matcher = configShortNamePattern.matcher(config); if (matcher.matches()) { return matcher.group(1).replaceAll("[:%/ !$]", "_"); } } return config; } @Inject  HttpRepository(CoordinatorConfig config);  HttpRepository(Iterable<URI> baseUris, String configShortNamePattern, String configVersionPattern, String binaryVersionPattern); @Override String configShortName(String config); @Override String configRelativize(String config); @Override String configResolve(String config); @Override String configUpgrade(String config, String version); @Override boolean configEqualsIgnoreVersion(String config1, String config2); @Override URI configToHttpUri(String config); @Override String binaryRelativize(String binary); @Override String binaryResolve(String binary); @Override String binaryUpgrade(String binary, String version); @Override boolean binaryEqualsIgnoreVersion(String binary1, String binary2); @Override URI binaryToHttpUri(String binary); static String upgradePath(String spec, String version, Pattern versionPattern); @Override String toString();  }
@Test public void configShortName() throws Exception { Assert.assertEquals(repo.configShortName("@apple-1.0.config"), "apple"); }