Package org.opensaml.core.xml
Class UnmarshallingSecurityTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.xml.UnmarshallingSecurityTest
-
public class UnmarshallingSecurityTest extends XMLObjectBaseTestCase
Unit test for unmarshalling functions.
-
-
Field Summary
Fields Modifier and Type Field Description private BasicParserPoolparserPoolDefaultsprivate BasicParserPoolparserPoolInsecure-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description UnmarshallingSecurityTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidtestUnmarshallingWithCDATAInElementContentDefaults()Tests unmarshalling an element with CDATA in content with default parser.voidtestUnmarshallingWithCDATAInElementContentInsecure()Tests unmarshalling an element with CDATA in content with insecure parser.voidtestUnmarshallingWithCommentBetweenChildElementsDefaults()Tests unmarshalling an element with comment between child elements with default parser.voidtestUnmarshallingWithCommentBetweenChildElementsInsecure()Tests unmarshalling an element with comment between child elements with insecure parser.voidtestUnmarshallingWithCommentInElementContentDefaults()Tests unmarshalling an element with comment in content with default parser.voidtestUnmarshallingWithCommentInElementContentInsecure()Tests unmarshalling an element with comment in content with insecure parser.-
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
-
parserPoolDefaults
private BasicParserPool parserPoolDefaults
-
parserPoolInsecure
private BasicParserPool parserPoolInsecure
-
-
Method Detail
-
setup
@BeforeClass public void setup() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testUnmarshallingWithCommentInElementContentDefaults
public void testUnmarshallingWithCommentInElementContentDefaults() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with comment in content with default parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallingWithCommentInElementContentInsecure
public void testUnmarshallingWithCommentInElementContentInsecure() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with comment in content with insecure parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallingWithCDATAInElementContentDefaults
public void testUnmarshallingWithCDATAInElementContentDefaults() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with CDATA in content with default parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallingWithCDATAInElementContentInsecure
public void testUnmarshallingWithCDATAInElementContentInsecure() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with CDATA in content with insecure parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallingWithCommentBetweenChildElementsDefaults
public void testUnmarshallingWithCommentBetweenChildElementsDefaults() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with comment between child elements with default parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallingWithCommentBetweenChildElementsInsecure
public void testUnmarshallingWithCommentBetweenChildElementsInsecure() throws XMLParserException, UnmarshallingExceptionTests unmarshalling an element with comment between child elements with insecure parser.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
-