public class JUnitResultArchiverConverter extends ConvertToLabeledGroupsConverter
CPPUNIT_PARSER_TO_USE, ENABLE_CONVERSIONS, JUNIT_PARSER_TO_USE, LOGGER, OPEN_CPPUNIT_PLUGIN_CLASS_NAME
Constructor and Description |
---|
JUnitResultArchiverConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type.
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
Write a JUnitResultArchiver out as a JUnitResultArchiver archiver --
not really the behavior you'd expect from a converter, but this particular
converter only wants to run the conversion when a JUnitResultArchiver
is unmarshaled.
|
static void |
registerWithXStream(com.thoughtworks.xstream.XStream xstream) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Convert textual data back into an object.
|
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
source
- The object to be marshalled.writer
- A stream to write to.context
- A context that allows nested objects to be processed by XStream.public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
reader
- The stream to read the text from.context
- public boolean canConvert(Class type)
type
- the Class representing the object type to be convertedpublic static void registerWithXStream(com.thoughtworks.xstream.XStream xstream)
Copyright © 2004-2017 Yahoo!, Inc.. All Rights Reserved.