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

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.ShibScopedValueTest
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants

public class ShibScopedValueTest
extends BaseShibObjectProviderTestCase

Testing shib:ScopedValue encoder extension.


Field Summary
private  String expectedScope
          Expected scope value.
private  String expectedValue
          Expected attribute value.
private  String scopeAttribute
          Name of the scope attribute.
private  String scopeDelimiter
          Scope delimiter.
 
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
ShibScopedValueTest()
          Constructor.
 
Method Summary
protected  void setUp()
          
 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, testChildElementsMarshall, testChildElementsUnmarshall
 
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

expectedValue

private String expectedValue
Expected attribute value.


expectedScope

private String expectedScope
Expected scope value.


scopeAttribute

private String scopeAttribute
Name of the scope attribute.


scopeDelimiter

private String scopeDelimiter
Scope delimiter.

Constructor Detail

ShibScopedValueTest

public ShibScopedValueTest()
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

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


Copyright © 1999-2012. All Rights Reserved.