Class TestUtils


  • public class TestUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bson.Document getCollectionStatistics​(com.mongodb.client.MongoDatabase database, java.lang.String collectionName)  
      static org.bson.Document json​(java.lang.String string)  
      static <T> java.util.List<T> toArray​(java.lang.Iterable<T> iterable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toArray

        public static <T> java.util.List<T> toArray​(java.lang.Iterable<T> iterable)
      • json

        public static org.bson.Document json​(java.lang.String string)
      • getCollectionStatistics

        public static org.bson.Document getCollectionStatistics​(com.mongodb.client.MongoDatabase database,
                                                                java.lang.String collectionName)