net.thucydides.core.reports.json
Class TestOutcomeSerializer

Package class diagram package TestOutcomeSerializer
java.lang.Object
  extended by 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>


Field Summary
static String ESCAPE_CHAR_FOR_NEW_LINE
           
static String NEW_LINE_CHAR
           
 
Constructor Summary
TestOutcomeSerializer()
           
 
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
 

Field Detail

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
Constructor Detail

TestOutcomeSerializer

public TestOutcomeSerializer()
Method Detail

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.