@Test public void getURL() throws Exception { List<String> stringList = Arrays.asList("flavor", "search", "wiki:xwiki"); URL expectedUrl = new URL("http: assertEquals(expectedUrl, this.jobStatusRestURLGenerator.getURL(stringList)); }
@Override public URL getURL(List<String> id) throws XWikiRestException { try { return Utils.createURI(getBaseURI(), JobStatusResource.class, id).toURL(); } catch (MalformedURLException e) { throw new XWikiRestException(String.format("Failed to generate a REST URL for the job id [%s].", id), e); } }
JobStatusRestURLGenerator extends AbstractJobRestURLGenerator<List<String>> { @Override public URL getURL(List<String> id) throws XWikiRestException { try { return Utils.createURI(getBaseURI(), JobStatusResource.class, id).toURL(); } catch (MalformedURLException e) { throw new XWikiRestException(String.format("Failed to generate a REST URL for the job id [%s].", id), e); } } }
JobStatusRestURLGenerator extends AbstractJobRestURLGenerator<List<String>> { @Override public URL getURL(List<String> id) throws XWikiRestException { try { return Utils.createURI(getBaseURI(), JobStatusResource.class, id).toURL(); } catch (MalformedURLException e) { throw new XWikiRestException(String.format("Failed to generate a REST URL for the job id [%s].", id), e); } }  }
JobStatusRestURLGenerator extends AbstractJobRestURLGenerator<List<String>> { @Override public URL getURL(List<String> id) throws XWikiRestException { try { return Utils.createURI(getBaseURI(), JobStatusResource.class, id).toURL(); } catch (MalformedURLException e) { throw new XWikiRestException(String.format("Failed to generate a REST URL for the job id [%s].", id), e); } }  @Override URL getURL(List<String> id); }
JobStatusRestURLGenerator extends AbstractJobRestURLGenerator<List<String>> { @Override public URL getURL(List<String> id) throws XWikiRestException { try { return Utils.createURI(getBaseURI(), JobStatusResource.class, id).toURL(); } catch (MalformedURLException e) { throw new XWikiRestException(String.format("Failed to generate a REST URL for the job id [%s].", id), e); } }  @Override URL getURL(List<String> id);  }