In order to simplify usage, I would be good to be able to do:
@WiremockResolver.Wiremock(factory = FooConfig::class)
annotation class FooServer
And use it like this:
fun `test 1`(@FooServer foo: WireMockServer) {}
This is simpler than doing this on every test by importing and declarating the config on each test.
fun `test 2`(@Wiremock(factory = FooConfig::class) foo: WireMockServer) {}
This could be linked to the #9 to support configuration by custom annotation which access an external context to do its config by itself.
In order to simplify usage, I would be good to be able to do:
And use it like this:
This is simpler than doing this on every test by importing and declarating the config on each test.
This could be linked to the #9 to support configuration by custom annotation which access an external context to do its config by itself.