code: /*
   * Copyright (c) 2022 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.db.factory;
  
  import org.junit.jupiter.api.AfterAll;
  import org.junit.jupiter.api.BeforeAll;
  import org.testcontainers.containers.PostgreSQLContainer;
  
  /**
   * Common test suite for the classes found in the {@code io.airbyte.db.factory} package.
   */
  class CommonFactoryTest {
  
    private static final String DATABASE_NAME = "airbyte_test_database";
  
    protected static PostgreSQLContainer<?> container;
  
    @BeforeAll
    public static void dbSetup() {
      container = new PostgreSQLContainer<>("postgres:13-alpine")
          .withDatabaseName(DATABASE_NAME)
          .withUsername("docker")
          .withPassword("docker");
      container.start();
    }
  
    @AfterAll
    public static void dbDown() {
      container.close();
    }
  
  }
  