Annotation Type InjectClient
-
@Retention(RUNTIME) @Target(FIELD) public @interface InjectClientMarker annotation forClientSupportspock test field. Extra annotation required to remove uncertainty and apply some context (avoid confusion why it works). Note that such annotation is not required for junit 5 version because there client may be injected as parameter (so this is only a special fix for spock tests to support the same client object).Example usage:
@InjectClient ClientSupport clientMust be used on static, shared or regular fields. When used on not
ClientSupportfield, error will be thrown.- Since:
- 26.05.2020