public class RequestTestDef extends Object
Constructor and Description |
---|
RequestTestDef()
Creates a new RequestTestDef instance.
|
RequestTestDef(Iterable<RequestCase> requestCases)
Creates a new RequestTestDef instance.
|
Modifier and Type | Method and Description |
---|---|
RequestTestDef |
add(RequestCase requestCase)
Adds an API request test case.
|
String |
getApi()
Returns the name of the API for these request test cases.
|
Set<String> |
getOperations(String path)
Returns the operations used by these request test cases for the given resource path.
|
Set<String> |
getPaths()
Returns the resource paths used by these request test cases.
|
List<RequestCase> |
getRequestCases()
Returns all API request test cases.
|
List<RequestCase> |
getRequestCases(Collection<String> paths,
Collection<String> ops)
Returns all API request test cases for the given resource paths and operations on the given resource path.
|
List<RequestCase> |
getRequestCases(String path)
Returns all API request test cases for the given resource path.
|
List<RequestCase> |
getRequestCases(String path,
String... ops)
Returns all API request test cases for the given operations on the given resource path.
|
RequestTestDef |
remove(RequestCase requestCase)
Removes an API request test case.
|
String |
toString() |
public RequestTestDef()
public RequestTestDef(Iterable<RequestCase> requestCases)
public RequestTestDef add(RequestCase requestCase)
public RequestTestDef remove(RequestCase requestCase)
public List<RequestCase> getRequestCases()
public List<RequestCase> getRequestCases(String path)
public List<RequestCase> getRequestCases(String path, String... ops)
public List<RequestCase> getRequestCases(Collection<String> paths, Collection<String> ops)
public Set<String> getOperations(String path)
public String getApi()
Copyright © 2024 The Cornutum Project. All rights reserved.