@Test void convertToDocument() { Document result = documentConverter.convert(Document.class, xWikiDocument); assertSame(this.xWikiDocument, result.getDocument()); verify(this.contextProvider, times(1)).get(); }
private Document convertToDocument(XWikiDocument document) { return document.newDocument(this.contextProvider.get()); }
XWikiDocumentConverter extends AbstractConverter<XWikiDocument> { private Document convertToDocument(XWikiDocument document) { return document.newDocument(this.contextProvider.get()); } }
XWikiDocumentConverter extends AbstractConverter<XWikiDocument> { private Document convertToDocument(XWikiDocument document) { return document.newDocument(this.contextProvider.get()); }  }
XWikiDocumentConverter extends AbstractConverter<XWikiDocument> { private Document convertToDocument(XWikiDocument document) { return document.newDocument(this.contextProvider.get()); }  @Override G convert(Type targetType, Object sourceValue); @Override XWikiDocument convertToType(Type targetType, Object sourceValue); }
XWikiDocumentConverter extends AbstractConverter<XWikiDocument> { private Document convertToDocument(XWikiDocument document) { return document.newDocument(this.contextProvider.get()); }  @Override G convert(Type targetType, Object sourceValue); @Override XWikiDocument convertToType(Type targetType, Object sourceValue);  }