Class MongoDbRule
- java.lang.Object
-
- com.lordofthejars.nosqlunit.core.AbstractNoSqlTestRule
-
- com.lordofthejars.nosqlunit.mongodb.MongoDbRule
-
- All Implemented Interfaces:
org.junit.rules.MethodRule
- Direct Known Subclasses:
SpringMongoDbRule
public class MongoDbRule extends com.lordofthejars.nosqlunit.core.AbstractNoSqlTestRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MongoDbRule.MongoDbRuleBuilder
-
Field Summary
Fields Modifier and Type Field Description protected com.lordofthejars.nosqlunit.core.DatabaseOperation<com.mongodb.MongoClient>
databaseOperation
-
Constructor Summary
Constructors Constructor Description MongoDbRule(MongoDbConfiguration mongoDbConfiguration)
MongoDbRule(MongoDbConfiguration mongoDbConfiguration, java.lang.Object target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.lordofthejars.nosqlunit.core.DatabaseOperation<com.mongodb.MongoClient>
getDatabaseOperation()
java.lang.String
getWorkingExtension()
-
-
-
Constructor Detail
-
MongoDbRule
public MongoDbRule(MongoDbConfiguration mongoDbConfiguration)
-
MongoDbRule
public MongoDbRule(MongoDbConfiguration mongoDbConfiguration, java.lang.Object target)
-
-
Method Detail
-
getDatabaseOperation
public com.lordofthejars.nosqlunit.core.DatabaseOperation<com.mongodb.MongoClient> getDatabaseOperation()
- Specified by:
getDatabaseOperation
in classcom.lordofthejars.nosqlunit.core.AbstractNoSqlTestRule
-
getWorkingExtension
public java.lang.String getWorkingExtension()
- Specified by:
getWorkingExtension
in classcom.lordofthejars.nosqlunit.core.AbstractNoSqlTestRule
-
close
public void close()
- Specified by:
close
in classcom.lordofthejars.nosqlunit.core.AbstractNoSqlTestRule
-
-