Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.tapestry.test.assertions.* (3)org.apache.tapestry.test.mock.* (9)

org.apache.tapestry.test: Javadoc index of package org.apache.tapestry.test.


Package Samples:

org.apache.tapestry.test.assertions
org.apache.tapestry.test.mock

Classes:

ScriptMessages: Container of static methods to format logging and exception messages, used within the org.apache.tapesty.test package (and a few sub-packages). Technically, these are messages for the test package, and this class should be called TestMessages ... but that's always a bad idea (it makes the class look like a JUnit test suite). This class is public, not package private, because some related sub-packages make use of it as well.
Creator: A utility class that is used to instantiate abstract Tapestry pages and components. It creates, at runtime, a subclass where all abstract properties are filled in (complete with instance variable, accessor and mutator methods). This isn't the same as how the class is enhanced at runtime, but is sufficient to unit test the class, especially listener methods.
MockServletInputStream: Implementation of javax.servlet.ServletInputStream used in mock object testing. The data in the stream is provided by a binary file. The implemenation wraps around a java.io.FileInputStream redirecting all method invocations to the inner stream.
RegexpMatch: Used within a AssertRegexp to identify a single substring matched against the response. Basically, a wrapper around a string so that the location of the string can be tracked for error reporting purposes.
AttributeHolder: Base class for holders of named attributes such as javax.servlet.http.HttpSession , javax.servlet.http.HttpServletRequest and javax.servlet.ServletContext .
ResponseAssertion: Interface for classes that can test a response from the (simulated) web server for conformance to some expectation; most implementions check the response content for particular literal values or regular expressions.
AssertRegexp: Assertion used to check for the presence of a regular expression within the response output. Alternately, it can check for a specific list of matches of a regular expression within the response.
ParameterList: Contains a list of string query parameters for a RequestDescriptor .
MockResponse: Mock implementation of javax.servlet.http.HttpServletResponse .
MockServletConfig: An implementation of javax.servlet.ServletConfig used for Mock testing.
MockRequest: Mock implementation of javax.servlet.http.HttpServletRequest .
IntegrationTestScriptParser: Parses Tapestry test scripts; XML files that define an execution environment and a sequence of operations and assertions.
MockSession: Mock implementation of javax.servlet.http.HttpSession .
ScriptedTestSession: Executes a series of requests and assertions specified by a {@link org.apache.tapestry.test.ScriptDescriptor).
MockContext: Mock implementation of javax.servlet.ServletContext .
ScriptRunner: An object that can execute a script. This is at the heart of any test built around a script.
AssertOutput: Assertion that checks for the presence of a particular substring within the response text.
InitParameterHolder: Common interface for several mock objects that can contain initial parameters.
MockRequestDispatcher: Used to enable mock testing of internal request forwarding.
ScriptDescriptor: Top level object for test scripts.
RequestDescriptor
ServletDescriptor

Home | Contact Us | Privacy Policy | Terms of Service