com.relevantcodes.extentreports.utils.MongoUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extentreports Show documentation
Show all versions of extentreports Show documentation
An open-source reporting library for Java, .Net and Ruby.
The newest version!
package com.relevantcodes.extentreports.utils;
import org.bson.Document;
import org.bson.types.ObjectId;
public class MongoUtil {
public static ObjectId getId(Document doc) {
return (ObjectId) doc.get("_id");
}
}