Class AtlasMongoDB
- java.lang.Object
-
- software.tnb.db.mongodb.service.MongoDB
-
- software.tnb.db.mongodb.resource.managed.AtlasMongoDB
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,WithDockerImage,Service
public class AtlasMongoDB extends MongoDB
-
-
Constructor Summary
Constructors Constructor Description AtlasMongoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtlasAccountaccount()voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context)voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context)protected com.mongodb.client.MongoClientclient()Stringhostname()StringreplicaSetUrl()-
Methods inherited from class software.tnb.db.mongodb.service.MongoDB
containerEnvironment, defaultImage, port, validation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.tnb.common.deployment.WithDockerImage
image
-
-
-
-
Method Detail
-
account
public AtlasAccount account()
-
replicaSetUrl
public String replicaSetUrl()
- Specified by:
replicaSetUrlin classMongoDB
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception- Throws:
Exception
-
-