@Test(expected = NullPointerException.class) public void convert_NULL_CITATION() { converter.convert(null); }
public eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation) { Preconditions.checkNotNull(inputCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(inputCitation.getPosition()) .setDestinationDocumentId(inputCitation.getDestinationDocumentId()) .setConfidenceLevel(inputCitation.getConfidenceLevel()) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); return eu.dnetlib.iis.common.citations.schemas.Citation.newBuilder() .setSourceDocumentId(inputCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); }
CitationToCommonCitationConverter { public eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation) { Preconditions.checkNotNull(inputCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(inputCitation.getPosition()) .setDestinationDocumentId(inputCitation.getDestinationDocumentId()) .setConfidenceLevel(inputCitation.getConfidenceLevel()) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); return eu.dnetlib.iis.common.citations.schemas.Citation.newBuilder() .setSourceDocumentId(inputCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); } }
CitationToCommonCitationConverter { public eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation) { Preconditions.checkNotNull(inputCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(inputCitation.getPosition()) .setDestinationDocumentId(inputCitation.getDestinationDocumentId()) .setConfidenceLevel(inputCitation.getConfidenceLevel()) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); return eu.dnetlib.iis.common.citations.schemas.Citation.newBuilder() .setSourceDocumentId(inputCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); }  }
CitationToCommonCitationConverter { public eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation) { Preconditions.checkNotNull(inputCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(inputCitation.getPosition()) .setDestinationDocumentId(inputCitation.getDestinationDocumentId()) .setConfidenceLevel(inputCitation.getConfidenceLevel()) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); return eu.dnetlib.iis.common.citations.schemas.Citation.newBuilder() .setSourceDocumentId(inputCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); }  eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation); }
CitationToCommonCitationConverter { public eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation) { Preconditions.checkNotNull(inputCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(inputCitation.getPosition()) .setDestinationDocumentId(inputCitation.getDestinationDocumentId()) .setConfidenceLevel(inputCitation.getConfidenceLevel()) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); return eu.dnetlib.iis.common.citations.schemas.Citation.newBuilder() .setSourceDocumentId(inputCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); }  eu.dnetlib.iis.common.citations.schemas.Citation convert(Citation inputCitation);  }