Back to results
US 7,680,917 B2Granted
Method and system for unit testing web framework applications
AssigneeRed Hat, Inc.
InventorStanley D. Silvert
Life of this patent
Estimating the term…
Abstract
The lifetime of a data structure containing information for processing a client request is manipulated so that the information remains available to a review and/or testing process. After examination, the information may be discarded.
Claims10
A method comprising:
- creating, by a server running a web application, a request session object to support servicing a first client request of a series of client requests by the web application;
- wrapping, by the server, the request session object within a delegator context that provides a shell for the request session object and determines function that are to be delegated to the request session object and determines functions that are not to be delegated to the request session object;
- concealing from the request session object, a message that includes a function to release resources associated with the request session object, wherein the concealing is based on the delegator context determining that the function of the message is not to be delegated to the request session object;
- retrieving, by a tester in the server, the resources from the request session object after the message is concealed;
- and
- reviewing the retrieved resources, by the tester, for use in analyzing operations of the web application.
3 more elements
A method comprising:
- creating, by a JAVA server running a web application, a FacesContext object to hold data for preparing a Hypertext Transfer Protocol (HTTP) response from the web application;
- preparing, by the server, the HTTP response;
- wrapping, by a FacesContext-compatible shell factory, the FacesContext object with a delegator context;
- invoking a release function of the FacesContext object, wherein the delegator context that wraps the FacesContext object does not delegate the release function to the FacesContext object;
- and
- inspecting, by a unit test object of the server, a state of the FacesContext object after invoking the release function for use in analyzing operations of the web application.
3 more elements
Dependencies are inferred from the claim text.