Package org.opensaml.core.xml
Class MarshallingTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.xml.MarshallingTest
-
public class MarshallingTest extends XMLObjectBaseTestCase
Unit test for marshalling functions.
-
-
Field Summary
Fields Modifier and Type Field Description private QNamesimpleXMLObjectQNameQName for SimpleXMLObject-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description MarshallingTest()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestMarshallingExistingEmptyDocument()Tests marshalling into an existing new empty document.voidtestMarshallingReplaceDocumentRoot()Tests marshalling into an existing document which already has a document root element.voidtestMarshallingWithAttributes()Tests marshalling an object that has DOM Attrs.voidtestMarshallingWithChildElements()Tests marshalling an object that has DOM Element childrenvoidtestMarshallingWithElementContent()Tests marshalling an object that has DOM Element textual content.voidtestMarshallingXMLFragment()Tests marshalling a fragment of an already marshalled tree into an existing, but different, DOM tree.-
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
-
simpleXMLObjectQName
private QName simpleXMLObjectQName
QName for SimpleXMLObject
-
-
Method Detail
-
testMarshallingWithAttributes
public void testMarshallingWithAttributes() throws XMLParserExceptionTests marshalling an object that has DOM Attrs.- Throws:
XMLParserException- ...
-
testMarshallingWithElementContent
public void testMarshallingWithElementContent() throws XMLParserExceptionTests marshalling an object that has DOM Element textual content.- Throws:
XMLParserException- ...
-
testMarshallingWithChildElements
public void testMarshallingWithChildElements() throws XMLParserException, MarshallingExceptionTests marshalling an object that has DOM Element children- Throws:
XMLParserException- ...MarshallingException- ...
-
testMarshallingXMLFragment
public void testMarshallingXMLFragment() throws XMLParserException, MarshallingExceptionTests marshalling a fragment of an already marshalled tree into an existing, but different, DOM tree.- Throws:
XMLParserException- ...MarshallingException- ...
-
testMarshallingExistingEmptyDocument
public void testMarshallingExistingEmptyDocument() throws XMLParserException, MarshallingExceptionTests marshalling into an existing new empty document. Marshalled DOM should become the new root element of the document.- Throws:
XMLParserException- ...MarshallingException- ...
-
testMarshallingReplaceDocumentRoot
public void testMarshallingReplaceDocumentRoot() throws XMLParserException, MarshallingExceptionTests marshalling into an existing document which already has a document root element. Existing root element should be replaced.- Throws:
XMLParserException- ...MarshallingException- ...
-
-