Class XStreamSerializable<T>

java.lang.Object
org.jvnet.hudson.test.XStreamSerializable<T>
All Implemented Interfaces:
Serializable

public final class XStreamSerializable<T> extends Object implements Serializable
Holder for an object which is not Serializable but can be serialized safely using XStream. Useful for arguments and return values of RealJenkinsRule.runRemotely(RealJenkinsRule.StepWithReturnAndOneArg, Serializable) etc.
See Also:
  • Method Details

    • of

      public static <T> XStreamSerializable<T> of(T o)
      Serializes an object to XML.
    • object

      public T object()
      Deserializes an object from XML.