@Test(expected = NullPointerException.class) public void convert_Null_Document() { converter.convert(null); }
public DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document) { Preconditions.checkNotNull(document); DocumentMetadata metadata = new DocumentMetadata(); metadata.setAbstract$(document.getAbstract$()); metadata.setId(document.getId()); return metadata; }
DocumentToDocClassificationMetadataConverter { public DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document) { Preconditions.checkNotNull(document); DocumentMetadata metadata = new DocumentMetadata(); metadata.setAbstract$(document.getAbstract$()); metadata.setId(document.getId()); return metadata; } }
DocumentToDocClassificationMetadataConverter { public DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document) { Preconditions.checkNotNull(document); DocumentMetadata metadata = new DocumentMetadata(); metadata.setAbstract$(document.getAbstract$()); metadata.setId(document.getId()); return metadata; }  }
DocumentToDocClassificationMetadataConverter { public DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document) { Preconditions.checkNotNull(document); DocumentMetadata metadata = new DocumentMetadata(); metadata.setAbstract$(document.getAbstract$()); metadata.setId(document.getId()); return metadata; }  DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document); }
DocumentToDocClassificationMetadataConverter { public DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document) { Preconditions.checkNotNull(document); DocumentMetadata metadata = new DocumentMetadata(); metadata.setAbstract$(document.getAbstract$()); metadata.setId(document.getId()); return metadata; }  DocumentMetadata convert(ExtractedDocumentMetadataMergedWithOriginal document);  }