@Test public void testBuildUri() throws Exception { String rootUri = "rootUriPart"; int startElement = 1; int pageSize = 10; String result = SoftwareHeritageOriginsImporter.buildUri(rootUri, startElement, pageSize); assertNotNull(result); assertEquals("rootUriPart?page_token=1&origin_count=10", result); }
protected static String buildUri(String rootUri, int startElement, int pageSize) { StringBuilder strBuilder = new StringBuilder(rootUri); strBuilder.append("?page_token="); strBuilder.append(startElement); strBuilder.append("&origin_count="); strBuilder.append(pageSize); return strBuilder.toString(); }
SoftwareHeritageOriginsImporter implements eu.dnetlib.iis.common.java.Process { protected static String buildUri(String rootUri, int startElement, int pageSize) { StringBuilder strBuilder = new StringBuilder(rootUri); strBuilder.append("?page_token="); strBuilder.append(startElement); strBuilder.append("&origin_count="); strBuilder.append(pageSize); return strBuilder.toString(); } }
SoftwareHeritageOriginsImporter implements eu.dnetlib.iis.common.java.Process { protected static String buildUri(String rootUri, int startElement, int pageSize) { StringBuilder strBuilder = new StringBuilder(rootUri); strBuilder.append("?page_token="); strBuilder.append(startElement); strBuilder.append("&origin_count="); strBuilder.append(pageSize); return strBuilder.toString(); } SoftwareHeritageOriginsImporter(); }
SoftwareHeritageOriginsImporter implements eu.dnetlib.iis.common.java.Process { protected static String buildUri(String rootUri, int startElement, int pageSize) { StringBuilder strBuilder = new StringBuilder(rootUri); strBuilder.append("?page_token="); strBuilder.append(startElement); strBuilder.append("&origin_count="); strBuilder.append(pageSize); return strBuilder.toString(); } SoftwareHeritageOriginsImporter(); @Override Map<String, PortType> getInputPorts(); @Override Map<String, PortType> getOutputPorts(); @Override void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters); }
SoftwareHeritageOriginsImporter implements eu.dnetlib.iis.common.java.Process { protected static String buildUri(String rootUri, int startElement, int pageSize) { StringBuilder strBuilder = new StringBuilder(rootUri); strBuilder.append("?page_token="); strBuilder.append(startElement); strBuilder.append("&origin_count="); strBuilder.append(pageSize); return strBuilder.toString(); } SoftwareHeritageOriginsImporter(); @Override Map<String, PortType> getInputPorts(); @Override Map<String, PortType> getOutputPorts(); @Override void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters); static final String DEFAULT_METAFILE_NAME; }