Package org.opensaml.saml.common.testing
Class RoundTripTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.common.testing.RoundTripTest
-
public class RoundTripTest extends XMLObjectBaseTestCase
Round trip messaging test case.
-
-
Field Summary
Fields Modifier and Type Field Description private OrganizationorganizationOrganization to marshallprivate MarshallerorgMarshallerOrganization Marshallerprivate UnmarshallerorgUnmarshallerOrganization Unmarshaller-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description RoundTripTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestRoundTrip()Tests marshalling and unmarshalling the same object a three times.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
organization
private Organization organization
Organization to marshall
-
orgMarshaller
private Marshaller orgMarshaller
Organization Marshaller
-
orgUnmarshaller
private Unmarshaller orgUnmarshaller
Organization Unmarshaller
-
-
Method Detail
-
testRoundTrip
public void testRoundTrip() throws MarshallingException, UnmarshallingExceptionTests marshalling and unmarshalling the same object a three times.- Throws:
MarshallingException- thrown if the object can't be marshalledUnmarshallingException- thrown if hte object can't be unmarshalled
-
-