net.thucydides.core.reports.xml
Class TestOutcomeConverter
java.lang.Object
net.thucydides.core.reports.xml.TestOutcomeConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
public class TestOutcomeConverter
- extends Object
- implements com.thoughtworks.xstream.converters.Converter
XStream converter used to generate the XML acceptance test report.
- Author:
- johnsmart
|
Method Summary |
boolean |
canConvert(Class clazz)
Determines which classes this converter applies to. |
void |
marshal(Object value,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
Generate an XML report given an TestOutcome object. |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Convert XML to an TestOutcome object. |
| 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
TestOutcomeConverter
public TestOutcomeConverter()
canConvert
public boolean canConvert(Class clazz)
- Determines which classes this converter applies to.
- Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
marshal
public void marshal(Object value,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
- Generate an XML report given an TestOutcome object.
- Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
- Convert XML to an TestOutcome object. Not needed for now.
- Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.