use of com.xpn.xwiki.doc.merge.MergeException in project xwiki-platform by xwiki.
the class XWikiDocumentMergeTest method merge.
private MergeResult merge() throws Exception {
MergeResult result = this.currentDocument.merge(this.previousDocument, this.nextDocument, this.configuration, this.oldcore.getXWikiContext());
List<LogEvent> exception = result.getLog().getLogs(LogLevel.ERROR);
if (!exception.isEmpty()) {
throw new MergeException(exception.get(0).getFormattedMessage(), exception.get(0).getThrowable());
}
return result;
}
Aggregations