Skip to content

Instantly share code, notes, and snippets.

@zlandorf
Created July 25, 2020 11:55
Show Gist options
  • Select an option

  • Save zlandorf/9e96b1b19a356ecb6133c9a264f53c93 to your computer and use it in GitHub Desktop.

Select an option

Save zlandorf/9e96b1b19a356ecb6133c9a264f53c93 to your computer and use it in GitHub Desktop.
@SpringBootTest
@AutoConfigureMockMvc
@Testcontainers
class AxonIntegrationTest(@Autowired val mockMvc: MockMvc) {
companion object {
@Container val axon = AxonServerContainer
@JvmStatic
@DynamicPropertySource
fun axonProperties(registry: DynamicPropertyRegistry) {
registry.add("axon.axonserver.servers") { axon.servers }
}
}
@Test
fun `some test`() {
// ...
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment