All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.misk.testing.ExternalDependency.kt Maven / Gradle / Ivy

There is a newer version: 2024.09.17.200749-4708422
Show newest version
package misk.testing

/**
 * An external dependency of the Misk Application that needs to be started for test, like Redis,
 * Vitess, MySQL, SQS, etc.
 */
interface ExternalDependency {
  /**
   * Starts the dependency.
   */
  fun startup()

  /**
   * Stops the dependency.
   */
  fun shutdown()

  /**
   * Called before each test run
   */
  fun beforeEach()

  /**
   * Called before each test run
   */
  fun afterEach()

  /**
   * Unique ID for the dependency, used as a stable key across tests. Can be overridden if more
   * than one instance of the dependency is supported.
   */
  val id: String get() = javaClass.name
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy