public class ReactorFlapdoodleRule<T>
A org.junit.Rule to help writing tests for KMongo using Flapdoodle.
public static org.litote.kmongo.reactor.ReactorFlapdoodleRule.Companion Companion
public ReactorFlapdoodleRule(@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.reactor.client.ReactorMongoClient getMongoClient()
@NotNull public com.mongodb.reactor.client.ReactorMongoDatabase getDatabase()
@NotNull
public <T> com.mongodb.reactor.client.ReactorMongoCollection<T> getCollection(@NotNull
kotlin.reflect.KClass<T> clazz)
@NotNull
public <T> com.mongodb.reactor.client.ReactorMongoCollection<T> getCollection(@NotNull
java.lang.String name,
@NotNull
kotlin.reflect.KClass<T> clazz)
@NotNull
public reactor.core.publisher.Mono<java.lang.Void> dropCollection(@NotNull
kotlin.reflect.KClass<?> clazz)
@NotNull
public reactor.core.publisher.Mono<java.lang.Void> dropCollection(@NotNull
java.lang.String collectionName)
@NotNull
public <T> reactor.core.publisher.Mono<java.lang.Void> drop(@NotNull
com.mongodb.reactor.client.ReactorMongoCollection<T> $this$drop)
@NotNull public com.mongodb.reactor.client.ReactorMongoCollection<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()