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 |
addAuthDef(AuthDef authDef)
Adds an authentication definition for this request.
|
void |
addParam(ParamData param)
Adds a parameter definition for this request.
|
int |
compareTo(RequestCase other) |
boolean |
equals(Object object) |
String |
getApi()
Returns the name of the API that defines this request.
|
Iterable<AuthDef> |
getAuthDefs()
Returns the authentication definitions for this request.
|
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 |
getName()
Returns the name of this test case.
|
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 |
isAuthFailure()
Returns if this request has invalid authentication.
|
boolean |
isFailure()
Returns true for a request with an invalid input.
|
void |
setApi(String api)
Changes the name of the API that defines this request.
|
void |
setAuthDefs(Iterable<AuthDef> authDefs)
Changes the authentication definitions for this request.
|
void |
setAuthFailure(boolean authFailure)
Changes if this request has invalid authentication.
|
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 |
setName(String name)
Changes the name of this test case.
|
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 setName(String name)
public String getName()
public void setServer(URI uri)
public void setServer(String uri)
public URI getServer()
public void setVersion(String version)
public String getVersion()
public void setApi(String api)
public String getApi()
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 setAuthDefs(Iterable<AuthDef> authDefs)
public Iterable<AuthDef> getAuthDefs()
public void addAuthDef(AuthDef authDef)
public void setInvalidInput(String invalidInput)
public String getInvalidInput()
public boolean isFailure()
public void setAuthFailure(boolean authFailure)
public boolean isAuthFailure()
public int compareTo(RequestCase other)
compareTo
in interface Comparable<RequestCase>
Copyright © 2024 The Cornutum Project. All rights reserved.