public class PartsFactory extends Object
| Constructor and Description |
|---|
PartsFactory(RunnerVariablesProvider variablesProvider,
Config config) |
| Modifier and Type | Method and Description |
|---|---|
BodyTypeAdapter |
buildBodyTypeAdapter(ContentType ct,
String charset)
returns a
BodyTypeAdapter
for the content type in input. |
CellFormatter<?> |
buildCellFormatter(RestFixture.Runner runner)
Builds the appropriate formatter for a type of runner on this
RestFixture.
|
smartrics.rest.client.RestClient |
buildRestClient(Config config)
Builds a rest client configured with the given config implementation.
|
smartrics.rest.client.RestRequest |
buildRestRequest()
Builds a empty rest request.
|
public PartsFactory(RunnerVariablesProvider variablesProvider, Config config)
public smartrics.rest.client.RestClient buildRestClient(Config config)
config - the configuration for the rest client to buildpublic smartrics.rest.client.RestRequest buildRestRequest()
public CellFormatter<?> buildCellFormatter(RestFixture.Runner runner)
runner - the runner used to execute this RestFixturepublic BodyTypeAdapter buildBodyTypeAdapter(ContentType ct, String charset)
BodyTypeAdapter
for the content type in input.ct - the content typecharset - the charset the body is encoded asBodyTypeAdapterCopyright © 2017 smartrics. All rights reserved.