Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support meta-annotation #16

Open
davinkevin opened this issue Aug 13, 2019 · 0 comments
Open

Support meta-annotation #16

davinkevin opened this issue Aug 13, 2019 · 0 comments

Comments

@davinkevin
Copy link
Contributor

davinkevin commented Aug 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant