net.thucydides.core.reports.json
Class TestOutcomeSerializer
java.lang.Object
net.thucydides.core.reports.json.TestOutcomeSerializer
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<TestOutcome>, com.google.gson.JsonSerializer<TestOutcome>
public class TestOutcomeSerializer
- extends Object
- implements com.google.gson.JsonSerializer<TestOutcome>, com.google.gson.JsonDeserializer<TestOutcome>
|
Method Summary |
TestOutcome |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
com.google.gson.JsonElement |
serialize(TestOutcome testOutcome,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEW_LINE_CHAR
public static final String NEW_LINE_CHAR
- See Also:
- Constant Field Values
ESCAPE_CHAR_FOR_NEW_LINE
public static final String ESCAPE_CHAR_FOR_NEW_LINE
- See Also:
- Constant Field Values
TestOutcomeSerializer
public TestOutcomeSerializer()
serialize
public com.google.gson.JsonElement serialize(TestOutcome testOutcome,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize in interface com.google.gson.JsonSerializer<TestOutcome>
deserialize
public TestOutcome deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
- Specified by:
deserialize in interface com.google.gson.JsonDeserializer<TestOutcome>
- Throws:
com.google.gson.JsonParseException
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.