net.shibboleth.metadata.dom
Class XSLTtransformationStageTest

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

public class XSLTtransformationStageTest
extends BaseDomTest

XSLTransformationStage unit test.


Nested Class Summary
private static class XSLTtransformationStageTest.TestInfo
          Simple marker object to test correct passage of ItemMetadata through pipeline stages.
 
Constructor Summary
XSLTtransformationStageTest()
           
 
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 testOutsideDocumentElement()
          Test a transform which manipulates the document's nodes that lie outside the document element.
 void testTransform1()
          Test a transform which results in a single output element, which we can test against a known good output file.
 void testTransformListener()
          Test a transform which results in Status objects being attached to the output element.
 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

XSLTtransformationStageTest

public XSLTtransformationStageTest()
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.

testTransformParam

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

Throws:
Exception - if something goes wrong

testTransformListener

public void testTransformListener()
                           throws Exception
Test a transform which results in Status objects being attached to the output element.

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

testOutsideDocumentElement

public void testOutsideDocumentElement()
                                throws Exception
Test a transform which manipulates the document's nodes that lie outside the document element.

Throws:
Exception - if something goes wrong


Copyright © 1999-2012. All Rights Reserved.