Class FrameworkTest

java.lang.Object
org.apache.hc.core5.testing.framework.FrameworkTest

public class FrameworkTest extends Object
  • Constructor Details

    • FrameworkTest

      public FrameworkTest()
      Constructs a test with default values.
    • FrameworkTest

      public FrameworkTest(Map<String,Object> test)
      Constructs a test with values that are passed in as well as defaults for values that are not passed in.
      Parameters:
      test - Contains a REQUEST and an expected RESPONSE. See ClientPOJOAdapter for details.
  • Method Details

    • initRequest

      public Map<String,Object> initRequest() throws TestingFrameworkException
      Returns a request with defaults for any parameter that is not specified.
      Returns:
      a REQUEST map.
      Throws:
      TestingFrameworkException - a problem such as an invalid URL
    • initResponseExpectations

      public Map<String,Object> initResponseExpectations()
      Returns an expected response with defaults for any parameter that is not specified.
      Returns:
      the RESPONSE map.
    • toString

      public String toString()
      Overrides:
      toString in class Object