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: