public class RequestCase extends Object implements Comparable<RequestCase>
| Constructor and Description |
|---|
RequestCase(int id)
Creates a new RequestCase instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(ParamData param)
Adds a parameter definition for this request.
|
int |
compareTo(RequestCase other) |
boolean |
equals(Object object) |
MessageData |
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<ParamData> |
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.
|
int |
hashCode() |
boolean |
isFailure()
Returns true for a request with an invalid input.
|
void |
setBody(MessageData 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<ParamData> params)
Changes the parameter definitions for this request.
|
void |
setPath(String path)
Changes the path for this request.
|
void |
setServer(String uri)
Changes the server URI 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 int getId()
public void setServer(URI uri)
public void setServer(String 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<ParamData> params)
public Iterable<ParamData> getParams()
public void addParam(ParamData param)
public void setBody(MessageData body)
public MessageData getBody()
public void setInvalidInput(String invalidInput)
public String getInvalidInput()
public boolean isFailure()
public int compareTo(RequestCase other)
compareTo in interface Comparable<RequestCase>Copyright © 2020 The Cornutum Project. All rights reserved.