Package ca.cdr.test.app.clients.common
package ca.cdr.test.app.clients.common
The HTTP transport the typed test clients in
ca.cdr.test.app.clients share, and the
ownership rule that decides who may close it.
SmileTestHttpClient is the client itself: one Apache
HttpClient 5 connection pool and one cookie store, configured identically everywhere, which is
what lets a multi-request login flow work across the several typed clients a harness hands out.
ISmileTestHttpClient is the borrower's view of it ?
request-issuing without the lifecycle, so a borrower cannot shut the pool down on its siblings.
HttpClientOwnership records whether a client built its own
pool and must release it, or borrowed one and must not.
RequestFactoryUtil adapts the client for Spring's
RestClient.
- See Also:
-
ClassDescriptionThe HTTP client a test client issues on, and whether closing that test client should close the HTTP client with it.What
SmileHarness.getHttpClient()hands back: the request-issuing part of aSmileTestHttpClient, without its lifecycle.An Apache HttpClient 5.x client configured the way Smile's tests need it, bundled with the mutable state that callers have to be able to reach ? its cookie store and its connection pool.