edu.internet2.middleware.shibboleth.common.xmlobject.impl
Class ShibMDKeyAuthorityTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.custommonkey.xmlunit.XMLTestCase
              extended by edu.internet2.middleware.shibboleth.common.TestCaseBase
                  extended by edu.internet2.middleware.shibboleth.common.xmlobject.BaseShibObjectProviderTestCase
                      extended by edu.internet2.middleware.shibboleth.common.xmlobject.impl.ShibMDKeyAuthorityTest
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants

public class ShibMDKeyAuthorityTest
extends BaseShibObjectProviderTestCase

Testing shibmd:KeyAuthority metadata extension.


Field Summary
private  int expectedNumKeyInfos
           
private  Integer expectedVerifyDepth
           
private  QName unknownAttribName
           
private  String unknownAttribValue
           
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.xmlobject.BaseShibObjectProviderTestCase
childElementsFile, DATA_PATH, expectedChildElementsDOM, expectedDOM, expectedOptionalAttributesDOM, singleElementFile, singleElementOptionalAttributesFile
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.TestCaseBase
builderFactory, marshallerFactory, parser, unmarshallerFactory
 
Fields inherited from interface org.custommonkey.xmlunit.XSLTConstants
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_NOINDENT
 
Fields inherited from interface org.custommonkey.xmlunit.XMLConstants
CLOSE_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_NS_URI, XML_DECLARATION, 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 Summary
ShibMDKeyAuthorityTest()
          Constructor.
 
Method Summary
protected  void setUp()
          
 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.
 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 testSingleElementUnmarshall()
          Tests unmarshalling a document that contains a single element (no children) with no optional attributes.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.xmlobject.BaseShibObjectProviderTestCase
buildXMLObject
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.TestCaseBase
assertEquals, assertEquals, unmarshallElement
 
Methods inherited from class org.custommonkey.xmlunit.XMLTestCase
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, compareXML
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expectedVerifyDepth

private Integer expectedVerifyDepth

expectedNumKeyInfos

private int expectedNumKeyInfos

unknownAttribName

private QName unknownAttribName

unknownAttribValue

private String unknownAttribValue
Constructor Detail

ShibMDKeyAuthorityTest

public ShibMDKeyAuthorityTest()
Constructor.

Method Detail

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class BaseShibObjectProviderTestCase
Throws:
Exception

testSingleElementMarshall

public void testSingleElementMarshall()
Tests marshalling the contents of a single element, with no optional attributes, to a DOM document.

Specified by:
testSingleElementMarshall in class BaseShibObjectProviderTestCase

testSingleElementOptionalAttributesMarshall

public void testSingleElementOptionalAttributesMarshall()
Tests marshalling the contents of a single element, with all optional attributes, to a DOM document.

Overrides:
testSingleElementOptionalAttributesMarshall in class BaseShibObjectProviderTestCase

testChildElementsMarshall

public void testChildElementsMarshall()
Tests marshalling the contents of a single element with child elements to a DOM document.

Overrides:
testChildElementsMarshall in class BaseShibObjectProviderTestCase

testSingleElementUnmarshall

public void testSingleElementUnmarshall()
Tests unmarshalling a document that contains a single element (no children) with no optional attributes.

Specified by:
testSingleElementUnmarshall in class BaseShibObjectProviderTestCase

testSingleElementOptionalAttributesUnmarshall

public void testSingleElementOptionalAttributesUnmarshall()
Tests unmarshalling a document that contains a single element (no children) with all that element's optional attributes.

Overrides:
testSingleElementOptionalAttributesUnmarshall in class BaseShibObjectProviderTestCase

testChildElementsUnmarshall

public void testChildElementsUnmarshall()
Tests unmarshalling a document that contains a single element with children.

Overrides:
testChildElementsUnmarshall in class BaseShibObjectProviderTestCase


Copyright © 1999-2012. All Rights Reserved.