Class SchemaValidateXMLMessageTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.messaging.handler.impl.SchemaValidateXMLMessageTest
public class SchemaValidateXMLMessageTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Unit test for
SchemaValidateXMLMessage.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringInvalid xml file.private SchemaThe simple xml object schema.private static final StringSimple xml object schema file.private static final StringValid xml file.Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Build the schema.voidTest validation of an invalid xml file.voidTest a null dom.voidTest a null inbound message context.voidTest validation of a valid xml file.Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
SCHEMA_FILE
Simple xml object schema file.- See Also:
-
INVALID_XML_FILE
Invalid xml file.- See Also:
-
VALID_XML_FILE
Valid xml file.- See Also:
-
schema
The simple xml object schema.
-
-
Constructor Details
-
SchemaValidateXMLMessageTest
public SchemaValidateXMLMessageTest()
-
-
Method Details
-
setUp
Build the schema.- Throws:
Exception- if something bad happens
-
testNullInboundMessageContext
Test a null inbound message context.- Throws:
Exception- if something bad happens
-
testNullDom
Test a null dom.- Throws:
Exception- if something bad happens
-
testInvalidSchema
Test validation of an invalid xml file.- Throws:
Exception- if something bad happens
-
testValidSchema
Test validation of a valid xml file.- Throws:
Exception- if something bad happens
-