@Test void createDocumentObject() { String entityId = "id"; Document document = documentContentBuilder.createDocument(entityId); Document expectedDocument = Document.builder().setId(entityId).build(); assertEquals(expectedDocument, document); }
Document createDocument(Object entityId) { String documentId = toElasticsearchId(entityId); return Document.builder().setId(documentId).build(); }
DocumentContentBuilder { Document createDocument(Object entityId) { String documentId = toElasticsearchId(entityId); return Document.builder().setId(documentId).build(); } }
DocumentContentBuilder { Document createDocument(Object entityId) { String documentId = toElasticsearchId(entityId); return Document.builder().setId(documentId).build(); } DocumentContentBuilder(DocumentIdGenerator documentIdGenerator); }
DocumentContentBuilder { Document createDocument(Object entityId) { String documentId = toElasticsearchId(entityId); return Document.builder().setId(documentId).build(); } DocumentContentBuilder(DocumentIdGenerator documentIdGenerator);  }
DocumentContentBuilder { Document createDocument(Object entityId) { String documentId = toElasticsearchId(entityId); return Document.builder().setId(documentId).build(); } DocumentContentBuilder(DocumentIdGenerator documentIdGenerator);   }