All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.main.java.com.smartbear.readyapi.client.model.XQueryContainsAssertion Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

The newest version!
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartbear.readyapi.client.model.Assertion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



/**
 * Data structure for the <a href=\"http://readyapi.smartbear.com/structure/assertions/property/xpath/xquery/match\">XQuery Match</a> assertion.
 **/

@ApiModel(description = "Data structure for the XQuery Match assertion.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class XQueryContainsAssertion extends Assertion  {
  
  private String type = null;
  private String name = null;
  private String xquery = null;
  private String expectedContent = null;
  private Boolean allowWildcards = false;

  
  /**
   * Assertion type. Possible values: 
  • AssertionStruct
  • Contains
  • Invalid HTTP Status Codes
  • JDBC Status
  • JDBC Timeout
  • JsonPath Count
  • JsonPath Match
  • Not Contains
  • Response SLA
  • Script Assertion
  • Valid HTTP Status Codes
  • XPath Match
  • XQuery Match
**/ public XQueryContainsAssertion type(String type) { this.type = type; return this; } @ApiModelProperty(example = "null", value = "Assertion type. Possible values:
  • AssertionStruct
  • Contains
  • Invalid HTTP Status Codes
  • JDBC Status
  • JDBC Timeout
  • JsonPath Count
  • JsonPath Match
  • Not Contains
  • Response SLA
  • Script Assertion
  • Valid HTTP Status Codes
  • XPath Match
  • XQuery Match
") @JsonProperty("type") public String getType() { return type; } public void setType(String type) { this.type = type; } /** **/ public XQueryContainsAssertion name(String name) { this.name = name; return this; } @ApiModelProperty(example = "null", value = "") @JsonProperty("name") public String getName() { return name; } public void setName(String name) { this.name = name; } /** * XQuery expression used to validate the message. **/ public XQueryContainsAssertion xquery(String xquery) { this.xquery = xquery; return this; } @ApiModelProperty(example = "null", value = "XQuery expression used to validate the message.") @JsonProperty("xquery") public String getXquery() { return xquery; } public void setXquery(String xquery) { this.xquery = xquery; } /** * Expected content returned by the XQuery expression. **/ public XQueryContainsAssertion expectedContent(String expectedContent) { this.expectedContent = expectedContent; return this; } @ApiModelProperty(example = "null", value = "Expected content returned by the XQuery expression.") @JsonProperty("expectedContent") public String getExpectedContent() { return expectedContent; } public void setExpectedContent(String expectedContent) { this.expectedContent = expectedContent; } /** * Specifies if asterisks (*) in expectedContent are handled as wildcards. **/ public XQueryContainsAssertion allowWildcards(Boolean allowWildcards) { this.allowWildcards = allowWildcards; return this; } @ApiModelProperty(example = "null", value = "Specifies if asterisks (*) in expectedContent are handled as wildcards.") @JsonProperty("allowWildcards") public Boolean getAllowWildcards() { return allowWildcards; } public void setAllowWildcards(Boolean allowWildcards) { this.allowWildcards = allowWildcards; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } XQueryContainsAssertion xQueryContainsAssertion = (XQueryContainsAssertion) o; return Objects.equals(this.type, xQueryContainsAssertion.type) && Objects.equals(this.name, xQueryContainsAssertion.name) && Objects.equals(this.xquery, xQueryContainsAssertion.xquery) && Objects.equals(this.expectedContent, xQueryContainsAssertion.expectedContent) && Objects.equals(this.allowWildcards, xQueryContainsAssertion.allowWildcards) && super.equals(o); } @Override public int hashCode() { return Objects.hash(type, name, xquery, expectedContent, allowWildcards, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class XQueryContainsAssertion {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" xquery: ").append(toIndentedString(xquery)).append("\n"); sb.append(" expectedContent: ").append(toIndentedString(expectedContent)).append("\n"); sb.append(" allowWildcards: ").append(toIndentedString(allowWildcards)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy