public class TestSource extends Object
TestWriter
.Modifier and Type | Class and Description |
---|---|
static class |
TestSource.Builder
Builds a
TestSource instance. |
Constructor and Description |
---|
TestSource(RequestTestDef testDef)
Creates a new TestSource instance.
|
Modifier and Type | Method and Description |
---|---|
static TestSource.Builder |
from(RequestTestDef testDef)
Returns a new
TestSource.Builder . |
String |
getApi()
Returns the API name for this source.
|
Set<String> |
getOperations()
Returns the request operations for this source or null if all operations are used.
|
Set<String> |
getPaths()
Returns the request paths for this source or null if all paths are used.
|
List<RequestCase> |
getRequestCases()
Returns the request test cases for this source.
|
ResponsesDef |
getResponses()
Returns the request response definitions for this source.
|
RequestTestDef |
getTestDef()
Returns the request test definition for this source.
|
void |
setOperations(Iterable<String> operations)
Changes the request operations for this source.
|
void |
setOperations(String... operations)
Changes the request operations for this source.
|
void |
setPaths(Iterable<String> paths)
Changes the request paths for this source.
|
void |
setPaths(String... paths)
Changes the request paths for this source.
|
void |
setResponses(ResponsesDef responses)
Changes the request response definitions for this source.
|
String |
toString() |
public TestSource(RequestTestDef testDef)
public RequestTestDef getTestDef()
public String getApi()
public void setPaths(String... paths)
public Set<String> getPaths()
public void setOperations(Iterable<String> operations)
public void setOperations(String... operations)
public Set<String> getOperations()
public List<RequestCase> getRequestCases()
public void setResponses(ResponsesDef responses)
public ResponsesDef getResponses()
public static TestSource.Builder from(RequestTestDef testDef)
TestSource.Builder
.Copyright © 2024 The Cornutum Project. All rights reserved.