Class MongoScriptRunner

java.lang.Object
org.evomaster.client.java.controller.mongo.MongoScriptRunner

public class MongoScriptRunner extends Object
Class used to execute Mongo commands
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionResultsDto
    executeInsert(Object connection, List<org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionDto> insertions)
    Execute the different Mongo insertions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MongoScriptRunner

      public MongoScriptRunner()
      Default constructor
  • Method Details

    • executeInsert

      public static org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionResultsDto executeInsert(Object connection, List<org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionDto> insertions)
      Execute the different Mongo insertions.
      Parameters:
      connection - a connection to the database (MongoClient)
      insertions - the Mongo insertions to execute
      Returns:
      a MongoInsertionResultsDto