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

src.main.java.com.smartbear.readyapi.client.model.JdbcRequestTestStep 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 com.smartbear.readyapi.client.model.TestStep;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;



/**
 * Data structure for the <a href=\"http://readyapi.smartbear.com/structure/steps/request/jdbc/properties\">JDBC Request</a> test step.
 **/

@ApiModel(description = "Data structure for the JDBC Request test step.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class JdbcRequestTestStep extends TestStep  {
  
  private String type = null;
  private String name = null;
  private String driver = null;
  private String connectionString = null;
  private String password = null;
  private String sqlQuery = null;
  private Map properties = new HashMap();
  private List assertions = new ArrayList();
  private Boolean storedProcedure = false;

  
  /**
   * Test step type. Possible values: 
  • DataSource
  • Groovy
  • JDBC Request
  • Property Transfer
  • REST Request
  • TestStepStruct
**/ public JdbcRequestTestStep type(String type) { this.type = type; return this; } @ApiModelProperty(example = "null", value = "Test step type. Possible values:
  • DataSource
  • Groovy
  • JDBC Request
  • Property Transfer
  • REST Request
  • TestStepStruct
") @JsonProperty("type") public String getType() { return type; } public void setType(String type) { this.type = type; } /** * Test step name. This name is used to refer to the test step in the test recipe. **/ public JdbcRequestTestStep name(String name) { this.name = name; return this; } @ApiModelProperty(example = "null", value = "Test step name. This name is used to refer to the test step in the test recipe.") @JsonProperty("name") public String getName() { return name; } public void setName(String name) { this.name = name; } /** * The name of the driver used to connect to the database. **/ public JdbcRequestTestStep driver(String driver) { this.driver = driver; return this; } @ApiModelProperty(example = "null", value = "The name of the driver used to connect to the database.") @JsonProperty("driver") public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } /** * Full database URI including username and password as query parameters. **/ public JdbcRequestTestStep connectionString(String connectionString) { this.connectionString = connectionString; return this; } @ApiModelProperty(example = "null", value = "Full database URI including username and password as query parameters.") @JsonProperty("connectionString") public String getConnectionString() { return connectionString; } public void setConnectionString(String connectionString) { this.connectionString = connectionString; } /** * Password used to connect to the database. **/ public JdbcRequestTestStep password(String password) { this.password = password; return this; } @ApiModelProperty(example = "null", value = "Password used to connect to the database.") @JsonProperty("password") public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } /** * Query used to search the database. **/ public JdbcRequestTestStep sqlQuery(String sqlQuery) { this.sqlQuery = sqlQuery; return this; } @ApiModelProperty(example = "null", value = "Query used to search the database.") @JsonProperty("sqlQuery") public String getSqlQuery() { return sqlQuery; } public void setSqlQuery(String sqlQuery) { this.sqlQuery = sqlQuery; } /** * Properties used to store received query results. **/ public JdbcRequestTestStep properties(Map properties) { this.properties = properties; return this; } @ApiModelProperty(example = "null", value = "Properties used to store received query results.") @JsonProperty("properties") public Map getProperties() { return properties; } public void setProperties(Map properties) { this.properties = properties; } /** * Array of assertions used to verify test step results. **/ public JdbcRequestTestStep assertions(List assertions) { this.assertions = assertions; return this; } @ApiModelProperty(example = "null", value = "Array of assertions used to verify test step results.") @JsonProperty("assertions") public List getAssertions() { return assertions; } public void setAssertions(List assertions) { this.assertions = assertions; } /** * Specifies if the sqlQuery refers to the stored procedure. **/ public JdbcRequestTestStep storedProcedure(Boolean storedProcedure) { this.storedProcedure = storedProcedure; return this; } @ApiModelProperty(example = "null", value = "Specifies if the sqlQuery refers to the stored procedure.") @JsonProperty("storedProcedure") public Boolean getStoredProcedure() { return storedProcedure; } public void setStoredProcedure(Boolean storedProcedure) { this.storedProcedure = storedProcedure; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } JdbcRequestTestStep jdbcRequestTestStep = (JdbcRequestTestStep) o; return Objects.equals(this.type, jdbcRequestTestStep.type) && Objects.equals(this.name, jdbcRequestTestStep.name) && Objects.equals(this.driver, jdbcRequestTestStep.driver) && Objects.equals(this.connectionString, jdbcRequestTestStep.connectionString) && Objects.equals(this.password, jdbcRequestTestStep.password) && Objects.equals(this.sqlQuery, jdbcRequestTestStep.sqlQuery) && Objects.equals(this.properties, jdbcRequestTestStep.properties) && Objects.equals(this.assertions, jdbcRequestTestStep.assertions) && Objects.equals(this.storedProcedure, jdbcRequestTestStep.storedProcedure) && super.equals(o); } @Override public int hashCode() { return Objects.hash(type, name, driver, connectionString, password, sqlQuery, properties, assertions, storedProcedure, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class JdbcRequestTestStep {\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(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" connectionString: ").append(toIndentedString(connectionString)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" sqlQuery: ").append(toIndentedString(sqlQuery)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append(" assertions: ").append(toIndentedString(assertions)).append("\n"); sb.append(" storedProcedure: ").append(toIndentedString(storedProcedure)).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