@Test(expected = InvalidSpecFileException.class) public void gitHubToProxiedSpecInvalidGitUriTest() throws Exception { String spec = "{" + "\"name\": \"MasonryHidden\"," + "\"version\": \"1.0.0\"," + "\"source\": {\n" + "\"git\": \"git@gitlab.gbksoft.net:gbksoft-mobile-department/ios/gbkslidemenu.git\"," + "\"tag\": \"0.5.0\"" + "}" + "}"; URI repoUri = URI.create("http: new SpecFileProcessor(gitApiHelper).toProxiedSpec(spec, repoUri); }
public String toProxiedSpec(final String specFile, final URI repoUri) throws InvalidSpecFileException { try { return transformSpec(specFile, repoUri); } catch (IOException ioe) { throw new InvalidSpecFileException(specFile, ioe); } }
SpecFileProcessor { public String toProxiedSpec(final String specFile, final URI repoUri) throws InvalidSpecFileException { try { return transformSpec(specFile, repoUri); } catch (IOException ioe) { throw new InvalidSpecFileException(specFile, ioe); } } }
SpecFileProcessor { public String toProxiedSpec(final String specFile, final URI repoUri) throws InvalidSpecFileException { try { return transformSpec(specFile, repoUri); } catch (IOException ioe) { throw new InvalidSpecFileException(specFile, ioe); } } @Inject  SpecFileProcessor(final GitApiHelper gitApiHelper); }
SpecFileProcessor { public String toProxiedSpec(final String specFile, final URI repoUri) throws InvalidSpecFileException { try { return transformSpec(specFile, repoUri); } catch (IOException ioe) { throw new InvalidSpecFileException(specFile, ioe); } } @Inject  SpecFileProcessor(final GitApiHelper gitApiHelper); String toProxiedSpec(final String specFile, final URI repoUri); URI extractExternalUri(final String specFile); }
SpecFileProcessor { public String toProxiedSpec(final String specFile, final URI repoUri) throws InvalidSpecFileException { try { return transformSpec(specFile, repoUri); } catch (IOException ioe) { throw new InvalidSpecFileException(specFile, ioe); } } @Inject  SpecFileProcessor(final GitApiHelper gitApiHelper); String toProxiedSpec(final String specFile, final URI repoUri); URI extractExternalUri(final String specFile);  }