Class MongoScriptRunner
java.lang.Object
org.evomaster.client.java.controller.mongo.MongoScriptRunner
Class used to execute Mongo commands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionResultsDtoexecuteInsert(Object connection, List<org.evomaster.client.java.controller.api.dto.database.operations.MongoInsertionDto> insertions) Execute the different Mongo insertions.
-
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
-