src.main.java.com.smartbear.readyapi.client.model.GroovyScriptTestStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
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.TestStep;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Data structure for the <a herf=\"http://readyapi.smartbear.com/structure/steps/script/groovy/step\">Groovy Script</a> test step.
**/
@ApiModel(description = "Data structure for the Groovy Script test step.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class GroovyScriptTestStep extends TestStep {
private String type = null;
private String name = null;
private String script = null;
/**
* Test step type. Possible values: - DataSource
- Groovy
- JDBC Request
- Property Transfer
- REST Request
- TestStepStruct
**/
public GroovyScriptTestStep 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 GroovyScriptTestStep 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;
}
/**
* A string holding the groovy script to execute.
**/
public GroovyScriptTestStep script(String script) {
this.script = script;
return this;
}
@ApiModelProperty(example = "null", value = "A string holding the groovy script to execute.")
@JsonProperty("script")
public String getScript() {
return script;
}
public void setScript(String script) {
this.script = script;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GroovyScriptTestStep groovyScriptTestStep = (GroovyScriptTestStep) o;
return Objects.equals(this.type, groovyScriptTestStep.type) &&
Objects.equals(this.name, groovyScriptTestStep.name) &&
Objects.equals(this.script, groovyScriptTestStep.script) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(type, name, script, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GroovyScriptTestStep {\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(" script: ").append(toIndentedString(script)).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 ");
}
}