public class RequestCaseDef extends Object
| Constructor and Description |
|---|
RequestCaseDef(int id)
Creates a new RequestCaseDef instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(ParamDef param)
Adds a parameter definition for this request.
|
ValueDef<?> |
getBody()
Returns the definition of the request body.
|
int |
getId()
Returns the id number for this test case.
|
String |
getInvalidInput()
Returns the description of the invalid input for this request.
|
String |
getOperation()
Returns the operation for this request.
|
Iterable<ParamDef> |
getParams()
Returns the parameter definitions for this request.
|
String |
getPath()
Returns the path for this request.
|
URI |
getServer()
Returns the server URI for this request.
|
String |
getVersion()
Returns the API version for this request.
|
boolean |
isFailure()
Returns true for a request with an invalid input.
|
void |
setBody(ValueDef<?> body)
Changes the definition of the request body.
|
void |
setInvalidInput(String invalidInput)
Changes the description of the invalid input for this request.
|
void |
setOperation(String operation)
Changes the operation for this request.
|
void |
setParams(Iterable<ParamDef> params)
Changes the parameter definitions for this request.
|
void |
setPath(String path)
Changes the path for this request.
|
void |
setServer(URI uri)
Changes the server URI for this request.
|
void |
setVersion(String version)
Changes the API version for this request.
|
String |
toString() |
public RequestCaseDef(int id)
public int getId()
public void setServer(URI uri)
public URI getServer()
public void setVersion(String version)
public String getVersion()
public void setPath(String path)
public String getPath()
public void setOperation(String operation)
public String getOperation()
public void setParams(Iterable<ParamDef> params)
public void addParam(ParamDef param)
public void setBody(ValueDef<?> body)
public ValueDef<?> getBody()
public void setInvalidInput(String invalidInput)
public String getInvalidInput()
public boolean isFailure()
Copyright © 2020 The Cornutum Project. All rights reserved.