Class HttpCondition

  • All Implemented Interfaces:
    com.consol.citrus.condition.Condition

    public class HttpCondition
    extends AbstractCondition
    Tests if a HTTP Endpoint is reachable. The test is successful if the endpoint responds with the expected response code. By default a HTTP 200 response code is expected.
    Since:
    2.4
    Author:
    Martin Maher
    • Constructor Detail

      • HttpCondition

        public HttpCondition()
        Default constructor.
    • Method Detail

      • isSatisfied

        public boolean isSatisfied​(com.consol.citrus.context.TestContext context)
      • getSuccessMessage

        public String getSuccessMessage​(com.consol.citrus.context.TestContext context)
      • getErrorMessage

        public String getErrorMessage​(com.consol.citrus.context.TestContext context)
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getMethod

        public String getMethod()
      • setMethod

        public void setMethod​(String method)
      • getTimeout

        public String getTimeout()
      • setTimeout

        public void setTimeout​(String timeout)
      • getHttpResponseCode

        public String getHttpResponseCode()
      • setHttpResponseCode

        public void setHttpResponseCode​(String httpResponseCode)