SoftwareHeritageOriginsImporter implements eu.dnetlib.iis.common.java.Process { @Override public Map<String, PortType> getOutputPorts() { return outputPorts; } 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; }
@Test public void testGetOutputPorts() throws Exception { SoftwareHeritageOriginsImporter importer = new SoftwareHeritageOriginsImporter(); Map<String, PortType> result = importer.getOutputPorts(); assertNotNull(result); assertNotNull(result.get(SoftwareHeritageOriginsImporter.PORT_OUT_ORIGINS)); assertTrue(result.get(SoftwareHeritageOriginsImporter.PORT_OUT_ORIGINS) instanceof AvroPortType); assertTrue(SoftwareHeritageOrigin.SCHEMA$ == ((AvroPortType)result.get(SoftwareHeritageOriginsImporter.PORT_OUT_ORIGINS)).getSchema()); }