WInject

annotation class WInject(val qualifier: String = "")(source)

This annotation can be used to inject values into JUnit5 methods and constructors by using the latest opened graph of the test plugin.

Example in a test using one of the Winter JUnit5 extensions:

@Test fun myTest(@WInject service: Service) {
// do something with service
}

Properties

Link copied to clipboard