Skip to content

Support meta-annotation #16

Description

@davinkevin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions