Author: bdaw
Date: 2008-01-31 04:20:20 -0500 (Thu, 31 Jan 2008)
New Revision: 9675
Modified:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/Assertion.java
Log:
Rest of PLT.19
Modified:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/Assertion.java
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/Assertion.java 2008-01-31
08:51:22 UTC (rev 9674)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/Assertion.java 2008-01-31
09:20:20 UTC (rev 9675)
@@ -741,14 +741,28 @@
// PLT.19 Dispatching Requests to Servlets and JSPs
- JSR286_177(new TCK(177), "", ""),
- JSR286_178(new TCK(178), "", ""),
- JSR286_179(new TCK(179), "", ""),
- JSR286_180(new TCK(180), "", ""),
- JSR286_181(new TCK(181), "", ""),
- JSR286_182(new TCK(182), "", ""),
- JSR286_183(new TCK(183), "", ""),
- JSR286_184(new TCK(184), "", ""),
+ JSR286_177(new TCK(177), "PLT.19.1", "The getRequestDispatcher method
takes a String argument describing a path " +
+ "within the scope of the PortletContext of a portlet application. This path
must begin with a ‘/’ and it is " +
+ "relative to the PortletContext root."),
+ JSR286_178(new TCK(178), "PLT.19.1", "If no resource can be resolved
based on the given path or name the methods " +
+ "must return null."),
+ JSR286_179(new TCK(179), "PLT.19.1.1", "The parameters associated with
a PortletRequestDispatcher are scoped to " +
+ "apply only for the duration of the include call."),
+ JSR286_180(new TCK(180), "PLT.19.2", "The parameters to these methods
must be the request and response arguments " +
+ "that were passed in via the corresponding lifecycle method (e.g.
processAction, processEvent, serveResource, " +
+ "render) , or the request and response arguments must be instances of the
corresponding subclasses of the request " +
+ "and response wrapper classes that were introduced for version 2.0 of the
specification."),
+ JSR286_181(new TCK(181), "PLT.19.2", "The portlet container must ensure
that the servlet or JSP called through a" +
+ " PortletRequestDispatcher is called in the same thread as the
PortletRequestDispatcher include invocation"),
+ JSR286_182(new TCK(182), "PLT.19.3", "Servlets and JSPs included from
portlets in the render method must be handled " +
+ "as HTTP GET requests."),
+ JSR286_183(new TCK(183), "PLT.19.3.1", "Except for servlets obtained by
using the getNamedDispatcher method, a " +
+ "servlet or JSP being used from within an include call has access to the path
used to obtain the " +
+ "PortletRequestDispatcher. The following request attributes must be set:
javax.servlet.include.request_uri, " +
+ "javax.servlet.include.context_path, javax.servlet.include.servlet_path,
javax.servlet.include.path_info, " +
+ "javax.servlet.include.query_string"),
+ JSR286_184(new TCK(184), "PLT.19.3.2", "These attributes must be the
same Portlet API objects accessible to the " +
+ "portlet doing the include call."),
// PLT.19.3.3 Request and Response Objects for Included Servlets/JSPs from within the
Action and Event processing Methods
JSR286_185(new TCK(185), "PLT.19.3.3", "The following methods of the
HttpServletRequest must return null: " +
@@ -872,16 +886,30 @@
JSR286_232(new TCK(232), "PLT.19.3.5", "The containsHeader method of
the HttpServletResponse must return false."),
//
- JSR286_233(new TCK(233), "", ""),
- JSR286_234(new TCK(234), "", ""),
- JSR286_235(new TCK(235), "", ""),
- JSR286_236(new TCK(236), "", ""),
- JSR286_237(new TCK(237), "", ""),
- JSR286_238(new TCK(238), "", ""),
- JSR286_239(new TCK(239), "", ""),
- JSR286_240(new TCK(240), "", ""),
- JSR286_241(new TCK(241), "", ""),
- JSR286_242(new TCK(242), "", ""),
+ JSR286_233(new TCK(233), "PLT.19.3.7", "If the servlet or JSP that is
the target of a request dispatcher throws a " +
+ "runtime exception or a checked exception of type IOException, it must be
propagated to the calling portlet."),
+ JSR286_234(new TCK(234), "PLT.19.3.7", "All other exceptions, including
a ServletException, must be wrapped with a" +
+ " PortletException. The root cause of the exception must be set to the
original exception before being propagated."),
+ JSR286_235(new TCK(235), "PLT.19.3.8", "Thus the portlet acts as
starting point of the include chain and the " +
+ "included / forwarded servlet must get the path and query string information
used to obtain the " +
+ "PortletRequestDispatcher object."),
+ JSR286_236(new TCK(236), "PLT.19.4", "If output data exists in the
response buffer that has not been committed, " +
+ "the content must be cleared before the target servlet’s service method is
called."),
+ JSR286_237(new TCK(237), "PLT.19.4", "If the response has been
committed, an IllegalStateException must be thrown."),
+ JSR286_238(new TCK(238), "PLT.19.4", "Before the forward method of the
RequestDispatcher interface returns, the " +
+ "response content must be sent and committed, and closed by the portlet
container."),
+ JSR286_239(new TCK(239), "PLT.19.4.2", "The following request
attributes must be set: " +
+ "javax.servlet.forward.request_uri, javax.servlet.forward.context_path,
javax.servlet.forward.servlet_path, " +
+ "javax.servlet.forward.path_info, javax.servlet.forward.query_string"),
+ JSR286_240(new TCK(240), "PLT.19.4.2", "The values of these attributes
must be equal to the return values of the " +
+ "HttpServletRequest methods getRequestURI, getContextPath, getServletPath,
getPathInfo, getQueryString " +
+ "respectively, invoked on the request object passed to the first servlet
object in the forward call chain."),
+ JSR286_241(new TCK(241), "PLT.19.4.2", "These attributes are accessible
from the forwarded servlet via the " +
+ "getAttribute method on the request object. Note that these attributes must
always reflect the information " +
+ "in the target of the first forward servlet in the situation that multiple
forwards and subsequent includes " +
+ "are called."),
+ JSR286_242(new TCK(242), "PLT.19.4.2", "If the forwarded servlet was
obtained by using the getNamedDispatcher" +
+ " method, these attributes must not be set."),
// PLT.19.4.3 Request and Response Objects for Forwarded Servlets/JSPs from within the
Action and Event processing Methods
JSR286_243(new TCK(243), "PLT.19.4.3", "The following methods of the
HttpServletRequest must return null: " +
@@ -1005,7 +1033,9 @@
JSR286_290(new TCK(290), "PLT.19.4.5", "The containsHeader method of
the HttpServletResponse must return false."),
//
- JSR286_291(new TCK(291), "PLT.19.5", ""),
+ JSR286_291(new TCK(291), "PLT.19.5", "Since the Java Servlet
Specification V2.4 you can specify servlet filters " +
+ "for request dispatcher include calls. Portlet containers must support this
capability for included servlets " +
+ "via the PortletRequestDispatcher."),
// PLT.20 Portlet Filter