Class AbstractShardedMongoConnectorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.AbstractShardedMongoConnectorIT
All Implemented Interfaces:
Testing
Direct Known Subclasses:
ShardedIncrementalSnapshotIT, ShardedMongoDbConnectorIT

public class AbstractShardedMongoConnectorIT extends AbstractConnectorTest
  • Field Details

  • Constructor Details

    • AbstractShardedMongoConnectorIT

      public AbstractShardedMongoConnectorIT()
  • Method Details

    • connect

      protected static com.mongodb.client.MongoClient connect()
    • beforeAll

      public static void beforeAll()
    • afterAll

      public static void afterAll()
    • beforeEach

      public void beforeEach()
    • afterEach

      public void afterEach()
    • shardedDatabase

      protected String shardedDatabase()
    • shardedCollections

      protected Map<String,String> shardedCollections()
    • shardedCollection

      protected String shardedCollection()
    • insertDocuments

      protected void insertDocuments(String dbName, String collectionName, org.bson.Document... documents)
      Inserts all documents in the specified collection.
      Parameters:
      dbName - the database name
      collectionName - the collection name
      documents - the documents to be inserted, can be empty
    • insertDocumentsInTx

      protected void insertDocumentsInTx(String dbName, String collectionName, org.bson.Document... documents)
      Inserts all documents in the specified collection within a transaction.
      Parameters:
      dbName - the database name
      collectionName - the collection name
      documents - the documents to be inserted, can be empty
    • collectionExists

      private static boolean collectionExists(com.mongodb.client.MongoDatabase database, String collectionName)