Skip to content

Instantly share code, notes, and snippets.

@pawelpluta
Last active January 19, 2020 15:31
Show Gist options
  • Save pawelpluta/b0396f301cc07d9bf0c0c1d736639d53 to your computer and use it in GitHub Desktop.
Save pawelpluta/b0396f301cc07d9bf0c0c1d736639d53 to your computer and use it in GitHub Desktop.
class KafkaContainerWrapper extends KafkaContainer {
private static KafkaContainerWrapper CONTAINER
private KafkaContainerWrapper(String confluentPlatformVersion) {
super(confluentPlatformVersion)
}
static KafkaContainer getContainer() {
if (CONTAINER == null) {
CONTAINER = new KafkaContainerWrapper("5.3.0")
CONTAINER.start()
}
CONTAINER
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment