@Test(expected=RuntimeException.class) public void testCreateEmptyNoId() throws Exception { NlmToDocumentWithBasicMetadataConverter.createEmpty(null); }
public static ExtractedDocumentMetadata createEmpty(String id) { if (id==null) { throw new RuntimeException("unable to set null id"); } ExtractedDocumentMetadata.Builder builder = ExtractedDocumentMetadata.newBuilder(); builder.setId(id); builder.setText(""); builder.setPublicationTypeName(EMPTY_META); return builder.build(); }
NlmToDocumentWithBasicMetadataConverter { public static ExtractedDocumentMetadata createEmpty(String id) { if (id==null) { throw new RuntimeException("unable to set null id"); } ExtractedDocumentMetadata.Builder builder = ExtractedDocumentMetadata.newBuilder(); builder.setId(id); builder.setText(""); builder.setPublicationTypeName(EMPTY_META); return builder.build(); } }
NlmToDocumentWithBasicMetadataConverter { public static ExtractedDocumentMetadata createEmpty(String id) { if (id==null) { throw new RuntimeException("unable to set null id"); } ExtractedDocumentMetadata.Builder builder = ExtractedDocumentMetadata.newBuilder(); builder.setId(id); builder.setText(""); builder.setPublicationTypeName(EMPTY_META); return builder.build(); } private  NlmToDocumentWithBasicMetadataConverter(); }
NlmToDocumentWithBasicMetadataConverter { public static ExtractedDocumentMetadata createEmpty(String id) { if (id==null) { throw new RuntimeException("unable to set null id"); } ExtractedDocumentMetadata.Builder builder = ExtractedDocumentMetadata.newBuilder(); builder.setId(id); builder.setText(""); builder.setPublicationTypeName(EMPTY_META); return builder.build(); } private  NlmToDocumentWithBasicMetadataConverter(); static ExtractedDocumentMetadata convertFull(String id, Document source, String text); static ExtractedDocumentMetadata createEmpty(String id); }
NlmToDocumentWithBasicMetadataConverter { public static ExtractedDocumentMetadata createEmpty(String id) { if (id==null) { throw new RuntimeException("unable to set null id"); } ExtractedDocumentMetadata.Builder builder = ExtractedDocumentMetadata.newBuilder(); builder.setId(id); builder.setText(""); builder.setPublicationTypeName(EMPTY_META); return builder.build(); } private  NlmToDocumentWithBasicMetadataConverter(); static ExtractedDocumentMetadata convertFull(String id, Document source, String text); static ExtractedDocumentMetadata createEmpty(String id); static final String EMPTY_META; }