use of com.mongodb.connection.TestCommandListener in project mongo-java-driver by mongodb.
the class CommandMonitoringTest method beforeClass.
@BeforeClass
public static void beforeClass() {
commandListener = new TestCommandListener();
mongoClient = new MongoClient(getMongoClientURI(MongoClientOptions.builder().addCommandListener(commandListener)));
}
Aggregations