Class GsonJSONConverter
java.lang.Object
net.thucydides.core.reports.json.gson.GsonJSONConverter
- All Implemented Interfaces:
JSONConverter
public class GsonJSONConverter extends java.lang.Object implements JSONConverter
-
Constructor Summary
Constructors Constructor Description GsonJSONConverter(EnvironmentVariables environmentVariables)
-
Method Summary
Modifier and Type Method Description java.util.Optional<TestOutcome>
fromJson(java.io.InputStream inputStream)
java.util.Optional<TestOutcome>
fromJson(java.io.Reader jsonReader)
protected com.google.gson.Gson
getGson()
void
toJson(TestOutcome testOutcome, java.io.OutputStream outputStream)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GsonJSONConverter
-
-
Method Details
-
getGson
protected com.google.gson.Gson getGson() -
fromJson
public java.util.Optional<TestOutcome> fromJson(java.io.InputStream inputStream) throws java.io.IOException- Specified by:
fromJson
in interfaceJSONConverter
- Throws:
java.io.IOException
-
fromJson
- Specified by:
fromJson
in interfaceJSONConverter
-
toJson
public void toJson(TestOutcome testOutcome, java.io.OutputStream outputStream) throws java.io.IOException- Specified by:
toJson
in interfaceJSONConverter
- Throws:
java.io.IOException
-