com.carrotsearch.ant.tasks.junit4.listeners.json
Class JsonAggregatedSuiteResultEventAdapter

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.listeners.json.JsonAggregatedSuiteResultEventAdapter
All Implemented Interfaces:
com.google.gson.JsonSerializer<AggregatedSuiteResultEvent>

public class JsonAggregatedSuiteResultEventAdapter
extends Object
implements com.google.gson.JsonSerializer<AggregatedSuiteResultEvent>

Serialization of AggregatedSuiteResultEvent.


Constructor Summary
JsonAggregatedSuiteResultEventAdapter(boolean outputStreams)
           
 
Method Summary
 void flushBoth(com.google.gson.JsonArray output, StringWriter out, StringWriter err, org.apache.commons.io.output.WriterOutputStream stdout, org.apache.commons.io.output.WriterOutputStream stderr)
           
 com.google.gson.JsonElement serialize(AggregatedSuiteResultEvent e, Type type, com.google.gson.JsonSerializationContext context)
           
 com.google.gson.JsonArray serializeEvents(AggregatedSuiteResultEvent e, com.google.gson.JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonAggregatedSuiteResultEventAdapter

public JsonAggregatedSuiteResultEventAdapter(boolean outputStreams)
Method Detail

serialize

public com.google.gson.JsonElement serialize(AggregatedSuiteResultEvent e,
                                             Type type,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<AggregatedSuiteResultEvent>

serializeEvents

public com.google.gson.JsonArray serializeEvents(AggregatedSuiteResultEvent e,
                                                 com.google.gson.JsonSerializationContext context)

flushBoth

public void flushBoth(com.google.gson.JsonArray output,
                      StringWriter out,
                      StringWriter err,
                      org.apache.commons.io.output.WriterOutputStream stdout,
                      org.apache.commons.io.output.WriterOutputStream stderr)


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.