public class GsonJSONConverter extends Object implements JSONConverter
| Constructor and Description |
|---|
GsonJSONConverter(EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
Optional<TestOutcome> |
fromJson(InputStream inputStream) |
Optional<TestOutcome> |
fromJson(Reader jsonReader) |
protected com.google.gson.Gson |
getGson() |
void |
toJson(TestOutcome testOutcome,
OutputStream outputStream) |
@Inject public GsonJSONConverter(EnvironmentVariables environmentVariables)
protected com.google.gson.Gson getGson()
public Optional<TestOutcome> fromJson(InputStream inputStream) throws IOException
fromJson in interface JSONConverterIOExceptionpublic Optional<TestOutcome> fromJson(Reader jsonReader)
fromJson in interface JSONConverterpublic void toJson(TestOutcome testOutcome, OutputStream outputStream) throws IOException
toJson in interface JSONConverterIOExceptionCopyright © 2023. All rights reserved.