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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
    Invalid xml file.
    private Schema
    The simple xml object schema.
    private static final String
    Simple xml object schema file.
    private static final String
    Valid xml file.

    Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase

    builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Build the schema.
    void
    Test validation of an invalid xml file.
    void
    Test a null dom.
    void
    Test a null inbound message context.
    void
    Test 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, unmarshallElement

    Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase

    initOpenSAML

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SchemaValidateXMLMessageTest

      public SchemaValidateXMLMessageTest()
  • Method Details

    • setUp

      @BeforeClass public void setUp() throws Exception
      Build the schema.
      Throws:
      Exception - if something bad happens
    • testNullInboundMessageContext

      public void testNullInboundMessageContext() throws Exception
      Test a null inbound message context.
      Throws:
      Exception - if something bad happens
    • testNullDom

      public void testNullDom() throws Exception
      Test a null dom.
      Throws:
      Exception - if something bad happens
    • testInvalidSchema

      public void testInvalidSchema() throws Exception
      Test validation of an invalid xml file.
      Throws:
      Exception - if something bad happens
    • testValidSchema

      public void testValidSchema() throws Exception
      Test validation of a valid xml file.
      Throws:
      Exception - if something bad happens