Annotation Interface WebClient


@Retention(RUNTIME) @Target(FIELD) public @interface WebClient
Inject web client (derived from ClientSupport) into test field.
  • @WebClient ClientSupport client
  • @WebClient(APP) TestClient app - same as client.appClient()
  • @WebClient(ADMIN) TestClient admin - same as client.adminClient()
  • @WebClient(REST) TestClient rest - same as client.restClient()
Since:
15.10.2025
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Reset client defaults after each test method.
     
  • Element Details

    • value

      Returns:
      client type (default for root object and other for specific clients)
      Default:
      Support
    • autoReset

      boolean autoReset
      Reset client defaults after each test method. Enabled by default.
      Returns:
      false to disable defaults reset
      Default:
      true