net.shibboleth.metadata.dom
Class MultiOutputXSLTtransformationStageTest

java.lang.Object
  extended by net.shibboleth.metadata.dom.BaseDomTest
      extended by net.shibboleth.metadata.dom.MultiOutputXSLTtransformationStageTest

public class MultiOutputXSLTtransformationStageTest
extends BaseDomTest

MultiOutputXSLTransformationStage unit test.


Nested Class Summary
private static class MultiOutputXSLTtransformationStageTest.TestInfo
          Simple marker object to test correct passage of ItemMetadata through pipeline stages.
 
Constructor Summary
MultiOutputXSLTtransformationStageTest()
           
 
Method Summary
private  net.shibboleth.metadata.dom.DomElementItem makeInput()
          Utility method to grab our standard input file and turn it into a DomElementItem.
 void testInclude()
          Test a transform which results from templates contained in a main stylesheet and one which is included.
 void testTransform0()
          Test a transform which results in no output elements.
 void testTransform1()
          Test a transform which results in a single output element, which we can test against a known good output file.
 void testTransform2()
          Test a transform which results in two empty output elements, which we can test against by collecting their element names.
 void testTransformListener()
          Test a transform which results in Status objects being attached to each of two empty output elements.
 void testTransformParam()
          Test a transform to which we supply a named parameter.
 
Methods inherited from class net.shibboleth.metadata.dom.BaseDomTest
assertXmlIdentical, getParserPool, readTestRelativeXmlData, readXmlData, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiOutputXSLTtransformationStageTest

public MultiOutputXSLTtransformationStageTest()
Method Detail

makeInput

private net.shibboleth.metadata.dom.DomElementItem makeInput()
                                                      throws net.shibboleth.utilities.java.support.xml.XMLParserException
Utility method to grab our standard input file and turn it into a DomElementItem.

Returns:
the standard input file imported into a DomElementItem.
Throws:
net.shibboleth.utilities.java.support.xml.XMLParserException - if there is a problem reading the input file

testTransform1

public void testTransform1()
                    throws Exception
Test a transform which results in a single output element, which we can test against a known good output file.

Throws:
Exception - if anything goes wrong.

testTransform0

public void testTransform0()
                    throws Exception
Test a transform which results in no output elements.

Throws:
Exception - if anything goes wrong.

testTransform2

public void testTransform2()
                    throws Exception
Test a transform which results in two empty output elements, which we can test against by collecting their element names. We also need to confirm that each output element retains the input ItemMetadatas.

Throws:
Exception - if anything goes wrong.

testTransformParam

public void testTransformParam()
                        throws Exception
Test a transform to which we supply a named parameter.

Throws:
Exception - if anything goes wrong.

testTransformListener

public void testTransformListener()
                           throws Exception
Test a transform which results in Status objects being attached to each of two empty output elements.

Throws:
Exception - if anything goes wrong.

testInclude

public void testInclude()
                 throws Exception
Test a transform which results from templates contained in a main stylesheet and one which is included.

Throws:
Exception - if anything goes wrong.


Copyright © 1999-2012. All Rights Reserved.