Package 

Class TestHttpClient

  • All Implemented Interfaces:
    tech.harmonysoft.oss.http.client.HttpClient , tech.harmonysoft.oss.test.TestAware

    @Priority(value = 10000)@Named() 
    public final class TestHttpClient
     implements HttpClient, TestAware
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TestHttpClient(HttpClientImpl delegate)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onTestEnd()
      final Unit stubResponse(String method, Regex urlPattern, HttpResponse<ByteArray> response)
      <T extends Any> HttpResponse<T> execute(HttpUriRequestBase request, HttpResponseConverter<T> converter, Map<String, String> headers)
      Unit close()
      • Methods inherited from class tech.harmonysoft.oss.http.client.HttpClient

        delete, get, get, post, put
      • Methods inherited from class tech.harmonysoft.oss.test.TestAware

        onTestStart
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait