| Home >> All >> servletunit >> [ struts Javadoc ] |
| | servletunit.struts.tests.* (63) | | servletunit.struts.tests.cactus.* (23) |
servletunit.struts: Javadoc index of package servletunit.struts.
Package Samples:
servletunit.struts.tests.cactus
servletunit.struts.tests
Classes:
MockStrutsTestCase: MockStrutsTestCase is an extension of the base JUnit testcase that provides additional methods to aid in testing Struts Action objects. It uses a mock object approach to simulate a servlet container, and tests the execution of Action objects as they are actually run through the Struts ActionServlet. MockStrutsTestCase provides methods that set up the request path, request parameters for ActionForm subclasses, as well as methods that can verify that the correct ActionForward was used and that the proper ActionError messages were supplied. NOTE: By default, the Struts ActionServlet will look for ...
CactusStrutsTestCase: CactusStrutsTestCase is an extension of the Cactus ServletTestCase base class that provides additional methods to aid in testing Struts Action objects. It uses an in-container approach to run the servlet container, and tests the execution of Action objects as they are actually run through the Struts ActionServlet. CactusStrutsTestCase provides methods that set up the request path, request parameters for ActionForm subclasses, as well as methods that can verify that the correct ActionForward was used and that the proper ActionError messages were supplied. Please note that this class is meant to ...
StrutsServletContextWrapper: A wrapper for the ServletContext class. This is used in CactusStrutsTestCase so that we can retrieve the forward processed by the ActionServlet and use absolute paths for Struts resources. This allows us to to use the ActionServlet as a black box, rather than mimic its behavior as was previously the case.
StrutsRequestWrapper: A wrapper for the HttpServletRequest class. This is used in CactusStrutsTestCase so that we can add our own request parameters outside of the beginXXX and endXXX methods. This allows us to to use the ActionServlet as a black box, rather than mimic its behavior as was previously the case.
StrutsResponseWrapper: A wrapper for the HttpServletResponse class. This is used in CactusStrutsTestCase so that we can retrieve the redirect URL set by the ActionServlet in processing an action. This allows us to use the ActionServlet as a black box, rather than mimic its behavior as was previously the case.
StrutsServletConfigWrapper: A wrapper for the ServletConfig class. This is used in CactusStrutsTestCase so that we can use out own ServletContext wrapper class. This allows us to to use the ActionServlet as a black box, rather than mimic its behavior as was previously the case.
TestNoRequestPathInfo: Title: TestNoRequestPathInfo Description: Confirms correct behavior if actionPerfoem() is called prior to calling setRequestPathInfo(). Copyright: Copyright (c) 2003
TestNullPointerAction: Title: NullPointerActionTest Description: Tests to confirm a NullPointerException thrown from a misbehaving action reaches the test. Copyright: Copyright (c) 2003
TestNullPointerAction: Title: NullPointerActionTest Description: Tests to confirm a NullPointerException thrown from a misbehaving action reaches the test. Copyright: Copyright (c) 2003
TestUserAction: This class is reserved for quickly testing out other user's actions, to help in debugging their problems. It is deliberately checked in empty, as it is a place- holder.
TestUserAction: This class is reserved for quickly testing out other user's actions, to help in debugging their problems. It is deliberately checked in empty, as it is a place- holder.
ExceptionDuringTestError: Title: ExceptionDuringTestError Description: An error indicating an uncaught exception occurred during testing Copyright: Copyright (c) 2003
TestNullAction: Created by IntelliJ IDEA. User: deryl Date: Apr 13, 2003 Time: 12:07:32 PM To change this template use Options | File Templates.
NullAction: Created by IntelliJ IDEA. User: deryl Date: Apr 13, 2003 Time: 12:05:58 PM To change this template use Options | File Templates.
TestNullAction: Created by IntelliJ IDEA. User: deryl Date: Apr 13, 2003 Time: 12:07:32 PM To change this template use Options | File Templates.
TestResponseStatus: Created by IntelliJ IDEA. User: deryl Date: May 20, 2003 Time: 5:16:57 PM To change this template use Options | File Templates.
TestGetMockObjects: Created by IntelliJ IDEA. User: deryl Date: May 21, 2003 Time: 2:25:53 PM To change this template use Options | File Templates.
TestClearParameters: Created by IntelliJ IDEA. User: deryl Date: Apr 12, 2003 Time: 8:53:11 PM To change this template use Options | File Templates.
TestBadModuleName: Created by IntelliJ IDEA. User: deryl Date: Apr 28, 2003 Time: 9:26:32 AM To change this template use Options | File Templates.
TestClearParameters: Created by IntelliJ IDEA. User: deryl Date: Apr 12, 2003 Time: 8:53:11 PM To change this template use Options | File Templates.
TestBadModuleName: Created by IntelliJ IDEA. User: deryl Date: Apr 28, 2003 Time: 9:26:32 AM To change this template use Options | File Templates.
Common: Contains code common to both MockStrutsTestCase and CactusStrutsTestCase. It's always good to get rid of redundancy!
NullPointerForm: An Action Form that always throws a NullPointerAction during validation. Used in unit testing
NullPointerAction: An action that always throws a NullPointerException for use in testing
TestMockStrutsTestCase: A Junit test of the MockStrutsTestCase
| Home | Contact Us | Privacy Policy | Terms of Service |