Skip to content

Instantly share code, notes, and snippets.

@jiraguha
Last active February 25, 2021 18:48
Show Gist options
  • Save jiraguha/eaaee6599dc27b00e2253307c77421f7 to your computer and use it in GitHub Desktop.
Save jiraguha/eaaee6599dc27b00e2253307c77421f7 to your computer and use it in GitHub Desktop.
SpykBeanKafka
@SpykBean
private lateinit var colorProducer: ColorProducer
@BeforeEach
fun init() {
val topic = "colors-${UUID.randomUUID()}"
// note that topic is a getter only
every { colorProducer.topic } answers { topic }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment