|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.testng.BuildActionConverter
public class BuildActionConverter
Here for backward compatibility. Unmarshals the build action in a backward compatible manner and marshals it out as well.
(Note: Not sure if this is the best approach, but I couldn't find
another that could deal nicely with AbstractTestResultAction.owner
which is defined as final)
| Constructor Summary | |
|---|---|
BuildActionConverter()
Create the converter |
|
| Method Summary | |
|---|---|
boolean |
canConvert(Class type)
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
Marshals out the TestNGTestResultBuildAction object. |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshals the TestNG build action in a backward compatible way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildActionConverter()
| Method Detail |
|---|
public boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
public void marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
TestNGTestResultBuildAction object.
We are only marshaling out the AbstractTestResultAction.owner
of the action. We (currently) don't care about
AbstractTestResultAction.descriptions
marshal in interface com.thoughtworks.xstream.converters.Convertersource - sourcewriter - writercontext - context
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterreader - readercontext - context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||