public abstract class TestCaseBase
extends org.custommonkey.xmlunit.XMLTestCase
| Modifier and Type | Field and Description |
|---|---|
protected XMLObjectBuilderFactory |
builderFactory
Factory for XMLObject builders.
|
private List<Resource> |
configResources
Configuration resources to be loaded for all unit tests.
|
private static org.slf4j.Logger |
log
Class logger.
|
protected MarshallerFactory |
marshallerFactory
Factory for XMLObject marshallers.
|
protected static BasicParserPool |
parser
Parser manager used to parse XML.
|
protected UnmarshallerFactory |
unmarshallerFactory
Factory for XMLObject unmarshallers.
|
JAVA5_XSLTC_FACTORY_NAME, XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_START_NO_VERSION, XSLT_STRIP_COMMENTS_TEMPLATE, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENTCLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_NS_URI, W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_TYPE_ATTR, W3C_XML_SCHEMA_NS_URI, XML_DECLARATION, XMLNS_ATTRIBUTE_URI, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR| Constructor and Description |
|---|
TestCaseBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertEquals(Document expectedDOM,
XMLObject xmlObject)
Asserts a given XMLObject is equal to an expected DOM.
|
void |
assertEquals(String failMessage,
Document expectedDOM,
XMLObject xmlObject)
Asserts a given XMLObject is equal to an expected DOM.
|
protected org.springframework.context.ApplicationContext |
createSpringContext()
Creates a Spring application context from the instance defined config resources.
|
protected org.springframework.context.ApplicationContext |
createSpringContext(List<Resource> configs)
Creates a Spring context from the given resources.
|
protected org.springframework.context.ApplicationContext |
createSpringContext(String config)
Creates a Spring application context from the given configuration and any instance registered configurations.
|
protected org.springframework.context.ApplicationContext |
createSpringContext(String[] configs)
Creates a Spring application context from the given configurations and any instance registered configurations.
|
protected void |
setUp() |
protected XMLObject |
unmarshallElement(String elementFile)
Unmarshalls an element file into its SAMLObject.
|
assertNodeTestPasses, assertNodeTestPasses, assertNodeTestPasses, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLIdentical, assertXMLIdentical, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathExists, assertXpathExists, assertXpathExists, assertXpathNotExists, assertXpathNotExists, assertXpathNotExists, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, compareXML, compareXML, compareXML, compareXML, compareXML, compareXMLcountTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSameprotected static BasicParserPool parser
protected XMLObjectBuilderFactory builderFactory
protected MarshallerFactory marshallerFactory
protected UnmarshallerFactory unmarshallerFactory
private static org.slf4j.Logger log
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected org.springframework.context.ApplicationContext createSpringContext()
throws ResourceException
ResourceException - thrown if there is a problem reading the configuration resourcesprotected org.springframework.context.ApplicationContext createSpringContext(String config) throws ResourceException
config - spring configuration file to be located on the classpathResourceException - thrown if the given resources can not be locatedprotected org.springframework.context.ApplicationContext createSpringContext(String[] configs) throws ResourceException
configs - spring configuration files to be located on the classpathResourceException - thrown if the given resources can not be locatedprotected org.springframework.context.ApplicationContext createSpringContext(List<Resource> configs) throws ResourceException
configs - context configuration resourcesResourceException - thrown if there is a problem reading the configuration resourcespublic void assertEquals(Document expectedDOM, XMLObject xmlObject)
expectedDOM - the expected DOMxmlObject - the XMLObject to be marshalled and compared against the expected DOMpublic void assertEquals(String failMessage, Document expectedDOM, XMLObject xmlObject)
failMessage - the message to display if the DOMs are not equalexpectedDOM - the expected DOMxmlObject - the XMLObject to be marshalled and compared against the expected DOMCopyright © 1999-2014. All Rights Reserved.