@Test(expected = NullPointerException.class) public void convert_NULL() { converter.convert(null); }
public Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation) { Preconditions.checkNotNull(directCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(directCitation.getPosition()) .setRawText(null) .setDestinationDocumentId(directCitation.getDestinationDocumentId()) .setConfidenceLevel(1f) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); Citation citation = Citation.newBuilder() .setSourceDocumentId(directCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); return citation; }
DirectCitationToCitationConverter implements Serializable { public Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation) { Preconditions.checkNotNull(directCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(directCitation.getPosition()) .setRawText(null) .setDestinationDocumentId(directCitation.getDestinationDocumentId()) .setConfidenceLevel(1f) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); Citation citation = Citation.newBuilder() .setSourceDocumentId(directCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); return citation; } }
DirectCitationToCitationConverter implements Serializable { public Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation) { Preconditions.checkNotNull(directCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(directCitation.getPosition()) .setRawText(null) .setDestinationDocumentId(directCitation.getDestinationDocumentId()) .setConfidenceLevel(1f) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); Citation citation = Citation.newBuilder() .setSourceDocumentId(directCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); return citation; }  }
DirectCitationToCitationConverter implements Serializable { public Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation) { Preconditions.checkNotNull(directCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(directCitation.getPosition()) .setRawText(null) .setDestinationDocumentId(directCitation.getDestinationDocumentId()) .setConfidenceLevel(1f) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); Citation citation = Citation.newBuilder() .setSourceDocumentId(directCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); return citation; }  Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation); }
DirectCitationToCitationConverter implements Serializable { public Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation) { Preconditions.checkNotNull(directCitation); CitationEntry citationEntry = CitationEntry.newBuilder() .setPosition(directCitation.getPosition()) .setRawText(null) .setDestinationDocumentId(directCitation.getDestinationDocumentId()) .setConfidenceLevel(1f) .setExternalDestinationDocumentIds(Maps.newHashMap()) .build(); Citation citation = Citation.newBuilder() .setSourceDocumentId(directCitation.getSourceDocumentId()) .setEntry(citationEntry) .build(); return citation; }  Citation convert(eu.dnetlib.iis.citationmatching.direct.schemas.Citation directCitation);  }