public class KFlapdoodleRule<T>
A org.junit.Rule to help writing tests for KMongo using Flapdoodle.
public KFlapdoodleRule(@NotNull
kotlin.reflect.KClass<T> defaultDocumentClass,
boolean generateRandomCollectionName,
@NotNull
java.lang.String dbName,
@NotNull
de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion version)
A org.junit.Rule to help writing tests for KMongo using Flapdoodle.
@NotNull public com.mongodb.client.MongoClient getMongoClient()
@NotNull public com.mongodb.client.MongoDatabase getDatabase()
@NotNull
public <T> com.mongodb.client.MongoCollection<T> getCollection(@NotNull
kotlin.reflect.KClass<T> clazz)
@NotNull
public <T> com.mongodb.client.MongoCollection<T> getCollection(@NotNull
java.lang.String name,
@NotNull
kotlin.reflect.KClass<T> clazz)
public void dropCollection(@NotNull
kotlin.reflect.KClass<?> clazz)
public void dropCollection(@NotNull
java.lang.String collectionName)
@NotNull public com.mongodb.client.MongoCollection<T> getCol()
@NotNull
public org.junit.runners.model.Statement apply(@NotNull
org.junit.runners.model.Statement base,
@NotNull
org.junit.runner.Description description)
@NotNull public kotlin.reflect.KClass<T> getDefaultDocumentClass()
public boolean getGenerateRandomCollectionName()
@NotNull public java.lang.String getDbName()
@NotNull public de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion getVersion()