public abstract class XMLObjectProviderBaseTestCase extends XMLObjectBaseTestCase
XMLObjects in XMLTooling for which we need a full set
of object provider tests, i.e marshalling and unmarshalling of single elements; with optional
attributes; and with child elements.| Modifier and Type | Field and Description |
|---|---|
protected String |
childElementsFile
Location of file containing a single element with child elements
|
protected Document |
expectedChildElementsDOM
The expected result of a marshalled single element with child elements
|
protected Document |
expectedDOM
The expected result of a marshalled single element with no optional attributes
|
protected Document |
expectedOptionalAttributesDOM
The expected result of a marshalled single element with all optional attributes
|
protected Document |
expectedUnknownAttributesDOM
The expected result of a marshalled single element some unknown attributes
|
protected String |
singleElementFile
Location of file containing a single element with NO optional attributes
|
protected String |
singleElementOptionalAttributesFile
Location of file containing a single element with all optional attributes
|
protected String |
singleElementUnknownAttributesFile
Location of file containing a single element with some unknown attributes
|
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory| Constructor and Description |
|---|
XMLObjectProviderBaseTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initXMLObjectProviderTestingSupprt() |
void |
testChildElementsMarshall()
Tests marshalling the contents of a single element with child elements to a DOM document.
|
void |
testChildElementsUnmarshall()
Tests unmarshalling a document that contains a single element with children.
|
abstract void |
testSingleElementMarshall()
Tests marshalling the contents of a single element, with no optional attributes, to a DOM document.
|
void |
testSingleElementOptionalAttributesMarshall()
Tests marshalling the contents of a single element, with all optional attributes, to a DOM document.
|
void |
testSingleElementOptionalAttributesUnmarshall()
Tests unmarshalling a document that contains a single element (no children) with all that element's optional
attributes.
|
void |
testSingleElementUnknownAttributesMarshall()
Tests marshalling the contents of a single element, some unknown attributes, to a DOM document.
|
void |
testSingleElementUnknownAttributesUnmarshall()
Tests unmarshalling a document that contains a single element (no children) with all that element's optional
attributes.
|
abstract void |
testSingleElementUnmarshall()
Tests unmarshalling a document that contains a single element (no children) with no optional attributes.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementinitOpenSAMLprotected String singleElementFile
protected String singleElementOptionalAttributesFile
protected String singleElementUnknownAttributesFile
protected String childElementsFile
protected Document expectedDOM
protected Document expectedOptionalAttributesDOM
protected Document expectedUnknownAttributesDOM
protected Document expectedChildElementsDOM
protected void initXMLObjectProviderTestingSupprt()
throws Exception
Exceptionpublic abstract void testSingleElementUnmarshall()
public void testSingleElementOptionalAttributesUnmarshall()
public void testSingleElementUnknownAttributesUnmarshall()
public void testChildElementsUnmarshall()
public abstract void testSingleElementMarshall()
public void testSingleElementOptionalAttributesMarshall()
public void testSingleElementUnknownAttributesMarshall()
public void testChildElementsMarshall()
Copyright © 1999–2015. All rights reserved.