public class CAbstractXsltTest extends TestCase (Code)
Testcase for CGenericXSLT.
We test basics like making the ChannelStaticData and ChannelRuntimeData
available to subclasses, spot check proper response to exceptions, and test
some edge behaviors with null return values.
We notably do not currently test but should test applying a valid XSLT to
valid XML with valid parameters.
version: $Revision: 35694 $ $Date: 2005-04-30 12:41:36 -0700 (Sat, 30 Apr 2005) $
testGetRuntimeData() Test that CAbstractXSLT exposes to its subclasses the runtime data it receives.
public void
testGetStaticData() Test that CAbstractXSLT exposes to its subclasses the static data it receives.
public void
testRenderXMLGetStylesheetParamsThrowsSqlException() Test that when getStylesheetParams() throws SQLException
the renderXML() implementation properly wraps that exception into a
PortalException in conformance with the IChannel API.
testRenderXMLNullDocument() Test that when we try to renderXML on an implementation that returns a
null Document for getXml, we throw IllegalStateException.
Test that when getStylesheetParams() throws SQLException
the renderXML() implementation properly wraps that exception into a
PortalException in conformance with the IChannel API.
throws: ParserConfigurationException -
testRenderXMLGetXmlThrowsRuntimeException
public void testRenderXMLGetXmlThrowsRuntimeException() throws PortalException(Code)
Test that when getXml() throws a RuntimeException that exception
is thrown by renderXML().
throws: PortalException -
Test that when we try to renderXML on an implementation that returns a
null Document for getXml, we throw IllegalStateException.
throws: PortalException -