Created
July 25, 2020 11:55
-
-
Save zlandorf/9e96b1b19a356ecb6133c9a264f53c93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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