| org.apache.cocoon.core.container.ContainerTestCase org.apache.cocoon.SitemapComponentTestCase
All known Subclasses: org.apache.cocoon.transformation.CIncludeTransformerTestCase, org.apache.cocoon.selection.HostSelectorTestCase, org.apache.cocoon.selection.ExceptionSelectorTestCase, org.apache.cocoon.selection.RegexpRequestParameterSelectorTestCase, org.apache.cocoon.selection.RequestAttributeSelectorTestCase, org.apache.cocoon.serialization.XMidiSerializerTestCase, org.apache.cocoon.acting.LocaleActionTestCase, org.apache.cocoon.acting.ResourceExistsActionTestCase, org.apache.cocoon.generation.TextGeneratorTestCase, org.apache.cocoon.generation.FileGeneratorTestCase, org.apache.cocoon.selection.RequestParameterSelectorTestCase, org.apache.cocoon.transformation.ParserTransformerTestCase, org.apache.cocoon.selection.BrowserSelectorTestCase, org.apache.cocoon.acting.RequestParamActionTestCase, org.apache.cocoon.selection.ResourceExistsSelectorTestCase, org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolverTestCase, org.apache.cocoon.transformation.PatternTransformerTestCase, org.apache.cocoon.transformation.I18NTransformerTestCase, org.apache.cocoon.selection.ParameterSelectorTestCase, org.apache.cocoon.transformation.FilterTransformerTestCase, org.apache.cocoon.transformation.LexicalTransformerTestCase, org.apache.cocoon.selection.SimpleSelectorTestCase, org.apache.cocoon.transformation.TraxTransformerTestCase, org.apache.cocoon.generation.XMidiGeneratorTestCase, org.apache.cocoon.selection.CookieSelectorTestCase, org.apache.cocoon.selection.SessionAttributeSelectorTestCase, org.apache.cocoon.matching.WildcardURIMatcherTestCase, org.apache.cocoon.selection.RegexpHeaderSelectorTestCase, org.apache.cocoon.selection.RequestMethodSelectorTestCase, org.apache.cocoon.selection.HeaderSelectorTestCase, org.apache.cocoon.transformation.XIncludeTransformerTestCase,
SitemapComponentTestCase | abstract public class SitemapComponentTestCase extends ContainerTestCase (Code) | | Testcase for actions, generators, transformers and serializer components.
author: Stephan Michels author: Mark Leicester version: CVS $Id: SitemapComponentTestCase.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
final public Map | act(String type, String source, Parameters parameters) Perform the action component.
Parameters: type - Hint of the action. | protected void | addContext(DefaultContext context) | final public void | assertEqual(String msg, Document expected, Document actual) Assert that the result of an XML comparison is similar. | final public void | assertEqual(Document expected, Document actual) Assert that the result of an XML comparison is similar. | final public void | assertIdentical(String msg, Document expected, Document actual) Assert that the result of an XML comparison is identical. | final public void | assertIdentical(Document expected, Document actual) Assert that the result of an XML comparison is identical. | final public void | assertIdentical(byte[] expected, byte[] actual) Assert that the result of a byte comparison is identical. | public String | callContinuation(String type, String source, String id, Map params) | public String | callFunction(String type, String source, String function, Map params) | final public Diff | compareXML(Document control, Document test) | final public Document | generate(String type, String source, Parameters parameters) Generate the generator output.
Parameters: type - Hint of the generator. | final public MockContext | getContext() | public Object | getFlowContextObject() | final public Map | getObjectModel() | final public MockRedirector | getRedirector() | final public MockRequest | getRequest() | final public MockResponse | getResponse() | final public Document | load(String source) | final public byte[] | loadByteArray(String source) Load a binary document.
Parameters: source - Source location. | final public Map | match(String type, String pattern, Parameters parameters) Match with a pattern.
Parameters: type - Hint of the matcher. | final public void | print(Document document) | final public boolean | select(String type, String expression, Parameters parameters) Select with a pattern.
Parameters: type - Hint of the matcher. | final public byte[] | serialize(String type, Parameters parameters, Document input) Serialize a document by a serializer
Parameters: type - Hint of the serializer. Parameters: parameters - Serializer parameters. Parameters: input - Input document. | public void | setUp() | final public Document | transform(String type, String source, Parameters parameters, Document input) Trannsform a document by a transformer
Parameters: type - Hint of the transformer. |
EMPTY_PARAMS | final public static Parameters EMPTY_PARAMS(Code) | | |
act | final public Map act(String type, String source, Parameters parameters) throws Exception(Code) | | Perform the action component.
Parameters: type - Hint of the action. Parameters: source - Source for the action. Parameters: parameters - Action parameters. |
addContext | protected void addContext(DefaultContext context)(Code) | | |
assertEqual | final public void assertEqual(String msg, Document expected, Document actual)(Code) | | Assert that the result of an XML comparison is similar.
Parameters: msg - The assertion message Parameters: expected - The expected XML document Parameters: actual - The actual XML Document |
assertEqual | final public void assertEqual(Document expected, Document actual)(Code) | | Assert that the result of an XML comparison is similar.
Parameters: expected - The expected XML document Parameters: actual - The actual XML Document |
assertIdentical | final public void assertIdentical(String msg, Document expected, Document actual)(Code) | | Assert that the result of an XML comparison is identical.
Parameters: msg - The assertion message Parameters: expected - The expected XML document Parameters: actual - The actual XML Document |
assertIdentical | final public void assertIdentical(Document expected, Document actual)(Code) | | Assert that the result of an XML comparison is identical.
Parameters: expected - The expected XML document Parameters: actual - The actual XML Document |
assertIdentical | final public void assertIdentical(byte[] expected, byte[] actual)(Code) | | Assert that the result of a byte comparison is identical.
Parameters: expected - The expected byte array Parameters: actual - The actual byte array |
compareXML | final public Diff compareXML(Document control, Document test)(Code) | | Compare two XML documents provided as strings
Parameters: control - Control document Parameters: test - Document to test Diff object describing differences in documents |
getFlowContextObject | public Object getFlowContextObject()(Code) | | |
getObjectModel | final public Map getObjectModel()(Code) | | |
loadByteArray | final public byte[] loadByteArray(String source)(Code) | | Load a binary document.
Parameters: source - Source location. Binary data. |
match | final public Map match(String type, String pattern, Parameters parameters) throws PatternException(Code) | | Match with a pattern.
Parameters: type - Hint of the matcher. Parameters: pattern - Pattern for the matcher. Parameters: parameters - Matcher parameters. |
select | final public boolean select(String type, String expression, Parameters parameters)(Code) | | Select with a pattern.
Parameters: type - Hint of the matcher. Parameters: expression - Expression for the selector. Parameters: parameters - Matcher parameters. |
serialize | final public byte[] serialize(String type, Parameters parameters, Document input) throws SAXException, IOException(Code) | | Serialize a document by a serializer
Parameters: type - Hint of the serializer. Parameters: parameters - Serializer parameters. Parameters: input - Input document. Serialized data. |
transform | final public Document transform(String type, String source, Parameters parameters, Document input) throws SAXException, ProcessingException, IOException(Code) | | Trannsform a document by a transformer
Parameters: type - Hint of the transformer. Parameters: source - Source for the transformer. Parameters: parameters - Generator parameters. Parameters: input - Input document. |
|
|