@Test public void testGetPatentMetadaUrl() throws Exception { ImportedPatent.Builder patentBuilder = initializeWithDummyValues(); patentBuilder.setPublnAuth("pubAuth"); patentBuilder.setPublnKind("pubKind"); patentBuilder.setPublnNr("pubNr"); String url = OpenPatentWebServiceFacade.getPatentMetaUrl(patentBuilder.build(), opsUriRoot); assertNotNull(url); assertEquals(opsUriRoot + "/" + patentBuilder.getPublnAuth() + "." + patentBuilder.getPublnNr() + "." + patentBuilder.getPublnKind() + "/biblio", url); }
protected static String getPatentMetaUrl(ImportedPatent patent, String urlRoot) { StringBuilder strBuilder = new StringBuilder(urlRoot); if (!urlRoot.endsWith("/")) { strBuilder.append('/'); } strBuilder.append(patent.getPublnAuth()); strBuilder.append('.'); strBuilder.append(patent.getPublnNr()); strBuilder.append('.'); strBuilder.append(patent.getPublnKind()); strBuilder.append("/biblio"); return strBuilder.toString(); }
OpenPatentWebServiceFacade implements PatentServiceFacade { protected static String getPatentMetaUrl(ImportedPatent patent, String urlRoot) { StringBuilder strBuilder = new StringBuilder(urlRoot); if (!urlRoot.endsWith("/")) { strBuilder.append('/'); } strBuilder.append(patent.getPublnAuth()); strBuilder.append('.'); strBuilder.append(patent.getPublnNr()); strBuilder.append('.'); strBuilder.append(patent.getPublnKind()); strBuilder.append("/biblio"); return strBuilder.toString(); } }
OpenPatentWebServiceFacade implements PatentServiceFacade { protected static String getPatentMetaUrl(ImportedPatent patent, String urlRoot) { StringBuilder strBuilder = new StringBuilder(urlRoot); if (!urlRoot.endsWith("/")) { strBuilder.append('/'); } strBuilder.append(patent.getPublnAuth()); strBuilder.append('.'); strBuilder.append(patent.getPublnNr()); strBuilder.append('.'); strBuilder.append(patent.getPublnKind()); strBuilder.append("/biblio"); return strBuilder.toString(); } OpenPatentWebServiceFacade(ConnectionDetails connDetails); protected  OpenPatentWebServiceFacade(CloseableHttpClient httpClient, HttpHost authHost, String authUriRoot, HttpHost opsHost,
            String opsUriRoot, String consumerCredential, long throttleSleepTime, int maxRetriesCount,
            JsonParser jsonParser); }
OpenPatentWebServiceFacade implements PatentServiceFacade { protected static String getPatentMetaUrl(ImportedPatent patent, String urlRoot) { StringBuilder strBuilder = new StringBuilder(urlRoot); if (!urlRoot.endsWith("/")) { strBuilder.append('/'); } strBuilder.append(patent.getPublnAuth()); strBuilder.append('.'); strBuilder.append(patent.getPublnNr()); strBuilder.append('.'); strBuilder.append(patent.getPublnKind()); strBuilder.append("/biblio"); return strBuilder.toString(); } OpenPatentWebServiceFacade(ConnectionDetails connDetails); protected  OpenPatentWebServiceFacade(CloseableHttpClient httpClient, HttpHost authHost, String authUriRoot, HttpHost opsHost,
            String opsUriRoot, String consumerCredential, long throttleSleepTime, int maxRetriesCount,
            JsonParser jsonParser); @Override String getPatentMetadata(ImportedPatent patent); }
OpenPatentWebServiceFacade implements PatentServiceFacade { protected static String getPatentMetaUrl(ImportedPatent patent, String urlRoot) { StringBuilder strBuilder = new StringBuilder(urlRoot); if (!urlRoot.endsWith("/")) { strBuilder.append('/'); } strBuilder.append(patent.getPublnAuth()); strBuilder.append('.'); strBuilder.append(patent.getPublnNr()); strBuilder.append('.'); strBuilder.append(patent.getPublnKind()); strBuilder.append("/biblio"); return strBuilder.toString(); } OpenPatentWebServiceFacade(ConnectionDetails connDetails); protected  OpenPatentWebServiceFacade(CloseableHttpClient httpClient, HttpHost authHost, String authUriRoot, HttpHost opsHost,
            String opsUriRoot, String consumerCredential, long throttleSleepTime, int maxRetriesCount,
            JsonParser jsonParser); @Override String getPatentMetadata(ImportedPatent patent);  }