Index

A B C D E G L M O P S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

afterAll(ExtensionContext) - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDbClassExtension
 
afterAll(ExtensionContext) - Method in class org.sdase.commons.server.mongo.testing.UseExistingMongoDbClassExtension
 

B

beforeAll(ExtensionContext) - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDbClassExtension
 
beforeAll(ExtensionContext) - Method in class org.sdase.commons.server.mongo.testing.UseExistingMongoDbClassExtension
 
build() - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
build() - Method in class org.sdase.commons.server.mongo.testing.MongoDbClassExtension.Builder
 
builder() - Static method in interface org.sdase.commons.server.mongo.testing.MongoDbClassExtension
 
Builder() - Constructor for class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 

C

clearCollections() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
Removes all documents from the database passed during construction.
clearDatabase() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
Removes all collections and documents from the database passed during construction.
createClient() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
Creates a MongoClient that is connected to the database.

D

database - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
database - Variable in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
DEFAULT_TIMEOUT_MS - Static variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
DEFAULT_VERSION - Static variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
determineMongoDbVersion() - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 

E

enableScripting() - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Allows to enable scripting using JavaScript, which is disabled by default.

G

getConnectionString() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
 
getConnectionString() - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
getConnectionString() - Method in class org.sdase.commons.server.mongo.testing.UseExistingMongoDb
 
getMongoConnectionString() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
 
getMongoConnectionString() - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
getMongoConnectionString() - Method in class org.sdase.commons.server.mongo.testing.UseExistingMongoDb
 
getServerVersion() - Method in interface org.sdase.commons.server.mongo.testing.MongoDb
 
getTimeoutMs() - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 

L

logConnection() - Method in class org.sdase.commons.server.mongo.testing.UseExistingMongoDb
 

M

mongoConnectionString - Variable in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
MongoDb - Interface in org.sdase.commons.server.mongo.testing
JUnit Test extension for running a MongoDB instance alongside the (integration) tests.
MongoDb.Builder<T extends MongoDb> - Class in org.sdase.commons.server.mongo.testing
 
MongoDbClassExtension - Interface in org.sdase.commons.server.mongo.testing
JUnit 5 Extension for running a MongoDB instance alongside the (integration) tests.
MongoDbClassExtension.Builder - Class in org.sdase.commons.server.mongo.testing
 
mongoDbUrlOverride - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 

O

org.sdase.commons.server.mongo.testing - package org.sdase.commons.server.mongo.testing
 
OVERRIDE_MONGODB_CONNECTION_STRING_SYSTEM_PROPERTY_NAME - Static variable in interface org.sdase.commons.server.mongo.testing.MongoDb
"TEST_MONGODB_CONNECTION_STRING" is the name of the environment variable that may hold a MongoDB Connection String of the database used in tests instead of starting a dedicated instance.

P

password - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
password - Variable in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 

S

scripting - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
StartLocalMongoDb - Class in org.sdase.commons.server.mongo.testing
 
StartLocalMongoDb(String, String, String, boolean, IFeatureAwareVersion, long) - Constructor for class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
StartLocalMongoDbClassExtension - Class in org.sdase.commons.server.mongo.testing
JUnit Test extension for running a MongoDB instance alongside the (integration) tests.
startMongo() - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 
stopMongo() - Method in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 

T

timeoutInMillis - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 

U

UseExistingMongoDb - Class in org.sdase.commons.server.mongo.testing
 
UseExistingMongoDb(String) - Constructor for class org.sdase.commons.server.mongo.testing.UseExistingMongoDb
 
UseExistingMongoDbClassExtension - Class in org.sdase.commons.server.mongo.testing
JUnit Test extension for connecting to an existing MongoDB instance alongside the (integration) tests..
UseExistingMongoDbClassExtension(String) - Constructor for class org.sdase.commons.server.mongo.testing.UseExistingMongoDbClassExtension
 
username - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
username - Variable in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 

V

version - Variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
version - Variable in class org.sdase.commons.server.mongo.testing.StartLocalMongoDb
 

W

WINDOWS_VERSION - Static variable in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
 
withDatabase(String) - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Configure the database that can be used to connect to the MongoDB instance.
withPassword(String) - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Configure the password that can be used to connect to the MongoDB instance.
withTimeoutInMillis(long) - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Configures the timeout for database startup, the default value is one minute (MongoDb.Builder.DEFAULT_TIMEOUT_MS).
withUsername(String) - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Configure the username that can be used to connect to the MongoDB instance.
withVersion(IFeatureAwareVersion) - Method in class org.sdase.commons.server.mongo.testing.MongoDb.Builder
Configure the MongoDB version to start, by default the latest production version is used (MongoDb.Builder.DEFAULT_VERSION).
A B C D E G L M O P S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values