Class MongoDbExternal

java.lang.Object
io.debezium.connector.mongodb.junit.MongoDbExternal
All Implemented Interfaces:
MongoDbDeployment, AutoCloseable, org.testcontainers.lifecycle.Startable
Direct Known Subclasses:
DocumentDb

public class MongoDbExternal extends Object implements MongoDbDeployment
Dummy implementation of MongoDbDeployment which simply wraps a connection string to an arbitrary existing MongoDB deployment.
  • Field Details

    • MONGO_CONNECTION_STRING

      public static final String MONGO_CONNECTION_STRING
      See Also:
    • connectionString

      private final String connectionString
  • Constructor Details

  • Method Details

    • getConnectionString

      public String getConnectionString()
      Specified by:
      getConnectionString in interface MongoDbDeployment
    • getHosts

      public List<String> getHosts()
    • start

      public void start()
      Specified by:
      start in interface org.testcontainers.lifecycle.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.testcontainers.lifecycle.Startable