@Test public void convert() { ExtractedDocumentMetadataMergedWithOriginal document = new ExtractedDocumentMetadataMergedWithOriginal(); document.setId("XYZ"); document.setAbstract$("This is an abstract"); DocumentMetadata metadata = converter.convert(document); assertEquals(document.getId(), metadata.getId()); assertEquals(document.getAbstract$(), metadata.getAbstract$()); }
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);  }