You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2014/09/01 15:29:09 UTC
[01/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Repository: portals-pluto
Updated Branches:
refs/heads/master 8516d74d3 -> d6d7d72cb
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
index 5f36090..290af2d 100644
--- a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
@@ -33,3185 +33,3177 @@ import java.util.Map;
*/
public class JSR286ApiTestCaseDetails extends TestCaseDetails {
- public final static String V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONFILTER = "V2FilterTests_FilterChain_ActionFilter_invokeActionFilter";
- public final static String V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONFILTER2 = "V2FilterTests_FilterChain_ActionFilter_invokeActionFilter2";
- public final static String V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONEXCEPTION = "V2FilterTests_FilterChain_ActionFilter_invokeActionException";
- public final static String V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONEXCEPTION2 = "V2FilterTests_FilterChain_ActionFilter_invokeActionException2";
- public final static String V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTFILTER = "V2FilterTests_FilterChain_EventFilter_invokeEventFilter";
- public final static String V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTFILTER2 = "V2FilterTests_FilterChain_EventFilter_invokeEventFilter2";
- public final static String V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTEXCEPTION = "V2FilterTests_FilterChain_EventFilter_invokeEventException";
- public final static String V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTEXCEPTION2 = "V2FilterTests_FilterChain_EventFilter_invokeEventException2";
- public final static String V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDERFILTER = "V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter";
- public final static String V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDERFILTER2 = "V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter2";
- public final static String V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDEREXCEPTION = "V2FilterTests_FilterChain_RenderFilter_invokeRenderException";
- public final static String V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDEREXCEPTION2 = "V2FilterTests_FilterChain_RenderFilter_invokeRenderException2";
- public final static String V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEFILTER = "V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter";
- public final static String V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEFILTER2 = "V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter2";
- public final static String V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEEXCEPTION = "V2FilterTests_FilterChain_ResourceFilter_invokeResourceException";
- public final static String V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEEXCEPTION2 = "V2FilterTests_FilterChain_ResourceFilter_invokeResourceException2";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETFILTERNAME = "V2FilterTests_FilterConfig_RenderFilter_getFilterName";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETPORTLETCONTEXT = "V2FilterTests_FilterConfig_RenderFilter_getPortletContext";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETER1 = "V2FilterTests_FilterConfig_RenderFilter_getInitParameter1";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETER2 = "V2FilterTests_FilterConfig_RenderFilter_getInitParameter2";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETERNAMES1 = "V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames1";
- public final static String V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETERNAMES2 = "V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames2";
- public final static String V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION1 = "V2FilterTests_PortletFilter_ActionFilter_initAction1";
- public final static String V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION2 = "V2FilterTests_PortletFilter_ActionFilter_initAction2";
- public final static String V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION3 = "V2FilterTests_PortletFilter_ActionFilter_initAction3";
- public final static String V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT1 = "V2FilterTests_PortletFilter_EventFilter_initEvent1";
- public final static String V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT2 = "V2FilterTests_PortletFilter_EventFilter_initEvent2";
- public final static String V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT3 = "V2FilterTests_PortletFilter_EventFilter_initEvent3";
- public final static String V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER1 = "V2FilterTests_PortletFilter_RenderFilter_initRender1";
- public final static String V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER2 = "V2FilterTests_PortletFilter_RenderFilter_initRender2";
- public final static String V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER3 = "V2FilterTests_PortletFilter_RenderFilter_initRender3";
- public final static String V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE1 = "V2FilterTests_PortletFilter_ResourceFilter_initResource1";
- public final static String V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE2 = "V2FilterTests_PortletFilter_ResourceFilter_initResource2";
- public final static String V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE3 = "V2FilterTests_PortletFilter_ResourceFilter_initResource3";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_CANBECONFIGURED1 = "V2FilterTests_ActionFilter_ActionFilter_canBeConfigured1";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_CANBECONFIGURED2 = "V2FilterTests_ActionFilter_ActionFilter_canBeConfigured2";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERISCALLED = "V2FilterTests_ActionFilter_ActionFilter_doFilterIsCalled";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERPROCESSACTION1 = "V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction1";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERPROCESSACTION2 = "V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction2";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERBLOCK = "V2FilterTests_ActionFilter_ActionFilter_doFilterBlock";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXCEPTION1 = "V2FilterTests_ActionFilter_ActionFilter_doFilterException1";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXCEPTION2 = "V2FilterTests_ActionFilter_ActionFilter_doFilterException2";
- public final static String V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXAMINE = "V2FilterTests_ActionFilter_ActionFilter_doFilterExamine";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_CANBECONFIGURED1 = "V2FilterTests_EventFilter_EventFilter_canBeConfigured1";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_CANBECONFIGURED2 = "V2FilterTests_EventFilter_EventFilter_canBeConfigured2";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERISCALLED = "V2FilterTests_EventFilter_EventFilter_doFilterIsCalled";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERPROCESSEVENT1 = "V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent1";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERPROCESSEVENT2 = "V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent2";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERBLOCK = "V2FilterTests_EventFilter_EventFilter_doFilterBlock";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXCEPTION1 = "V2FilterTests_EventFilter_EventFilter_doFilterException1";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXCEPTION2 = "V2FilterTests_EventFilter_EventFilter_doFilterException2";
- public final static String V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXAMINE = "V2FilterTests_EventFilter_EventFilter_doFilterExamine";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_CANBECONFIGURED1 = "V2FilterTests_RenderFilter_RenderFilter_canBeConfigured1";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_CANBECONFIGURED2 = "V2FilterTests_RenderFilter_RenderFilter_canBeConfigured2";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERISCALLED = "V2FilterTests_RenderFilter_RenderFilter_doFilterIsCalled";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERPROCESSRENDER1 = "V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender1";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERPROCESSRENDER2 = "V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender2";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERBLOCK = "V2FilterTests_RenderFilter_RenderFilter_doFilterBlock";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXCEPTION1 = "V2FilterTests_RenderFilter_RenderFilter_doFilterException1";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXCEPTION2 = "V2FilterTests_RenderFilter_RenderFilter_doFilterException2";
- public final static String V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXAMINE = "V2FilterTests_RenderFilter_RenderFilter_doFilterExamine";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_CANBECONFIGURED1 = "V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured1";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_CANBECONFIGURED2 = "V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured2";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERISCALLED = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterIsCalled";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERPROCESSRESOURCE1 = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource1";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERPROCESSRESOURCE2 = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource2";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERBLOCK = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterBlock";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXCEPTION1 = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterException1";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXCEPTION2 = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterException2";
- public final static String V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXAMINE = "V2FilterTests_ResourceFilter_ResourceFilter_doFilterExamine";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_Render_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCONTENTLENGTH = "V2WrapperTests_ActionRequestWrapper_Render_getContentLength";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCONTENTTYPE = "V2WrapperTests_ActionRequestWrapper_Render_getContentType";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETPORTLETINPUTSTREAM = "V2WrapperTests_ActionRequestWrapper_Render_getPortletInputStream";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETREADER = "V2WrapperTests_ActionRequestWrapper_Render_getReader";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_SETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_Render_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETREQUEST = "V2WrapperTests_ActionRequestWrapper_Render_getRequest";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_SETREQUEST = "V2WrapperTests_ActionRequestWrapper_Render_setRequest";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETMETHOD = "V2WrapperTests_ActionRequestWrapper_Render_getMethod";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SENDREDIRECTA = "V2WrapperTests_ActionResponseWrapper_Render_sendRedirectA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SENDREDIRECTB = "V2WrapperTests_ActionResponseWrapper_Render_sendRedirectB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETEVENTA = "V2WrapperTests_ActionResponseWrapper_Render_setEventA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETEVENTB = "V2WrapperTests_ActionResponseWrapper_Render_setEventB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_Render_setPortletMode";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERA = "V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERB = "V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERS = "V2WrapperTests_ActionResponseWrapper_Render_setRenderParameters";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_Render_setWindowState";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRESPONSE = "V2WrapperTests_ActionResponseWrapper_Render_getResponse";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRESPONSE = "V2WrapperTests_ActionResponseWrapper_Render_setResponse";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_Render_getPortletMode";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP1 = "V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap1";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP2 = "V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap2";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_Render_getWindowState";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_ActionResponseWrapper_Render_removePublicRenderParameter";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETREQUEST = "V2WrapperTests_EventRequestWrapper_Render_getRequest";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_SETREQUEST = "V2WrapperTests_EventRequestWrapper_Render_setRequest";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETEVENT1 = "V2WrapperTests_EventRequestWrapper_Render_getEvent1";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETEVENT2 = "V2WrapperTests_EventRequestWrapper_Render_getEvent2";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETMETHOD = "V2WrapperTests_EventRequestWrapper_Render_getMethod";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETEVENTA = "V2WrapperTests_EventResponseWrapper_Render_setEventA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETEVENTB = "V2WrapperTests_EventResponseWrapper_Render_setEventB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_Render_setPortletMode";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERA = "V2WrapperTests_EventResponseWrapper_Render_setRenderParameterA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERB = "V2WrapperTests_EventResponseWrapper_Render_setRenderParameterB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERSA = "V2WrapperTests_EventResponseWrapper_Render_setRenderParametersA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERSB = "V2WrapperTests_EventResponseWrapper_Render_setRenderParametersB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_Render_setWindowState";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRESPONSE = "V2WrapperTests_EventResponseWrapper_Render_getResponse";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRESPONSE = "V2WrapperTests_EventResponseWrapper_Render_setResponse";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_Render_getPortletMode";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP1 = "V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap1";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP2 = "V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap2";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_Render_getWindowState";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_EventResponseWrapper_Render_removePublicRenderParameter";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETATTRIBUTE = "V2WrapperTests_PortletRequestWrapper_Render_getAttribute";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETATTRIBUTENAMES = "V2WrapperTests_PortletRequestWrapper_Render_getAttributeNames";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETAUTHTYPE = "V2WrapperTests_PortletRequestWrapper_Render_getAuthType";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETCONTEXTPATH = "V2WrapperTests_PortletRequestWrapper_Render_getContextPath";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETCOOKIES = "V2WrapperTests_PortletRequestWrapper_Render_getCookies";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETLOCALE = "V2WrapperTests_PortletRequestWrapper_Render_getLocale";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETLOCALES = "V2WrapperTests_PortletRequestWrapper_Render_getLocales";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETER = "V2WrapperTests_PortletRequestWrapper_Render_getParameter";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERMAP = "V2WrapperTests_PortletRequestWrapper_Render_getParameterMap";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERNAMES = "V2WrapperTests_PortletRequestWrapper_Render_getParameterNames";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERVALUES = "V2WrapperTests_PortletRequestWrapper_Render_getParameterValues";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTALCONTEXT = "V2WrapperTests_PortletRequestWrapper_Render_getPortalContext";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETMODE = "V2WrapperTests_PortletRequestWrapper_Render_getPortletMode";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETSESSIONA = "V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionA";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETSESSIONB = "V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionB";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPREFERENCES = "V2WrapperTests_PortletRequestWrapper_Render_getPreferences";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTIES = "V2WrapperTests_PortletRequestWrapper_Render_getProperties";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTY = "V2WrapperTests_PortletRequestWrapper_Render_getProperty";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTYNAMES = "V2WrapperTests_PortletRequestWrapper_Render_getPropertyNames";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREMOTEUSER = "V2WrapperTests_PortletRequestWrapper_Render_getRemoteUser";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREQUESTEDSESSIONID = "V2WrapperTests_PortletRequestWrapper_Render_getRequestedSessionId";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETRESPONSECONTENTTYPE = "V2WrapperTests_PortletRequestWrapper_Render_getResponseContentType";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETRESPONSECONTENTTYPES = "V2WrapperTests_PortletRequestWrapper_Render_getResponseContentTypes";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSCHEME = "V2WrapperTests_PortletRequestWrapper_Render_getScheme";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSERVERNAME = "V2WrapperTests_PortletRequestWrapper_Render_getServerName";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSERVERPORT = "V2WrapperTests_PortletRequestWrapper_Render_getServerPort";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETUSERPRINCIPAL = "V2WrapperTests_PortletRequestWrapper_Render_getUserPrincipal";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETWINDOWID = "V2WrapperTests_PortletRequestWrapper_Render_getWindowID";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETWINDOWSTATE = "V2WrapperTests_PortletRequestWrapper_Render_getWindowState";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISPORTLETMODEALLOWED = "V2WrapperTests_PortletRequestWrapper_Render_isPortletModeAllowed";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISREQUESTEDSESSIONIDVALID = "V2WrapperTests_PortletRequestWrapper_Render_isRequestedSessionIdValid";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISSECURE = "V2WrapperTests_PortletRequestWrapper_Render_isSecure";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISUSERINROLE = "V2WrapperTests_PortletRequestWrapper_Render_isUserInRole";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISWINDOWSTATEALLOWED = "V2WrapperTests_PortletRequestWrapper_Render_isWindowStateAllowed";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_REMOVEATTRIBUTE = "V2WrapperTests_PortletRequestWrapper_Render_removeAttribute";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_SETATTRIBUTE = "V2WrapperTests_PortletRequestWrapper_Render_setAttribute";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREQUEST = "V2WrapperTests_PortletRequestWrapper_Render_getRequest";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_SETREQUEST = "V2WrapperTests_PortletRequestWrapper_Render_setRequest";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPRIVATEPARAMETERMAP = "V2WrapperTests_PortletRequestWrapper_Render_getPrivateParameterMap";
- public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPUBLICPARAMETERMAP = "V2WrapperTests_PortletRequestWrapper_Render_getPublicParameterMap";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYA = "V2WrapperTests_PortletResponseWrapper_Render_addPropertyA";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYB = "V2WrapperTests_PortletResponseWrapper_Render_addPropertyB";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYC = "V2WrapperTests_PortletResponseWrapper_Render_addPropertyC";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ENCODEURL = "V2WrapperTests_PortletResponseWrapper_Render_encodeURL";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_GETNAMESPACE = "V2WrapperTests_PortletResponseWrapper_Render_getNamespace";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_SETPROPERTY = "V2WrapperTests_PortletResponseWrapper_Render_setProperty";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_GETRESPONSE = "V2WrapperTests_PortletResponseWrapper_Render_getResponse";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_SETRESPONSE = "V2WrapperTests_PortletResponseWrapper_Render_setResponse";
- public final static String V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_CREATEELEMENT = "V2WrapperTests_PortletResponseWrapper_Render_createElement";
- public final static String V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_GETREQUEST = "V2WrapperTests_RenderRequestWrapper_Render_getRequest";
- public final static String V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_SETREQUEST = "V2WrapperTests_RenderRequestWrapper_Render_setRequest";
- public final static String V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_GETETAG = "V2WrapperTests_RenderRequestWrapper_Render_getETag";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_FLUSHBUFFER = "V2WrapperTests_RenderResponseWrapper_Render_flushBuffer";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETBUFFERSIZE = "V2WrapperTests_RenderResponseWrapper_Render_getBufferSize";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCHARACTERENCODING = "V2WrapperTests_RenderResponseWrapper_Render_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCONTENTTYPE = "V2WrapperTests_RenderResponseWrapper_Render_getContentType";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETLOCALE = "V2WrapperTests_RenderResponseWrapper_Render_getLocale";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETPORTLETOUTPUTSTREAM = "V2WrapperTests_RenderResponseWrapper_Render_getPortletOutputStream";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETWRITER = "V2WrapperTests_RenderResponseWrapper_Render_getWriter";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_ISCOMMITTED = "V2WrapperTests_RenderResponseWrapper_Render_isCommitted";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_RESET = "V2WrapperTests_RenderResponseWrapper_Render_reset";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_RESETBUFFER = "V2WrapperTests_RenderResponseWrapper_Render_resetBuffer";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETBUFFERSIZE = "V2WrapperTests_RenderResponseWrapper_Render_setBufferSize";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETCONTENTTYPE = "V2WrapperTests_RenderResponseWrapper_Render_setContentType";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETTITLE = "V2WrapperTests_RenderResponseWrapper_Render_setTitle";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCACHECONTROL = "V2WrapperTests_RenderResponseWrapper_Render_getCacheControl";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETNEXTPOSSIBLEPORTLETMODES = "V2WrapperTests_RenderResponseWrapper_Render_setNextPossiblePortletModes";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETRESPONSE = "V2WrapperTests_RenderResponseWrapper_Render_getResponse";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETRESPONSE = "V2WrapperTests_RenderResponseWrapper_Render_setResponse";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATEACTIONURL = "V2WrapperTests_RenderResponseWrapper_Render_createActionURL";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATERENDERURL = "V2WrapperTests_RenderResponseWrapper_Render_createRenderURL";
- public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATERESOURCEURL = "V2WrapperTests_RenderResponseWrapper_Render_createResourceURL";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETPORTLETINPUTSTREAM = "V2WrapperTests_ResourceRequestWrapper_Render_getPortletInputStream";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETREADER = "V2WrapperTests_ResourceRequestWrapper_Render_getReader";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_SETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_Render_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETREQUEST = "V2WrapperTests_ResourceRequestWrapper_Render_getRequest";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_SETREQUEST = "V2WrapperTests_ResourceRequestWrapper_Render_setRequest";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_Render_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCONTENTLENGTH = "V2WrapperTests_ResourceRequestWrapper_Render_getContentLength";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCONTENTTYPE = "V2WrapperTests_ResourceRequestWrapper_Render_getContentType";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETETAG = "V2WrapperTests_ResourceRequestWrapper_Render_getETag";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETMETHOD = "V2WrapperTests_ResourceRequestWrapper_Render_getMethod";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETRESOURCEID = "V2WrapperTests_ResourceRequestWrapper_Render_getResourceID";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETPRIVATERENDERPARAMETERMAP = "V2WrapperTests_ResourceRequestWrapper_Render_getPrivateRenderParameterMap";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCACHEABILITY = "V2WrapperTests_ResourceRequestWrapper_Render_getCacheability";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_FLUSHBUFFER = "V2WrapperTests_ResourceResponseWrapper_Render_flushBuffer";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_Render_getBufferSize";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_Render_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_Render_getContentType";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETLOCALE = "V2WrapperTests_ResourceResponseWrapper_Render_getLocale";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETPORTLETOUTPUTSTREAM = "V2WrapperTests_ResourceResponseWrapper_Render_getPortletOutputStream";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETWRITER = "V2WrapperTests_ResourceResponseWrapper_Render_getWriter";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_ISCOMMITTED = "V2WrapperTests_ResourceResponseWrapper_Render_isCommitted";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_RESET = "V2WrapperTests_ResourceResponseWrapper_Render_reset";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_RESETBUFFER = "V2WrapperTests_ResourceResponseWrapper_Render_resetBuffer";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_Render_setBufferSize";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_Render_setContentType";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCACHECONTROL = "V2WrapperTests_ResourceResponseWrapper_Render_getCacheControl";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_Render_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETLOCALE = "V2WrapperTests_ResourceResponseWrapper_Render_setLocale";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCONTENTLENGTH = "V2WrapperTests_ResourceResponseWrapper_Render_setContentLength";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_Render_getResponse";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_Render_setResponse";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATEACTIONURL = "V2WrapperTests_ResourceResponseWrapper_Render_createActionURL";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATERENDERURL = "V2WrapperTests_ResourceResponseWrapper_Render_createRenderURL";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATERESOURCEURL = "V2WrapperTests_ResourceResponseWrapper_Render_createResourceURL";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDUSER_INFO = "V2RequestTests_PortletRequest_Render_fieldUSER_INFO";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDCCPP_PROFILE = "V2RequestTests_PortletRequest_Render_fieldCCPP_PROFILE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDBASIC_AUTH = "V2RequestTests_PortletRequest_Render_fieldBASIC_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDFORM_AUTH = "V2RequestTests_PortletRequest_Render_fieldFORM_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDCLIENT_CERT_AUTH = "V2RequestTests_PortletRequest_Render_fieldCLIENT_CERT_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDDIGEST_AUTH = "V2RequestTests_PortletRequest_Render_fieldDIGEST_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDACTION_PHASE = "V2RequestTests_PortletRequest_Render_fieldACTION_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDEVENT_PHASE = "V2RequestTests_PortletRequest_Render_fieldEVENT_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_PHASE = "V2RequestTests_PortletRequest_Render_fieldRENDER_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRESOURCE_PHASE = "V2RequestTests_PortletRequest_Render_fieldRESOURCE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDLIFECYCLE_PHASE = "V2RequestTests_PortletRequest_Render_fieldLIFECYCLE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_PART = "V2RequestTests_PortletRequest_Render_fieldRENDER_PART";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_HEADERS = "V2RequestTests_PortletRequest_Render_fieldRENDER_HEADERS";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_MARKUP = "V2RequestTests_PortletRequest_Render_fieldRENDER_MARKUP";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDACTION_SCOPE_ID = "V2RequestTests_PortletRequest_Render_fieldACTION_SCOPE_ID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISWINDOWSTATEALLOWED1 = "V2RequestTests_PortletRequest_Render_isWindowStateAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISWINDOWSTATEALLOWED2 = "V2RequestTests_PortletRequest_Render_isWindowStateAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISPORTLETMODEALLOWED1 = "V2RequestTests_PortletRequest_Render_isPortletModeAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISPORTLETMODEALLOWED2 = "V2RequestTests_PortletRequest_Render_isPortletModeAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETMODE = "V2RequestTests_PortletRequest_Render_getPortletMode";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETWINDOWSTATE = "V2RequestTests_PortletRequest_Render_getWindowState";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPREFERENCES = "V2RequestTests_PortletRequest_Render_getPreferences";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONA1 = "V2RequestTests_PortletRequest_Render_getPortletSessionA1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONA2 = "V2RequestTests_PortletRequest_Render_getPortletSessionA2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB1 = "V2RequestTests_PortletRequest_Render_getPortletSessionB1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB2 = "V2RequestTests_PortletRequest_Render_getPortletSessionB2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB3 = "V2RequestTests_PortletRequest_Render_getPortletSessionB3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB4 = "V2RequestTests_PortletRequest_Render_getPortletSessionB4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY1 = "V2RequestTests_PortletRequest_Render_getProperty1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY2 = "V2RequestTests_PortletRequest_Render_getProperty2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY3 = "V2RequestTests_PortletRequest_Render_getProperty3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES1 = "V2RequestTests_PortletRequest_Render_getProperties1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES2 = "V2RequestTests_PortletRequest_Render_getProperties2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES3 = "V2RequestTests_PortletRequest_Render_getProperties3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTYNAMES1 = "V2RequestTests_PortletRequest_Render_getPropertyNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTYNAMES2 = "V2RequestTests_PortletRequest_Render_getPropertyNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTALCONTEXT = "V2RequestTests_PortletRequest_Render_getPortalContext";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETAUTHTYPE1 = "V2RequestTests_PortletRequest_Render_getAuthType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETAUTHTYPE2 = "V2RequestTests_PortletRequest_Render_getAuthType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH1 = "V2RequestTests_PortletRequest_Render_getContextPath1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH2 = "V2RequestTests_PortletRequest_Render_getContextPath2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH3 = "V2RequestTests_PortletRequest_Render_getContextPath3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREMOTEUSER1 = "V2RequestTests_PortletRequest_Render_getRemoteUser1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREMOTEUSER2 = "V2RequestTests_PortletRequest_Render_getRemoteUser2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETUSERPRINCIPAL1 = "V2RequestTests_PortletRequest_Render_getUserPrincipal1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETUSERPRINCIPAL2 = "V2RequestTests_PortletRequest_Render_getUserPrincipal2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE1 = "V2RequestTests_PortletRequest_Render_isUserInRole1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE2 = "V2RequestTests_PortletRequest_Render_isUserInRole2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE3 = "V2RequestTests_PortletRequest_Render_isUserInRole3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE1 = "V2RequestTests_PortletRequest_Render_getAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE2 = "V2RequestTests_PortletRequest_Render_getAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE3 = "V2RequestTests_PortletRequest_Render_getAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTENAMES1 = "V2RequestTests_PortletRequest_Render_getAttributeNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTENAMES2 = "V2RequestTests_PortletRequest_Render_getAttributeNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER1 = "V2RequestTests_PortletRequest_Render_getParameter1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER2 = "V2RequestTests_PortletRequest_Render_getParameter2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER3 = "V2RequestTests_PortletRequest_Render_getParameter3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER4 = "V2RequestTests_PortletRequest_Render_getParameter4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER5 = "V2RequestTests_PortletRequest_Render_getParameter5";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERNAMES1 = "V2RequestTests_PortletRequest_Render_getParameterNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERNAMES2 = "V2RequestTests_PortletRequest_Render_getParameterNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES1 = "V2RequestTests_PortletRequest_Render_getParameterValues1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES2 = "V2RequestTests_PortletRequest_Render_getParameterValues2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES3 = "V2RequestTests_PortletRequest_Render_getParameterValues3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES4 = "V2RequestTests_PortletRequest_Render_getParameterValues4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP1 = "V2RequestTests_PortletRequest_Render_getParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP2 = "V2RequestTests_PortletRequest_Render_getParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP3 = "V2RequestTests_PortletRequest_Render_getParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISSECURE1 = "V2RequestTests_PortletRequest_Render_isSecure1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISSECURE2 = "V2RequestTests_PortletRequest_Render_isSecure2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE1 = "V2RequestTests_PortletRequest_Render_setAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE2 = "V2RequestTests_PortletRequest_Render_setAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE3 = "V2RequestTests_PortletRequest_Render_setAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_REMOVEATTRIBUTE1 = "V2RequestTests_PortletRequest_Render_removeAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_REMOVEATTRIBUTE2 = "V2RequestTests_PortletRequest_Render_removeAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREQUESTEDSESSIONID1 = "V2RequestTests_PortletRequest_Render_getRequestedSessionId1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREQUESTEDSESSIONID2 = "V2RequestTests_PortletRequest_Render_getRequestedSessionId2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISREQUESTEDSESSIONIDVALID1 = "V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISREQUESTEDSESSIONIDVALID2 = "V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPE1 = "V2RequestTests_PortletRequest_Render_getResponseContentType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPE2 = "V2RequestTests_PortletRequest_Render_getResponseContentType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPES1 = "V2RequestTests_PortletRequest_Render_getResponseContentTypes1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPES2 = "V2RequestTests_PortletRequest_Render_getResponseContentTypes2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETLOCALE = "V2RequestTests_PortletRequest_Render_getLocale";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETLOCALES = "V2RequestTests_PortletRequest_Render_getLocales";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSCHEME = "V2RequestTests_PortletRequest_Render_getScheme";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSERVERNAME = "V2RequestTests_PortletRequest_Render_getServerName";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSERVERPORT = "V2RequestTests_PortletRequest_Render_getServerPort";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETWINDOWID = "V2RequestTests_PortletRequest_Render_getWindowID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCOOKIES1 = "V2RequestTests_PortletRequest_Render_getCookies1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCOOKIES2 = "V2RequestTests_PortletRequest_Render_getCookies2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP1 = "V2RequestTests_PortletRequest_Render_getPrivateParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP2 = "V2RequestTests_PortletRequest_Render_getPrivateParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP3 = "V2RequestTests_PortletRequest_Render_getPrivateParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP1 = "V2RequestTests_PortletRequest_Render_getPublicParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP2 = "V2RequestTests_PortletRequest_Render_getPublicParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP3 = "V2RequestTests_PortletRequest_Render_getPublicParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RENDER_EXISTS = "V2RequestTests_PortletRequest_Render_exists";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDUSER_INFO = "V2RequestTests_PortletRequest_Action_fieldUSER_INFO";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDCCPP_PROFILE = "V2RequestTests_PortletRequest_Action_fieldCCPP_PROFILE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDBASIC_AUTH = "V2RequestTests_PortletRequest_Action_fieldBASIC_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDFORM_AUTH = "V2RequestTests_PortletRequest_Action_fieldFORM_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDCLIENT_CERT_AUTH = "V2RequestTests_PortletRequest_Action_fieldCLIENT_CERT_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDDIGEST_AUTH = "V2RequestTests_PortletRequest_Action_fieldDIGEST_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDACTION_PHASE = "V2RequestTests_PortletRequest_Action_fieldACTION_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDEVENT_PHASE = "V2RequestTests_PortletRequest_Action_fieldEVENT_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_PHASE = "V2RequestTests_PortletRequest_Action_fieldRENDER_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRESOURCE_PHASE = "V2RequestTests_PortletRequest_Action_fieldRESOURCE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDLIFECYCLE_PHASE = "V2RequestTests_PortletRequest_Action_fieldLIFECYCLE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_PART = "V2RequestTests_PortletRequest_Action_fieldRENDER_PART";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_HEADERS = "V2RequestTests_PortletRequest_Action_fieldRENDER_HEADERS";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_MARKUP = "V2RequestTests_PortletRequest_Action_fieldRENDER_MARKUP";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDACTION_SCOPE_ID = "V2RequestTests_PortletRequest_Action_fieldACTION_SCOPE_ID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISWINDOWSTATEALLOWED1 = "V2RequestTests_PortletRequest_Action_isWindowStateAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISWINDOWSTATEALLOWED2 = "V2RequestTests_PortletRequest_Action_isWindowStateAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISPORTLETMODEALLOWED1 = "V2RequestTests_PortletRequest_Action_isPortletModeAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISPORTLETMODEALLOWED2 = "V2RequestTests_PortletRequest_Action_isPortletModeAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETMODE = "V2RequestTests_PortletRequest_Action_getPortletMode";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETWINDOWSTATE = "V2RequestTests_PortletRequest_Action_getWindowState";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPREFERENCES = "V2RequestTests_PortletRequest_Action_getPreferences";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONA1 = "V2RequestTests_PortletRequest_Action_getPortletSessionA1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONA2 = "V2RequestTests_PortletRequest_Action_getPortletSessionA2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB1 = "V2RequestTests_PortletRequest_Action_getPortletSessionB1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB2 = "V2RequestTests_PortletRequest_Action_getPortletSessionB2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB3 = "V2RequestTests_PortletRequest_Action_getPortletSessionB3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB4 = "V2RequestTests_PortletRequest_Action_getPortletSessionB4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY1 = "V2RequestTests_PortletRequest_Action_getProperty1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY2 = "V2RequestTests_PortletRequest_Action_getProperty2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY3 = "V2RequestTests_PortletRequest_Action_getProperty3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES1 = "V2RequestTests_PortletRequest_Action_getProperties1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES2 = "V2RequestTests_PortletRequest_Action_getProperties2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES3 = "V2RequestTests_PortletRequest_Action_getProperties3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTYNAMES1 = "V2RequestTests_PortletRequest_Action_getPropertyNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTYNAMES2 = "V2RequestTests_PortletRequest_Action_getPropertyNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTALCONTEXT = "V2RequestTests_PortletRequest_Action_getPortalContext";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETAUTHTYPE1 = "V2RequestTests_PortletRequest_Action_getAuthType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETAUTHTYPE2 = "V2RequestTests_PortletRequest_Action_getAuthType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH1 = "V2RequestTests_PortletRequest_Action_getContextPath1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH2 = "V2RequestTests_PortletRequest_Action_getContextPath2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH3 = "V2RequestTests_PortletRequest_Action_getContextPath3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREMOTEUSER1 = "V2RequestTests_PortletRequest_Action_getRemoteUser1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREMOTEUSER2 = "V2RequestTests_PortletRequest_Action_getRemoteUser2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETUSERPRINCIPAL1 = "V2RequestTests_PortletRequest_Action_getUserPrincipal1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETUSERPRINCIPAL2 = "V2RequestTests_PortletRequest_Action_getUserPrincipal2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE1 = "V2RequestTests_PortletRequest_Action_isUserInRole1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE2 = "V2RequestTests_PortletRequest_Action_isUserInRole2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE3 = "V2RequestTests_PortletRequest_Action_isUserInRole3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE1 = "V2RequestTests_PortletRequest_Action_getAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE2 = "V2RequestTests_PortletRequest_Action_getAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE3 = "V2RequestTests_PortletRequest_Action_getAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTENAMES1 = "V2RequestTests_PortletRequest_Action_getAttributeNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTENAMES2 = "V2RequestTests_PortletRequest_Action_getAttributeNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER1 = "V2RequestTests_PortletRequest_Action_getParameter1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER2 = "V2RequestTests_PortletRequest_Action_getParameter2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER3 = "V2RequestTests_PortletRequest_Action_getParameter3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER4 = "V2RequestTests_PortletRequest_Action_getParameter4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER5 = "V2RequestTests_PortletRequest_Action_getParameter5";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERNAMES1 = "V2RequestTests_PortletRequest_Action_getParameterNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERNAMES2 = "V2RequestTests_PortletRequest_Action_getParameterNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES1 = "V2RequestTests_PortletRequest_Action_getParameterValues1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES2 = "V2RequestTests_PortletRequest_Action_getParameterValues2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES3 = "V2RequestTests_PortletRequest_Action_getParameterValues3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES4 = "V2RequestTests_PortletRequest_Action_getParameterValues4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP1 = "V2RequestTests_PortletRequest_Action_getParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP2 = "V2RequestTests_PortletRequest_Action_getParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP3 = "V2RequestTests_PortletRequest_Action_getParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISSECURE1 = "V2RequestTests_PortletRequest_Action_isSecure1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISSECURE2 = "V2RequestTests_PortletRequest_Action_isSecure2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE1 = "V2RequestTests_PortletRequest_Action_setAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE2 = "V2RequestTests_PortletRequest_Action_setAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE3 = "V2RequestTests_PortletRequest_Action_setAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_REMOVEATTRIBUTE1 = "V2RequestTests_PortletRequest_Action_removeAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_REMOVEATTRIBUTE2 = "V2RequestTests_PortletRequest_Action_removeAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREQUESTEDSESSIONID1 = "V2RequestTests_PortletRequest_Action_getRequestedSessionId1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREQUESTEDSESSIONID2 = "V2RequestTests_PortletRequest_Action_getRequestedSessionId2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISREQUESTEDSESSIONIDVALID1 = "V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISREQUESTEDSESSIONIDVALID2 = "V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPE1 = "V2RequestTests_PortletRequest_Action_getResponseContentType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPE2 = "V2RequestTests_PortletRequest_Action_getResponseContentType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPES1 = "V2RequestTests_PortletRequest_Action_getResponseContentTypes1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPES2 = "V2RequestTests_PortletRequest_Action_getResponseContentTypes2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETLOCALE = "V2RequestTests_PortletRequest_Action_getLocale";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETLOCALES = "V2RequestTests_PortletRequest_Action_getLocales";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSCHEME = "V2RequestTests_PortletRequest_Action_getScheme";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSERVERNAME = "V2RequestTests_PortletRequest_Action_getServerName";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSERVERPORT = "V2RequestTests_PortletRequest_Action_getServerPort";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETWINDOWID = "V2RequestTests_PortletRequest_Action_getWindowID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCOOKIES1 = "V2RequestTests_PortletRequest_Action_getCookies1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCOOKIES2 = "V2RequestTests_PortletRequest_Action_getCookies2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP1 = "V2RequestTests_PortletRequest_Action_getPrivateParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP2 = "V2RequestTests_PortletRequest_Action_getPrivateParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP3 = "V2RequestTests_PortletRequest_Action_getPrivateParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP1 = "V2RequestTests_PortletRequest_Action_getPublicParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP2 = "V2RequestTests_PortletRequest_Action_getPublicParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP3 = "V2RequestTests_PortletRequest_Action_getPublicParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_ACTION_EXISTS = "V2RequestTests_PortletRequest_Action_exists";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDUSER_INFO = "V2RequestTests_PortletRequest_Event_fieldUSER_INFO";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDCCPP_PROFILE = "V2RequestTests_PortletRequest_Event_fieldCCPP_PROFILE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDBASIC_AUTH = "V2RequestTests_PortletRequest_Event_fieldBASIC_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDFORM_AUTH = "V2RequestTests_PortletRequest_Event_fieldFORM_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDCLIENT_CERT_AUTH = "V2RequestTests_PortletRequest_Event_fieldCLIENT_CERT_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDDIGEST_AUTH = "V2RequestTests_PortletRequest_Event_fieldDIGEST_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDACTION_PHASE = "V2RequestTests_PortletRequest_Event_fieldACTION_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDEVENT_PHASE = "V2RequestTests_PortletRequest_Event_fieldEVENT_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_PHASE = "V2RequestTests_PortletRequest_Event_fieldRENDER_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRESOURCE_PHASE = "V2RequestTests_PortletRequest_Event_fieldRESOURCE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDLIFECYCLE_PHASE = "V2RequestTests_PortletRequest_Event_fieldLIFECYCLE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_PART = "V2RequestTests_PortletRequest_Event_fieldRENDER_PART";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_HEADERS = "V2RequestTests_PortletRequest_Event_fieldRENDER_HEADERS";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_MARKUP = "V2RequestTests_PortletRequest_Event_fieldRENDER_MARKUP";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDACTION_SCOPE_ID = "V2RequestTests_PortletRequest_Event_fieldACTION_SCOPE_ID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISWINDOWSTATEALLOWED1 = "V2RequestTests_PortletRequest_Event_isWindowStateAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISWINDOWSTATEALLOWED2 = "V2RequestTests_PortletRequest_Event_isWindowStateAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISPORTLETMODEALLOWED1 = "V2RequestTests_PortletRequest_Event_isPortletModeAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISPORTLETMODEALLOWED2 = "V2RequestTests_PortletRequest_Event_isPortletModeAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETMODE = "V2RequestTests_PortletRequest_Event_getPortletMode";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETWINDOWSTATE = "V2RequestTests_PortletRequest_Event_getWindowState";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPREFERENCES = "V2RequestTests_PortletRequest_Event_getPreferences";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONA1 = "V2RequestTests_PortletRequest_Event_getPortletSessionA1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONA2 = "V2RequestTests_PortletRequest_Event_getPortletSessionA2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB1 = "V2RequestTests_PortletRequest_Event_getPortletSessionB1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB2 = "V2RequestTests_PortletRequest_Event_getPortletSessionB2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB3 = "V2RequestTests_PortletRequest_Event_getPortletSessionB3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB4 = "V2RequestTests_PortletRequest_Event_getPortletSessionB4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY1 = "V2RequestTests_PortletRequest_Event_getProperty1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY2 = "V2RequestTests_PortletRequest_Event_getProperty2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY3 = "V2RequestTests_PortletRequest_Event_getProperty3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES1 = "V2RequestTests_PortletRequest_Event_getProperties1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES2 = "V2RequestTests_PortletRequest_Event_getProperties2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES3 = "V2RequestTests_PortletRequest_Event_getProperties3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTYNAMES1 = "V2RequestTests_PortletRequest_Event_getPropertyNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTYNAMES2 = "V2RequestTests_PortletRequest_Event_getPropertyNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTALCONTEXT = "V2RequestTests_PortletRequest_Event_getPortalContext";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETAUTHTYPE1 = "V2RequestTests_PortletRequest_Event_getAuthType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETAUTHTYPE2 = "V2RequestTests_PortletRequest_Event_getAuthType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH1 = "V2RequestTests_PortletRequest_Event_getContextPath1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH2 = "V2RequestTests_PortletRequest_Event_getContextPath2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH3 = "V2RequestTests_PortletRequest_Event_getContextPath3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREMOTEUSER1 = "V2RequestTests_PortletRequest_Event_getRemoteUser1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREMOTEUSER2 = "V2RequestTests_PortletRequest_Event_getRemoteUser2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETUSERPRINCIPAL1 = "V2RequestTests_PortletRequest_Event_getUserPrincipal1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETUSERPRINCIPAL2 = "V2RequestTests_PortletRequest_Event_getUserPrincipal2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE1 = "V2RequestTests_PortletRequest_Event_isUserInRole1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE2 = "V2RequestTests_PortletRequest_Event_isUserInRole2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE3 = "V2RequestTests_PortletRequest_Event_isUserInRole3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE1 = "V2RequestTests_PortletRequest_Event_getAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE2 = "V2RequestTests_PortletRequest_Event_getAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE3 = "V2RequestTests_PortletRequest_Event_getAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTENAMES1 = "V2RequestTests_PortletRequest_Event_getAttributeNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTENAMES2 = "V2RequestTests_PortletRequest_Event_getAttributeNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER1 = "V2RequestTests_PortletRequest_Event_getParameter1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER2 = "V2RequestTests_PortletRequest_Event_getParameter2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER3 = "V2RequestTests_PortletRequest_Event_getParameter3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER4 = "V2RequestTests_PortletRequest_Event_getParameter4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER5 = "V2RequestTests_PortletRequest_Event_getParameter5";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERNAMES1 = "V2RequestTests_PortletRequest_Event_getParameterNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERNAMES2 = "V2RequestTests_PortletRequest_Event_getParameterNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES1 = "V2RequestTests_PortletRequest_Event_getParameterValues1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES2 = "V2RequestTests_PortletRequest_Event_getParameterValues2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES3 = "V2RequestTests_PortletRequest_Event_getParameterValues3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES4 = "V2RequestTests_PortletRequest_Event_getParameterValues4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP1 = "V2RequestTests_PortletRequest_Event_getParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP2 = "V2RequestTests_PortletRequest_Event_getParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP3 = "V2RequestTests_PortletRequest_Event_getParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISSECURE1 = "V2RequestTests_PortletRequest_Event_isSecure1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISSECURE2 = "V2RequestTests_PortletRequest_Event_isSecure2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE1 = "V2RequestTests_PortletRequest_Event_setAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE2 = "V2RequestTests_PortletRequest_Event_setAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE3 = "V2RequestTests_PortletRequest_Event_setAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_REMOVEATTRIBUTE1 = "V2RequestTests_PortletRequest_Event_removeAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_REMOVEATTRIBUTE2 = "V2RequestTests_PortletRequest_Event_removeAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREQUESTEDSESSIONID1 = "V2RequestTests_PortletRequest_Event_getRequestedSessionId1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREQUESTEDSESSIONID2 = "V2RequestTests_PortletRequest_Event_getRequestedSessionId2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISREQUESTEDSESSIONIDVALID1 = "V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISREQUESTEDSESSIONIDVALID2 = "V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPE1 = "V2RequestTests_PortletRequest_Event_getResponseContentType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPE2 = "V2RequestTests_PortletRequest_Event_getResponseContentType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPES1 = "V2RequestTests_PortletRequest_Event_getResponseContentTypes1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPES2 = "V2RequestTests_PortletRequest_Event_getResponseContentTypes2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETLOCALE = "V2RequestTests_PortletRequest_Event_getLocale";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETLOCALES = "V2RequestTests_PortletRequest_Event_getLocales";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSCHEME = "V2RequestTests_PortletRequest_Event_getScheme";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSERVERNAME = "V2RequestTests_PortletRequest_Event_getServerName";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSERVERPORT = "V2RequestTests_PortletRequest_Event_getServerPort";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETWINDOWID = "V2RequestTests_PortletRequest_Event_getWindowID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCOOKIES1 = "V2RequestTests_PortletRequest_Event_getCookies1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCOOKIES2 = "V2RequestTests_PortletRequest_Event_getCookies2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP1 = "V2RequestTests_PortletRequest_Event_getPrivateParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP2 = "V2RequestTests_PortletRequest_Event_getPrivateParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP3 = "V2RequestTests_PortletRequest_Event_getPrivateParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP1 = "V2RequestTests_PortletRequest_Event_getPublicParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP2 = "V2RequestTests_PortletRequest_Event_getPublicParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP3 = "V2RequestTests_PortletRequest_Event_getPublicParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_EVENT_EXISTS = "V2RequestTests_PortletRequest_Event_exists";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDUSER_INFO = "V2RequestTests_PortletRequest_Resource_fieldUSER_INFO";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDCCPP_PROFILE = "V2RequestTests_PortletRequest_Resource_fieldCCPP_PROFILE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDBASIC_AUTH = "V2RequestTests_PortletRequest_Resource_fieldBASIC_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDFORM_AUTH = "V2RequestTests_PortletRequest_Resource_fieldFORM_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDCLIENT_CERT_AUTH = "V2RequestTests_PortletRequest_Resource_fieldCLIENT_CERT_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDDIGEST_AUTH = "V2RequestTests_PortletRequest_Resource_fieldDIGEST_AUTH";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDACTION_PHASE = "V2RequestTests_PortletRequest_Resource_fieldACTION_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDEVENT_PHASE = "V2RequestTests_PortletRequest_Resource_fieldEVENT_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_PHASE = "V2RequestTests_PortletRequest_Resource_fieldRENDER_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRESOURCE_PHASE = "V2RequestTests_PortletRequest_Resource_fieldRESOURCE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDLIFECYCLE_PHASE = "V2RequestTests_PortletRequest_Resource_fieldLIFECYCLE_PHASE";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_PART = "V2RequestTests_PortletRequest_Resource_fieldRENDER_PART";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_HEADERS = "V2RequestTests_PortletRequest_Resource_fieldRENDER_HEADERS";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_MARKUP = "V2RequestTests_PortletRequest_Resource_fieldRENDER_MARKUP";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDACTION_SCOPE_ID = "V2RequestTests_PortletRequest_Resource_fieldACTION_SCOPE_ID";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISWINDOWSTATEALLOWED1 = "V2RequestTests_PortletRequest_Resource_isWindowStateAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISWINDOWSTATEALLOWED2 = "V2RequestTests_PortletRequest_Resource_isWindowStateAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISPORTLETMODEALLOWED1 = "V2RequestTests_PortletRequest_Resource_isPortletModeAllowed1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISPORTLETMODEALLOWED2 = "V2RequestTests_PortletRequest_Resource_isPortletModeAllowed2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETMODE = "V2RequestTests_PortletRequest_Resource_getPortletMode";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETWINDOWSTATE = "V2RequestTests_PortletRequest_Resource_getWindowState";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPREFERENCES = "V2RequestTests_PortletRequest_Resource_getPreferences";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONA1 = "V2RequestTests_PortletRequest_Resource_getPortletSessionA1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONA2 = "V2RequestTests_PortletRequest_Resource_getPortletSessionA2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB1 = "V2RequestTests_PortletRequest_Resource_getPortletSessionB1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB2 = "V2RequestTests_PortletRequest_Resource_getPortletSessionB2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB3 = "V2RequestTests_PortletRequest_Resource_getPortletSessionB3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB4 = "V2RequestTests_PortletRequest_Resource_getPortletSessionB4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY1 = "V2RequestTests_PortletRequest_Resource_getProperty1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY2 = "V2RequestTests_PortletRequest_Resource_getProperty2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY3 = "V2RequestTests_PortletRequest_Resource_getProperty3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES1 = "V2RequestTests_PortletRequest_Resource_getProperties1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES2 = "V2RequestTests_PortletRequest_Resource_getProperties2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES3 = "V2RequestTests_PortletRequest_Resource_getProperties3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTYNAMES1 = "V2RequestTests_PortletRequest_Resource_getPropertyNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTYNAMES2 = "V2RequestTests_PortletRequest_Resource_getPropertyNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTALCONTEXT = "V2RequestTests_PortletRequest_Resource_getPortalContext";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETAUTHTYPE1 = "V2RequestTests_PortletRequest_Resource_getAuthType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETAUTHTYPE2 = "V2RequestTests_PortletRequest_Resource_getAuthType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH1 = "V2RequestTests_PortletRequest_Resource_getContextPath1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH2 = "V2RequestTests_PortletRequest_Resource_getContextPath2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH3 = "V2RequestTests_PortletRequest_Resource_getContextPath3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREMOTEUSER1 = "V2RequestTests_PortletRequest_Resource_getRemoteUser1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREMOTEUSER2 = "V2RequestTests_PortletRequest_Resource_getRemoteUser2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETUSERPRINCIPAL1 = "V2RequestTests_PortletRequest_Resource_getUserPrincipal1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETUSERPRINCIPAL2 = "V2RequestTests_PortletRequest_Resource_getUserPrincipal2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE1 = "V2RequestTests_PortletRequest_Resource_isUserInRole1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE2 = "V2RequestTests_PortletRequest_Resource_isUserInRole2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE3 = "V2RequestTests_PortletRequest_Resource_isUserInRole3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE1 = "V2RequestTests_PortletRequest_Resource_getAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE2 = "V2RequestTests_PortletRequest_Resource_getAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE3 = "V2RequestTests_PortletRequest_Resource_getAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTENAMES1 = "V2RequestTests_PortletRequest_Resource_getAttributeNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTENAMES2 = "V2RequestTests_PortletRequest_Resource_getAttributeNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER1 = "V2RequestTests_PortletRequest_Resource_getParameter1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER2 = "V2RequestTests_PortletRequest_Resource_getParameter2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER3 = "V2RequestTests_PortletRequest_Resource_getParameter3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER4 = "V2RequestTests_PortletRequest_Resource_getParameter4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER5 = "V2RequestTests_PortletRequest_Resource_getParameter5";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERNAMES1 = "V2RequestTests_PortletRequest_Resource_getParameterNames1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERNAMES2 = "V2RequestTests_PortletRequest_Resource_getParameterNames2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES1 = "V2RequestTests_PortletRequest_Resource_getParameterValues1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES2 = "V2RequestTests_PortletRequest_Resource_getParameterValues2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES3 = "V2RequestTests_PortletRequest_Resource_getParameterValues3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES4 = "V2RequestTests_PortletRequest_Resource_getParameterValues4";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP1 = "V2RequestTests_PortletRequest_Resource_getParameterMap1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP2 = "V2RequestTests_PortletRequest_Resource_getParameterMap2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP3 = "V2RequestTests_PortletRequest_Resource_getParameterMap3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISSECURE1 = "V2RequestTests_PortletRequest_Resource_isSecure1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISSECURE2 = "V2RequestTests_PortletRequest_Resource_isSecure2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE1 = "V2RequestTests_PortletRequest_Resource_setAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE2 = "V2RequestTests_PortletRequest_Resource_setAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE3 = "V2RequestTests_PortletRequest_Resource_setAttribute3";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_REMOVEATTRIBUTE1 = "V2RequestTests_PortletRequest_Resource_removeAttribute1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_REMOVEATTRIBUTE2 = "V2RequestTests_PortletRequest_Resource_removeAttribute2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREQUESTEDSESSIONID1 = "V2RequestTests_PortletRequest_Resource_getRequestedSessionId1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREQUESTEDSESSIONID2 = "V2RequestTests_PortletRequest_Resource_getRequestedSessionId2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISREQUESTEDSESSIONIDVALID1 = "V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISREQUESTEDSESSIONIDVALID2 = "V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPE1 = "V2RequestTests_PortletRequest_Resource_getResponseContentType1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPE2 = "V2RequestTests_PortletRequest_Resource_getResponseContentType2";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPES1 = "V2RequestTests_PortletRequest_Resource_getResponseContentTypes1";
- public final static String V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPES2 = "V2
<TRUNCATED>
[06/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
new file mode 100644
index 0000000..974dc9d
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
@@ -0,0 +1,233 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_PortletURLGenerationListener_ApiRender_event
+ *
+ */
+public class URLTests_PortletURLGenerationListener_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_PortletURLGenerationListener_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_configuration */
+ /* Details: "A PortletURLGenerationListener can be configured in the */
+ /* portlet deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_CONFIGURATION);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1 */
+ /* Details: "Method filterActionURL(PortletURL): The */
+ /* filterActionURL(PortletURL): method is called before the toString */
+ /* or write methods are executed on an action URL" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2 */
+ /* Details: "Method filterActionURL(PortletURL): The filterActionURL */
+ /* method is passed the PortletURL object representing the action */
+ /* URL" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3 */
+ /* Details: "Method filterActionURL(PortletURL): The input action URL */
+ /* object can be modified by setting a parameter and the modified URL */
+ /* object is processed by the PortletURL toString or write method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL3);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4 */
+ /* Details: "Method filterActionURL(PortletURL): The input action URL */
+ /* object can be modified by setting a property and the modified URL */
+ /* object is processed by the PortletURL toString or write method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL4);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5 */
+ /* Details: "Method filterRenderURL(PortletURL): The */
+ /* filterRenderURL(PortletURL): method is called before the toString */
+ /* or write methods are executed on an action URL" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL5);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL6 */
+ /* Details: "Method filterRenderURL(PortletURL): The filterRenderURL */
+ /* method is passed the PortletURL object representing the action */
+ /* URL" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL6);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL7 */
+ /* Details: "Method filterRenderURL(PortletURL): The input action URL */
+ /* object can be modified by setting a parameter and the modified URL */
+ /* object is processed by the PortletURL toString or write method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL7);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL8 */
+ /* Details: "Method filterRenderURL(PortletURL): The input action URL */
+ /* object can be modified by setting a property and the modified URL */
+ /* object is processed by the PortletURL toString or write method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL8);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1 */
+ /* Details: "Method filterResourceURL(ResourceURL): The */
+ /* filterResourceURL(PortletURL): method is called before the */
+ /* toString or write methods are executed on an action URL" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL1);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2 */
+ /* Details: "Method filterResourceURL(ResourceURL): The */
+ /* filterResourceURL method is passed the PortletURL object */
+ /* representing the action URL" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL2);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3 */
+ /* Details: "Method filterResourceURL(ResourceURL): The input action */
+ /* URL object can be modified by setting a parameter and the modified */
+ /* URL object is processed by the PortletURL toString or write */
+ /* method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL3);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4 */
+ /* Details: "Method filterResourceURL(ResourceURL): The input action */
+ /* URL object can be modified by setting a property and the modified */
+ /* URL object is processed by the PortletURL toString or write */
+ /* method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL4);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5 */
+ /* Details: "Method filterResourceURL(ResourceURL): The input action */
+ /* URL object can be modified by setting the resource ID and the */
+ /* modified URL object is processed by the PortletURL toString or */
+ /* write method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL5);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_Render.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_Render.java
deleted file mode 100644
index 1166b3b..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_Render.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_PortletURLGenerationListener_Render_event
- *
- */
-public class URLTests_PortletURLGenerationListener_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_PortletURLGenerationListener_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_configuration */
- /* Details: "A PortletURLGenerationListener can be configured in the */
- /* portlet deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_CONFIGURATION);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterActionURL1 */
- /* Details: "Method filterActionURL(PortletURL): The */
- /* filterActionURL(PortletURL): method is called before the toString */
- /* or write methods are executed on an action URL" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERACTIONURL1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterActionURL2 */
- /* Details: "Method filterActionURL(PortletURL): The filterActionURL */
- /* method is passed the PortletURL object representing the action */
- /* URL" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERACTIONURL2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterActionURL3 */
- /* Details: "Method filterActionURL(PortletURL): The input action URL */
- /* object can be modified by setting a parameter and the modified URL */
- /* object is processed by the PortletURL toString or write method" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERACTIONURL3);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterActionURL4 */
- /* Details: "Method filterActionURL(PortletURL): The input action URL */
- /* object can be modified by setting a property and the modified URL */
- /* object is processed by the PortletURL toString or write method" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERACTIONURL4);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterRenderURL5 */
- /* Details: "Method filterRenderURL(PortletURL): The */
- /* filterRenderURL(PortletURL): method is called before the toString */
- /* or write methods are executed on an action URL" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRENDERURL5);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterRenderURL6 */
- /* Details: "Method filterRenderURL(PortletURL): The filterRenderURL */
- /* method is passed the PortletURL object representing the action */
- /* URL" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRENDERURL6);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterRenderURL7 */
- /* Details: "Method filterRenderURL(PortletURL): The input action URL */
- /* object can be modified by setting a parameter and the modified URL */
- /* object is processed by the PortletURL toString or write method" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRENDERURL7);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterRenderURL8 */
- /* Details: "Method filterRenderURL(PortletURL): The input action URL */
- /* object can be modified by setting a property and the modified URL */
- /* object is processed by the PortletURL toString or write method" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRENDERURL8);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterResourceURL1 */
- /* Details: "Method filterResourceURL(ResourceURL): The */
- /* filterResourceURL(PortletURL): method is called before the */
- /* toString or write methods are executed on an action URL" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRESOURCEURL1);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterResourceURL2 */
- /* Details: "Method filterResourceURL(ResourceURL): The */
- /* filterResourceURL method is passed the PortletURL object */
- /* representing the action URL" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRESOURCEURL2);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterResourceURL3 */
- /* Details: "Method filterResourceURL(ResourceURL): The input action */
- /* URL object can be modified by setting a parameter and the modified */
- /* URL object is processed by the PortletURL toString or write */
- /* method" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRESOURCEURL3);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterResourceURL4 */
- /* Details: "Method filterResourceURL(ResourceURL): The input action */
- /* URL object can be modified by setting a property and the modified */
- /* URL object is processed by the PortletURL toString or write */
- /* method" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRESOURCEURL4);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURLGenerationListener_Render_filterResourceURL5 */
- /* Details: "Method filterResourceURL(ResourceURL): The input action */
- /* URL object can be modified by setting the resource ID and the */
- /* modified URL object is processed by the PortletURL toString or */
- /* write method" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_RENDER_FILTERRESOURCEURL5);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
new file mode 100644
index 0000000..036a9fa
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
@@ -0,0 +1,223 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_PortletURL_ApiRenderActurl_event
+ *
+ */
+public class URLTests_PortletURL_ApiRenderActurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_PortletURL_ApiRenderActurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to be used when the URL is activated" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portal does not support the specified */
+ /* Window State" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the specified WindowState is not declared */
+ /* in the deployment descriptor" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETWINDOWSTATE3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setWindowState4 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the user is not allowed to switch to the */
+ /* specified WindowState" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETWINDOWSTATE4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to be used when the URL is activated" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETPORTLETMODE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portal does not support the specified */
+ /* Window State" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETPORTLETMODE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the specified PortletMode is not declared */
+ /* in the deployment descriptor" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETPORTLETMODE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setPortletMode4 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the user is not allowed to switch to the */
+ /* specified PortletMode" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_SETPORTLETMODE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the PortletMode object */
+ /* set on the URL" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_GETPORTLETMODE1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if the PortletMode */
+ /* has not been set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_GETPORTLETMODE2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the WindowState object */
+ /* set on the URL" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_GETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if the Window */
+ /* State has not been set" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_GETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_REMOVEPUBLICRENDERPARAMETER1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderActurl_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_REMOVEPUBLICRENDERPARAMETER2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
new file mode 100644
index 0000000..dceef9d
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
@@ -0,0 +1,223 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_PortletURL_ApiRenderRenurl_event
+ *
+ */
+public class URLTests_PortletURL_ApiRenderRenurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_PortletURL_ApiRenderRenurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to be used when the URL is activated" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portal does not support the specified */
+ /* Window State" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the specified WindowState is not declared */
+ /* in the deployment descriptor" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETWINDOWSTATE3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setWindowState4 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the user is not allowed to switch to the */
+ /* specified WindowState" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETWINDOWSTATE4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to be used when the URL is activated" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETPORTLETMODE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portal does not support the specified */
+ /* Window State" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETPORTLETMODE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the specified PortletMode is not declared */
+ /* in the deployment descriptor" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETPORTLETMODE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode4 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the user is not allowed to switch to the */
+ /* specified PortletMode" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_SETPORTLETMODE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the PortletMode object */
+ /* set on the URL" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_GETPORTLETMODE1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if the PortletMode */
+ /* has not been set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_GETPORTLETMODE2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the WindowState object */
+ /* set on the URL" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_GETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if the Window */
+ /* State has not been set" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_GETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_REMOVEPUBLICRENDERPARAMETER1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_REMOVEPUBLICRENDERPARAMETER2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderActurl.java
deleted file mode 100644
index 5e43074..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderActurl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_PortletURL_RenderActurl_event
- *
- */
-public class URLTests_PortletURL_RenderActurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_PortletURL_RenderActurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to be used when the URL is activated" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETWINDOWSTATE1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portal does not support the specified */
- /* Window State" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETWINDOWSTATE2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the specified WindowState is not declared */
- /* in the deployment descriptor" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETWINDOWSTATE3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setWindowState4 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the user is not allowed to switch to the */
- /* specified WindowState" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETWINDOWSTATE4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to be used when the URL is activated" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETPORTLETMODE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portal does not support the specified */
- /* Window State" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETPORTLETMODE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the specified PortletMode is not declared */
- /* in the deployment descriptor" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETPORTLETMODE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_setPortletMode4 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the user is not allowed to switch to the */
- /* specified PortletMode" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_SETPORTLETMODE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the PortletMode object */
- /* set on the URL" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_GETPORTLETMODE1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if the PortletMode */
- /* has not been set" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_GETPORTLETMODE2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the WindowState object */
- /* set on the URL" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_GETWINDOWSTATE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if the Window */
- /* State has not been set" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_GETWINDOWSTATE2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_REMOVEPUBLICRENDERPARAMETER1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderActurl_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERACTURL_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderRenurl.java
deleted file mode 100644
index 5a8745e..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_RenderRenurl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_PortletURL_RenderRenurl_event
- *
- */
-public class URLTests_PortletURL_RenderRenurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_PortletURL_RenderRenurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to be used when the URL is activated" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETWINDOWSTATE1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portal does not support the specified */
- /* Window State" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETWINDOWSTATE2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the specified WindowState is not declared */
- /* in the deployment descriptor" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETWINDOWSTATE3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setWindowState4 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the user is not allowed to switch to the */
- /* specified WindowState" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETWINDOWSTATE4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to be used when the URL is activated" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETPORTLETMODE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portal does not support the specified */
- /* Window State" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETPORTLETMODE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the specified PortletMode is not declared */
- /* in the deployment descriptor" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETPORTLETMODE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_setPortletMode4 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the user is not allowed to switch to the */
- /* specified PortletMode" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_SETPORTLETMODE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the PortletMode object */
- /* set on the URL" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_GETPORTLETMODE1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if the PortletMode */
- /* has not been set" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_GETPORTLETMODE2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the WindowState object */
- /* set on the URL" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_GETWINDOWSTATE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if the Window */
- /* State has not been set" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_GETWINDOWSTATE2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_REMOVEPUBLICRENDERPARAMETER1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_PortletURL_RenderRenurl_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_RENDERRENURL_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
new file mode 100644
index 0000000..d19da72
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
@@ -0,0 +1,185 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_ResourceURL_ApiRenderResurl_event
+ *
+ */
+public class URLTests_ResourceURL_ApiRenderResurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_ResourceURL_ApiRenderResurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldFULL */
+ /* Details: "Has String field FULL with value of \"cacheLevelFull\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDFULL);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldPAGE */
+ /* Details: "Has String field PAGE with value of \"cacheLevelPage\" " */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDPAGE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldPORTLET */
+ /* Details: "Has String field PORTLET with value of */
+ /* \"cacheLevelPortlet\" " */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDPORTLET);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldSHARED */
+ /* Details: "Has String field SHARED with value of */
+ /* \"javax.portlet.shared\" " */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDSHARED);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_implementsBaseURL2 */
+ /* Details: "Method implementsBaseUR(): All tests described for the */
+ /* BaseURL execute correctly with the ResourceURL" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_IMPLEMENTSBASEURL2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_setResourceID */
+ /* Details: "Method setResourceID(String): Sets the specified String */
+ /* as the portlet resource ID" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_SETRESOURCEID);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_getCacheability */
+ /* Details: "Method getCacheability(): Returns a String containing */
+ /* the cacheability level set on the resource URL" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_GETCACHEABILITY);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_setCacheability1 */
+ /* Details: "Method setCacheability(String): Sets the cacheability */
+ /* level for the resource URL" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_SETCACHEABILITY1);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_setCacheability2 */
+ /* Details: "Method setCacheability(String): Throws */
+ /* IllegalArgumentException if the input parameter does not have a */
+ /* value of \"FULL\", \"PAGE\", or \"PORTLET\"" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_SETCACHEABILITY2);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_setCacheability3 */
+ /* Details: "Method setCacheability(String): Throws */
+ /* IllegalStateException if the specified cacheability level is */
+ /* weaker than the cacheability level for the parent resource URL" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_SETCACHEABILITY3);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_RenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_RenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_RenderResurl.java
deleted file mode 100644
index 6415348..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_RenderResurl.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_ResourceURL_RenderResurl_event
- *
- */
-public class URLTests_ResourceURL_RenderResurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_ResourceURL_RenderResurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_fieldFULL */
- /* Details: "Has String field FULL with value of \"cacheLevelFull\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_FIELDFULL);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_fieldPAGE */
- /* Details: "Has String field PAGE with value of \"cacheLevelPage\" " */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_FIELDPAGE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_fieldPORTLET */
- /* Details: "Has String field PORTLET with value of */
- /* \"cacheLevelPortlet\" " */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_FIELDPORTLET);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_fieldSHARED */
- /* Details: "Has String field SHARED with value of */
- /* \"javax.portlet.shared\" " */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_FIELDSHARED);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_implementsBaseURL2 */
- /* Details: "Method implementsBaseUR(): All tests described for the */
- /* BaseURL execute correctly with the ResourceURL" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_IMPLEMENTSBASEURL2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_setResourceID */
- /* Details: "Method setResourceID(String): Sets the specified String */
- /* as the portlet resource ID" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_SETRESOURCEID);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_getCacheability */
- /* Details: "Method getCacheability(): Returns a String containing */
- /* the cacheability level set on the resource URL" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_GETCACHEABILITY);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_setCacheability1 */
- /* Details: "Method setCacheability(String): Sets the cacheability */
- /* level for the resource URL" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_SETCACHEABILITY1);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_setCacheability2 */
- /* Details: "Method setCacheability(String): Throws */
- /* IllegalArgumentException if the input parameter does not have a */
- /* value of \"FULL\", \"PAGE\", or \"PORTLET\"" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_SETCACHEABILITY2);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_ResourceURL_RenderResurl_setCacheability3 */
- /* Details: "Method setCacheability(String): Throws */
- /* IllegalStateException if the specified cacheability level is */
- /* weaker than the cacheability level for the parent resource URL" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_RENDERRESURL_SETCACHEABILITY3);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- }
-
-}
[21/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Render.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Render.java
deleted file mode 100644
index c79ed99..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Render.java
+++ /dev/null
@@ -1,896 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_PortletRequest_Render_event
- *
- */
-public class RequestTests_PortletRequest_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISWINDOWSTATEALLOWED1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISWINDOWSTATEALLOWED2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISPORTLETMODEALLOWED1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISPORTLETMODEALLOWED2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPREFERENCES);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONA1);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONA2);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB1);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB2);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB3);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTLETSESSIONB4);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY1);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY2);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTYNAMES1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPROPERTYNAMES2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETAUTHTYPE1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETAUTHTYPE2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCONTEXTPATH3);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREMOTEUSER1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREMOTEUSER2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETUSERPRINCIPAL1);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETUSERPRINCIPAL2);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISUSERINROLE3);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE1);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE2);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTENAMES1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETATTRIBUTENAMES2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER1);
- /* TODO: implement test */
- tr54.appendTcDetail("Not implemented.");
- tr54.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER2);
- /* TODO: implement test */
- tr55.appendTcDetail("Not implemented.");
- tr55.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER3);
- /* TODO: implement test */
- tr56.appendTcDetail("Not implemented.");
- tr56.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER4);
- /* TODO: implement test */
- tr57.appendTcDetail("Not implemented.");
- tr57.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
- tr58.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERNAMES1);
- /* TODO: implement test */
- tr59.appendTcDetail("Not implemented.");
- tr59.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERNAMES2);
- /* TODO: implement test */
- tr60.appendTcDetail("Not implemented.");
- tr60.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES1);
- /* TODO: implement test */
- tr61.appendTcDetail("Not implemented.");
- tr61.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES2);
- /* TODO: implement test */
- tr62.appendTcDetail("Not implemented.");
- tr62.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES3);
- /* TODO: implement test */
- tr63.appendTcDetail("Not implemented.");
- tr63.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
- tr64.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr65.appendTcDetail("Not implemented.");
- tr65.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr66.appendTcDetail("Not implemented.");
- tr66.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr67.appendTcDetail("Not implemented.");
- tr67.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISSECURE1);
- /* TODO: implement test */
- tr68.appendTcDetail("Not implemented.");
- tr68.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISSECURE2);
- /* TODO: implement test */
- tr69.appendTcDetail("Not implemented.");
- tr69.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE1);
- /* TODO: implement test */
- tr70.appendTcDetail("Not implemented.");
- tr70.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE2);
- /* TODO: implement test */
- tr71.appendTcDetail("Not implemented.");
- tr71.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
- tr72.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the request" */
- TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_REMOVEATTRIBUTE1);
- /* TODO: implement test */
- tr73.appendTcDetail("Not implemented.");
- tr73.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
- tr74.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getRequestedSessionId1 */
- /* Details: "Method getRequestedSessionId(): Returns the session ID */
- /* indicated in the client request" */
- TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREQUESTEDSESSIONID1);
- /* TODO: implement test */
- tr75.appendTcDetail("Not implemented.");
- tr75.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getRequestedSessionId2 */
- /* Details: "Method getRequestedSessionId(): Returns null if no */
- /* session ID was indicated in the client request" */
- TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETREQUESTEDSESSIONID2);
- /* TODO: implement test */
- tr76.appendTcDetail("Not implemented.");
- tr76.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid1 */
- /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
- /* session ID is valid" */
- TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISREQUESTEDSESSIONIDVALID1);
- /* TODO: implement test */
- tr77.appendTcDetail("Not implemented.");
- tr77.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid2 */
- /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
- /* session ID is not valid" */
- TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_ISREQUESTEDSESSIONIDVALID2);
- /* TODO: implement test */
- tr78.appendTcDetail("Not implemented.");
- tr78.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getResponseContentType1 */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* representing the portal preferred content type for the response if */
- /* the content type is defined in the portlet descriptor " */
- TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPE1);
- /* TODO: implement test */
- tr79.appendTcDetail("Not implemented.");
- tr79.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getResponseContentType2 */
- /* Details: "Method getResponseContentType(): Returns an empty */
- /* Enumeration if the content type is not defined in the portlet */
- /* descriptor" */
- TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPE2);
- /* TODO: implement test */
- tr80.appendTcDetail("Not implemented.");
- tr80.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getResponseContentTypes1 */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object representing */
- /* the portal preferred content types for the response if the content */
- /* types are defined in the portlet descriptor" */
- TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPES1);
- /* TODO: implement test */
- tr81.appendTcDetail("Not implemented.");
- tr81.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getResponseContentTypes2 */
- /* Details: "Method getResponseContentTypes(): Returns an empty */
- /* Enumeration if the content types are not defined in the portlet */
- /* descriptor" */
- TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETRESPONSECONTENTTYPES2);
- /* TODO: implement test */
- tr82.appendTcDetail("Not implemented.");
- tr82.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale object */
- /* representing the preferred Locale for the response" */
- TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETLOCALE);
- /* TODO: implement test */
- tr83.appendTcDetail("Not implemented.");
- tr83.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getLocales */
- /* Details: "Method getLocales(): Returns an */
- /* java.util.Enumeration<java.util.Locale> of the Locales in */
- /* which the portal will accept content" */
- TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETLOCALES);
- /* TODO: implement test */
- tr84.appendTcDetail("Not implemented.");
- tr84.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getScheme */
- /* Details: "Method getScheme(): Returns a String value representing */
- /* the scheme name for the request" */
- TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSCHEME);
- /* TODO: implement test */
- tr85.appendTcDetail("Not implemented.");
- tr85.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getServerName */
- /* Details: "Method getServerName(): Returns a String value */
- /* representing the host name for the request" */
- TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSERVERNAME);
- /* TODO: implement test */
- tr86.appendTcDetail("Not implemented.");
- tr86.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getServerPort */
- /* Details: "Method getServerPort(): Returns an int value */
- /* representing the port number for the request" */
- TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETSERVERPORT);
- /* TODO: implement test */
- tr87.appendTcDetail("Not implemented.");
- tr87.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getWindowID */
- /* Details: "Method getWindowID(): Returns a String value */
- /* representing the portlet window ID" */
- TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETWINDOWID);
- /* TODO: implement test */
- tr88.appendTcDetail("Not implemented.");
- tr88.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getCookies1 */
- /* Details: "Method getCookies(): Returns a */
- /* javax.servlet.http.Cookie[] array containing the cookies for this */
- /* request" */
- TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCOOKIES1);
- /* TODO: implement test */
- tr89.appendTcDetail("Not implemented.");
- tr89.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getCookies2 */
- /* Details: "Method getCookies(): Returns null if no cookies are */
- /* present" */
- TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETCOOKIES2);
- /* TODO: implement test */
- tr90.appendTcDetail("Not implemented.");
- tr90.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPrivateParameterMap1 */
- /* Details: "Method getPrivateParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the private parameter names and values if available" */
- TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP1);
- /* TODO: implement test */
- tr91.appendTcDetail("Not implemented.");
- tr91.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPrivateParameterMap2 */
- /* Details: "Method getPrivateParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP2);
- /* TODO: implement test */
- tr92.appendTcDetail("Not implemented.");
- tr92.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPrivateParameterMap3 */
- /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
- /* no private parameters exist" */
- TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPRIVATEPARAMETERMAP3);
- /* TODO: implement test */
- tr93.appendTcDetail("Not implemented.");
- tr93.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPublicParameterMap1 */
- /* Details: "Method getPublicParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the public parameter names and values if available" */
- TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP1);
- /* TODO: implement test */
- tr94.appendTcDetail("Not implemented.");
- tr94.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPublicParameterMap2 */
- /* Details: "Method getPublicParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP2);
- /* TODO: implement test */
- tr95.appendTcDetail("Not implemented.");
- tr95.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_getPublicParameterMap3 */
- /* Details: "Method getPublicParameterMap(): Returns an empty map if */
- /* no public parameters exist" */
- TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_GETPUBLICPARAMETERMAP3);
- /* TODO: implement test */
- tr96.appendTcDetail("Not implemented.");
- tr96.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Render_exists */
- /* Details: "The P3PUserInfos exists as a public static enum" */
- TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RENDER_EXISTS);
- /* TODO: implement test */
- tr97.appendTcDetail("Not implemented.");
- tr97.writeTo(writer);
-
- }
-
-}
[14/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
new file mode 100644
index 0000000..a9f3191
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
@@ -0,0 +1,139 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_RenderResponse_ApiRender_event
+ *
+ */
+public class ResponseTests_RenderResponse_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_RenderResponse_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_RenderResponse_ApiRender_setTitle2 */
+ /* Details: "Method setTitle(String): Sets the portlet title to the */
+ /* specified value" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_APIRENDER_SETTITLE2);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_RenderResponse_ApiRender_setNextPossiblePortletModes2 */
+ /* Details: "Method */
+ /* setNextPossiblePortletModes(java.util.Collection): Sets the next */
+ /* possible portlet modes to the specified value" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_APIRENDER_SETNEXTPOSSIBLEPORTLETMODES2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_RenderResponse_ApiRender_setContentType1 */
+ /* Details: "Method setContentType(String): The portlet container */
+ /* will ignore any character encoding specified as part of the */
+ /* content type for render calls" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_APIRENDER_SETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_RenderResponse_ApiRender_setContentType2 */
+ /* Details: "Method setContentType(String): Throws */
+ /* IllegalArgumentException if the content type is not valid" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_APIRENDER_SETCONTENTTYPE2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_Render.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_Render.java
deleted file mode 100644
index e050ac6..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_Render.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_RenderResponse_Render_event
- *
- */
-public class ResponseTests_RenderResponse_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_RenderResponse_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_RenderResponse_Render_setTitle2 */
- /* Details: "Method setTitle(String): Sets the portlet title to the */
- /* specified value" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_RENDER_SETTITLE2);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_RenderResponse_Render_setNextPossiblePortletModes2 */
- /* Details: "Method */
- /* setNextPossiblePortletModes(java.util.Collection): Sets the next */
- /* possible portlet modes to the specified value" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_RENDER_SETNEXTPOSSIBLEPORTLETMODES2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_RenderResponse_Render_setContentType1 */
- /* Details: "Method setContentType(String): The portlet container */
- /* will ignore any character encoding specified as part of the */
- /* content type for render calls" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_RENDER_SETCONTENTTYPE1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_RenderResponse_Render_setContentType2 */
- /* Details: "Method setContentType(String): Throws */
- /* IllegalArgumentException if the content type is not valid" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_RENDERRESPONSE_RENDER_SETCONTENTTYPE2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
new file mode 100644
index 0000000..f0da7f5
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
@@ -0,0 +1,195 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_ResourceResponse_ApiResource_event
+ *
+ */
+public class ResponseTests_ResourceResponse_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_ResourceResponse_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_fieldHTTP_STATUS_CODE */
+ /* Details: "Has String field HTTP_STATUS_CODE with value of */
+ /* \"portlet.http-status-code\"" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_FIELDHTTP_STATUS_CODE );
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setLocale1 */
+ /* Details: "Method setLocale(Locale): Sets the locale of the */
+ /* response" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETLOCALE1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setLocale4 */
+ /* Details: "Method setLocale(Locale): Throws */
+ /* IllegalArgumentException if the Locale parameter is null" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETLOCALE4);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setCharacterEncoding1 */
+ /* Details: "Method setCharacterEncoding(String): Sets the character */
+ /* encoding of the response" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETCHARACTERENCODING1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setCharacterEncoding4 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalArgumentException if the Locale parameter is null" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETCHARACTERENCODING4);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setContentLength1 */
+ /* Details: "Method setContentLength(int): Sets the length of the */
+ /* content body" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETCONTENTLENGTH1);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_createRenderURL2 */
+ /* Details: "Method createRenderURL(): Throws IllegalStateException */
+ /* if the cacheability level for the resource URL triggering the */
+ /* serveResource call is not PAGE" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_CREATERENDERURL2);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_createActionURL2 */
+ /* Details: "Method createActionURL(): Throws IllegalStateException */
+ /* if the cacheability level for the resource URL triggering the */
+ /* serveResource call is not PAGE" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_CREATEACTIONURL2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ResourceResponse_ApiResource_createResourceURL2 */
+ /* Details: "Method createResourceURL(): Throws IllegalStateException */
+ /* if the cacheability level for the resource URL triggering the */
+ /* serveResource call is not PAGE" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_CREATERESOURCEURL2);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"ResponseTests_ResourceResponse_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"ResponseTests_ResourceResponse_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_Resource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_Resource.java
deleted file mode 100644
index 28be802..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_Resource.java
+++ /dev/null
@@ -1,195 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_ResourceResponse_Resource_event
- *
- */
-public class ResponseTests_ResourceResponse_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_ResourceResponse_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_fieldHTTP_STATUS_CODE */
- /* Details: "Has String field HTTP_STATUS_CODE with value of */
- /* \"portlet.http-status-code\"" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_FIELDHTTP_STATUS_CODE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_setLocale1 */
- /* Details: "Method setLocale(Locale): Sets the locale of the */
- /* response" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_SETLOCALE1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_setLocale4 */
- /* Details: "Method setLocale(Locale): Throws */
- /* IllegalArgumentException if the Locale parameter is null" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_SETLOCALE4);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_setCharacterEncoding1 */
- /* Details: "Method setCharacterEncoding(String): Sets the character */
- /* encoding of the response" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_SETCHARACTERENCODING1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_setCharacterEncoding4 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalArgumentException if the Locale parameter is null" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_SETCHARACTERENCODING4);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_setContentLength1 */
- /* Details: "Method setContentLength(int): Sets the length of the */
- /* content body" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_SETCONTENTLENGTH1);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_createRenderURL2 */
- /* Details: "Method createRenderURL(): Throws IllegalStateException */
- /* if the cacheability level for the resource URL triggering the */
- /* serveResource call is not PAGE" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_CREATERENDERURL2);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_createActionURL2 */
- /* Details: "Method createActionURL(): Throws IllegalStateException */
- /* if the cacheability level for the resource URL triggering the */
- /* serveResource call is not PAGE" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_CREATEACTIONURL2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ResourceResponse_Resource_createResourceURL2 */
- /* Details: "Method createResourceURL(): Throws IllegalStateException */
- /* if the cacheability level for the resource URL triggering the */
- /* serveResource call is not PAGE" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_RESOURCE_CREATERESOURCEURL2);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"ResponseTests_ResourceResponse_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"ResponseTests_ResourceResponse_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[28/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
new file mode 100644
index 0000000..d15164a
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
@@ -0,0 +1,1895 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_PortletRequest_ApiAction_event
+ *
+ */
+public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_PortletRequest_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDUSER_INFO);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDCCPP_PROFILE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDBASIC_AUTH);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDFORM_AUTH);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDCLIENT_CERT_AUTH);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDDIGEST_AUTH);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDACTION_PHASE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDEVENT_PHASE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_PHASE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRESOURCE_PHASE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDLIFECYCLE_PHASE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_PART);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_HEADERS);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_MARKUP);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDACTION_SCOPE_ID);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISWINDOWSTATEALLOWED1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISWINDOWSTATEALLOWED2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISPORTLETMODEALLOWED1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISPORTLETMODEALLOWED2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPREFERENCES);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONA1);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONA2);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONB1);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONB2);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONB3);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTLETSESSIONB4);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTY1);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTY2);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTY3);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTIES1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTIES2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTIES3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTYNAMES1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTYNAMES2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPORTALCONTEXT);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETAUTHTYPE1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETAUTHTYPE2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETCONTEXTPATH1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETCONTEXTPATH2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETCONTEXTPATH3);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETREMOTEUSER1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETREMOTEUSER2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETUSERPRINCIPAL1);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETUSERPRINCIPAL2);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISUSERINROLE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISUSERINROLE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISUSERINROLE3);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTE1);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTE2);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTE3);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTENAMES1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTENAMES2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER1);
+ /* TODO: implement test */
+ tr54.appendTcDetail("Not implemented.");
+ tr54.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER2);
+ /* TODO: implement test */
+ tr55.appendTcDetail("Not implemented.");
+ tr55.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER3);
+ /* TODO: implement test */
+ tr56.appendTcDetail("Not implemented.");
+ tr56.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER4);
+ /* TODO: implement test */
+ tr57.appendTcDetail("Not implemented.");
+ tr57.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER5);
+ /* TODO: implement test */
+ tr58.appendTcDetail("Not implemented.");
+ tr58.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr59.appendTcDetail("Not implemented.");
+ tr59.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr60.appendTcDetail("Not implemented.");
+ tr60.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERVALUES1);
+ /* TODO: implement test */
+ tr61.appendTcDetail("Not implemented.");
+ tr61.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERVALUES2);
+ /* TODO: implement test */
+ tr62.appendTcDetail("Not implemented.");
+ tr62.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERVALUES3);
+ /* TODO: implement test */
+ tr63.appendTcDetail("Not implemented.");
+ tr63.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERVALUES4);
+ /* TODO: implement test */
+ tr64.appendTcDetail("Not implemented.");
+ tr64.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr65.appendTcDetail("Not implemented.");
+ tr65.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr66.appendTcDetail("Not implemented.");
+ tr66.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr67.appendTcDetail("Not implemented.");
+ tr67.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISSECURE1);
+ /* TODO: implement test */
+ tr68.appendTcDetail("Not implemented.");
+ tr68.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISSECURE2);
+ /* TODO: implement test */
+ tr69.appendTcDetail("Not implemented.");
+ tr69.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_SETATTRIBUTE1);
+ /* TODO: implement test */
+ tr70.appendTcDetail("Not implemented.");
+ tr70.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_SETATTRIBUTE2);
+ /* TODO: implement test */
+ tr71.appendTcDetail("Not implemented.");
+ tr71.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_SETATTRIBUTE3);
+ /* TODO: implement test */
+ tr72.appendTcDetail("Not implemented.");
+ tr72.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the request" */
+ TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_REMOVEATTRIBUTE1);
+ /* TODO: implement test */
+ tr73.appendTcDetail("Not implemented.");
+ tr73.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_REMOVEATTRIBUTE2);
+ /* TODO: implement test */
+ tr74.appendTcDetail("Not implemented.");
+ tr74.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRequestedSessionId1 */
+ /* Details: "Method getRequestedSessionId(): Returns the session ID */
+ /* indicated in the client request" */
+ TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETREQUESTEDSESSIONID1);
+ /* TODO: implement test */
+ tr75.appendTcDetail("Not implemented.");
+ tr75.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRequestedSessionId2 */
+ /* Details: "Method getRequestedSessionId(): Returns null if no */
+ /* session ID was indicated in the client request" */
+ TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETREQUESTEDSESSIONID2);
+ /* TODO: implement test */
+ tr76.appendTcDetail("Not implemented.");
+ tr76.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isRequestedSessionIdValid1 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
+ /* session ID is valid" */
+ TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISREQUESTEDSESSIONIDVALID1);
+ /* TODO: implement test */
+ tr77.appendTcDetail("Not implemented.");
+ tr77.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isRequestedSessionIdValid2 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
+ /* session ID is not valid" */
+ TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_ISREQUESTEDSESSIONIDVALID2);
+ /* TODO: implement test */
+ tr78.appendTcDetail("Not implemented.");
+ tr78.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getResponseContentType1 */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* representing the portal preferred content type for the response if */
+ /* the content type is defined in the portlet descriptor " */
+ TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETRESPONSECONTENTTYPE1);
+ /* TODO: implement test */
+ tr79.appendTcDetail("Not implemented.");
+ tr79.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getResponseContentType2 */
+ /* Details: "Method getResponseContentType(): Returns an empty */
+ /* Enumeration if the content type is not defined in the portlet */
+ /* descriptor" */
+ TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETRESPONSECONTENTTYPE2);
+ /* TODO: implement test */
+ tr80.appendTcDetail("Not implemented.");
+ tr80.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getResponseContentTypes1 */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object representing */
+ /* the portal preferred content types for the response if the content */
+ /* types are defined in the portlet descriptor" */
+ TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETRESPONSECONTENTTYPES1);
+ /* TODO: implement test */
+ tr81.appendTcDetail("Not implemented.");
+ tr81.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getResponseContentTypes2 */
+ /* Details: "Method getResponseContentTypes(): Returns an empty */
+ /* Enumeration if the content types are not defined in the portlet */
+ /* descriptor" */
+ TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETRESPONSECONTENTTYPES2);
+ /* TODO: implement test */
+ tr82.appendTcDetail("Not implemented.");
+ tr82.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale object */
+ /* representing the preferred Locale for the response" */
+ TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETLOCALE);
+ /* TODO: implement test */
+ tr83.appendTcDetail("Not implemented.");
+ tr83.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getLocales */
+ /* Details: "Method getLocales(): Returns an */
+ /* java.util.Enumeration<java.util.Locale> of the Locales in */
+ /* which the portal will accept content" */
+ TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETLOCALES);
+ /* TODO: implement test */
+ tr84.appendTcDetail("Not implemented.");
+ tr84.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getScheme */
+ /* Details: "Method getScheme(): Returns a String value representing */
+ /* the scheme name for the request" */
+ TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETSCHEME);
+ /* TODO: implement test */
+ tr85.appendTcDetail("Not implemented.");
+ tr85.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getServerName */
+ /* Details: "Method getServerName(): Returns a String value */
+ /* representing the host name for the request" */
+ TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETSERVERNAME);
+ /* TODO: implement test */
+ tr86.appendTcDetail("Not implemented.");
+ tr86.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getServerPort */
+ /* Details: "Method getServerPort(): Returns an int value */
+ /* representing the port number for the request" */
+ TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETSERVERPORT);
+ /* TODO: implement test */
+ tr87.appendTcDetail("Not implemented.");
+ tr87.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getWindowID */
+ /* Details: "Method getWindowID(): Returns a String value */
+ /* representing the portlet window ID" */
+ TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETWINDOWID);
+ /* TODO: implement test */
+ tr88.appendTcDetail("Not implemented.");
+ tr88.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getCookies1 */
+ /* Details: "Method getCookies(): Returns a */
+ /* javax.servlet.http.Cookie[] array containing the cookies for this */
+ /* request" */
+ TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETCOOKIES1);
+ /* TODO: implement test */
+ tr89.appendTcDetail("Not implemented.");
+ tr89.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getCookies2 */
+ /* Details: "Method getCookies(): Returns null if no cookies are */
+ /* present" */
+ TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETCOOKIES2);
+ /* TODO: implement test */
+ tr90.appendTcDetail("Not implemented.");
+ tr90.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap1 */
+ /* Details: "Method getPrivateParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the private parameter names and values if available" */
+ TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPRIVATEPARAMETERMAP1);
+ /* TODO: implement test */
+ tr91.appendTcDetail("Not implemented.");
+ tr91.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap2 */
+ /* Details: "Method getPrivateParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPRIVATEPARAMETERMAP2);
+ /* TODO: implement test */
+ tr92.appendTcDetail("Not implemented.");
+ tr92.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap3 */
+ /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
+ /* no private parameters exist" */
+ TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPRIVATEPARAMETERMAP3);
+ /* TODO: implement test */
+ tr93.appendTcDetail("Not implemented.");
+ tr93.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap1 */
+ /* Details: "Method getPublicParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the public parameter names and values if available" */
+ TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPUBLICPARAMETERMAP1);
+ /* TODO: implement test */
+ tr94.appendTcDetail("Not implemented.");
+ tr94.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap2 */
+ /* Details: "Method getPublicParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPUBLICPARAMETERMAP2);
+ /* TODO: implement test */
+ tr95.appendTcDetail("Not implemented.");
+ tr95.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap3 */
+ /* Details: "Method getPublicParameterMap(): Returns an empty map if */
+ /* no public parameters exist" */
+ TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPUBLICPARAMETERMAP3);
+ /* TODO: implement test */
+ tr96.appendTcDetail("Not implemented.");
+ tr96.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_exists */
+ /* Details: "Method exists(): The P3PUserInfos exist as a public */
+ /* static enum" */
+ TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_EXISTS);
+ /* TODO: implement test */
+ tr97.appendTcDetail("Not implemented.");
+ tr97.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldUSER_INFO", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldCCPP_PROFILE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldBASIC_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldFORM_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldCLIENT_CERT_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldDIGEST_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldACTION_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldEVENT_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldRESOURCE_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldLIFECYCLE_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PART", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldRENDER_HEADERS", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldRENDER_MARKUP", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_fieldACTION_SCOPE_ID", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPreferences", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortletSessionB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperty1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperty2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperty3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperties1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperties2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getProperties3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPropertyNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPropertyNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getPortalContext", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAuthType1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAuthType2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getContextPath1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getContextPath2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getContextPath3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getRemoteUser1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getRemoteUser2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getUserPrincipal1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getUserPrincipal2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isUserInRole1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isUserInRole2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isUserInRole3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAttribute1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAttribute2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAttribute3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAttributeNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getAttributeNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameter1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameter3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameter4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameter5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_getParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isSecure1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_isSecure2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiAction_setAttribute1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiAction_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null"
<TRUNCATED>
[36/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter.java
deleted file mode 100644
index cc477b7..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_EventFilter_EventFilter_event
- *
- */
-public class FilterTests_EventFilter_EventFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_EventFilter_EventFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "FilterTests_EventFilter_EventFilter");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_canBeConfigured1 */
- /* Details: "An EventFilter can be configured in the portlet */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_canBeConfigured1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_canBeConfigured2 */
- /* Details: "Multiple EventFilter classes can be configured in the */
- /* portlet descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_canBeConfigured2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterIsCalled */
- /* Details: "The doFilter(EventRequest, EventResponse, FilterChain): */
- /* method is called before the processEvent method for the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterIsCalled", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent1 */
- /* Details: "After the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processEventMethod is called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent2 */
- /* Details: "After the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterBlock */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method does not invoke the next filter, processEvent */
- /* is not called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterBlock", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterException1 */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method throws an UnavailableException, processEvent */
- /* is not called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterException1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterException2 */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterException2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterExamine */
- /* Details: "Method doFilter(EventRequest, EventResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the EventResponse may be examined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_EventFilter_EventFilter_doFilterExamine", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter_event.java
deleted file mode 100644
index 7bc1187..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_EventFilter_event.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class FilterTests_EventFilter_EventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_EventFilter_EventFilter_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_canBeConfigured1 */
- /* Details: "An EventFilter can be configured in the portlet */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_CANBECONFIGURED1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_canBeConfigured2 */
- /* Details: "Multiple EventFilter classes can be configured in the */
- /* portlet descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_CANBECONFIGURED2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterIsCalled */
- /* Details: "The doFilter(EventRequest, EventResponse, FilterChain): */
- /* method is called before the processEvent method for the portlet" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERISCALLED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent1 */
- /* Details: "After the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processEventMethod is called" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERPROCESSEVENT1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent2 */
- /* Details: "After the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERPROCESSEVENT2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterBlock */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method does not invoke the next filter, processEvent */
- /* is not called" */
- TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTERBLOCK);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterException1 */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method throws an UnavailableException, processEvent */
- /* is not called" */
- TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXCEPTION1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterException2 */
- /* Details: "If the doFilter(EventRequest, EventResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXCEPTION2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2FilterTests_EventFilter_EventFilter_doFilterExamine */
- /* Details: "Method doFilter(EventRequest, EventResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the EventResponse may be examined" */
- TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_EVENTFILTER_DOFILTEREXAMINE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_EventFilter_EventFilter",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>FilterTests_EventFilter_EventFilter_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_EventFilter_EventFilter", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ActionFilter.java
deleted file mode 100644
index 7f93113..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ActionFilter.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_FilterChain_ActionFilter_event
- *
- */
-public class FilterTests_FilterChain_ActionFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterChain_ActionFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionFilter */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
- /* next filter to be invoked" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONFILTER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionFilter2 */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
- /* portlet action method to be invoked" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONFILTER2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionException */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): throws */
- /* PortletException" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONEXCEPTION);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionException2 */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): throws */
- /* IOException" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_ACTIONFILTER_INVOKEACTIONEXCEPTION2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ActionFilter",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ActionFilter", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ActionFilter", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionFilter */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
- /* next filter to be invoked" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_ActionFilter_invokeActionFilter", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionFilter2 */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
- /* portlet action method to be invoked" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_ActionFilter_invokeActionFilter2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionException */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): throws */
- /* PortletException" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_ActionFilter_invokeActionException", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_ActionFilter_invokeActionException2 */
- /* Details: "Invoking doFilter(ActionRequest, ActionResponse): throws */
- /* IOException" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_ActionFilter_invokeActionException2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiActionFilter.java
new file mode 100644
index 0000000..f8229a7
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiActionFilter.java
@@ -0,0 +1,139 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_FilterChain_ApiActionFilter_event
+ *
+ */
+public class FilterTests_FilterChain_ApiActionFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiActionFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ApiActionFilter", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ApiActionFilter", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter */
+ /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
+ /* next filter to be invoked" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter2 */
+ /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
+ /* portlet action method to be invoked" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionException */
+ /* Details: "Method doFilter(ActionRequest, ActionResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiActionFilter_invokeActionException", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter.java
new file mode 100644
index 0000000..dfec1da
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter.java
@@ -0,0 +1,135 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_FilterChain_ApiEventFilter_event
+ *
+ */
+public class FilterTests_FilterChain_ApiEventFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiEventFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "FilterTests_FilterChain_ApiEventFilter");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter */
+ /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
+ /* next filter to be invoked" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter2 */
+ /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
+ /* portlet Event method to be invoked" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventException */
+ /* Details: "Method doFilter(EventRequest, EventResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_FilterChain_ApiEventFilter_invokeEventException", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter_event.java
new file mode 100644
index 0000000..e8a1ef3
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiEventFilter_event.java
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class FilterTests_FilterChain_ApiEventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiEventFilter_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>FilterTests_FilterChain_ApiEventFilter_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ApiEventFilter", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiRenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiRenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiRenderFilter.java
new file mode 100644
index 0000000..d45a225
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiRenderFilter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_FilterChain_ApiRenderFilter_event
+ *
+ */
+public class FilterTests_FilterChain_ApiRenderFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiRenderFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiResourceFilter.java
new file mode 100644
index 0000000..3fc4758
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ApiResourceFilter.java
@@ -0,0 +1,116 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_FilterChain_ApiResourceFilter_event
+ *
+ */
+public class FilterTests_FilterChain_ApiResourceFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiResourceFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"FilterTests_FilterChain_ApiResourceFilter\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"FilterTests_FilterChain_ApiResourceFilter\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter.java
deleted file mode 100644
index 64f618d..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_FilterChain_EventFilter_event
- *
- */
-public class FilterTests_FilterChain_EventFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterChain_EventFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "FilterTests_FilterChain_EventFilter");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventFilter */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
- /* next filter to be invoked" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_EventFilter_invokeEventFilter", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventFilter2 */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
- /* portlet Event method to be invoked" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_EventFilter_invokeEventFilter2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventException */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): throws */
- /* PortletException" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_EventFilter_invokeEventException", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventException2 */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): throws */
- /* IOException" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_FilterChain_EventFilter_invokeEventException2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter_event.java
deleted file mode 100644
index d4b12d6..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_EventFilter_event.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class FilterTests_FilterChain_EventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterChain_EventFilter_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventFilter */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
- /* next filter to be invoked" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTFILTER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventFilter2 */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
- /* portlet Event method to be invoked" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTFILTER2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventException */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): throws */
- /* PortletException" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTEXCEPTION);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_EventFilter_invokeEventException2 */
- /* Details: "Invoking doFilter(EventRequest, EventResponse): throws */
- /* IOException" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_EVENTFILTER_INVOKEEVENTEXCEPTION2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_FilterChain_EventFilter",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>FilterTests_FilterChain_EventFilter_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_FilterChain_EventFilter", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_RenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_RenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_RenderFilter.java
deleted file mode 100644
index b8e7a02..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_RenderFilter.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_FilterChain_RenderFilter_event
- *
- */
-public class FilterTests_FilterChain_RenderFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterChain_RenderFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter */
- /* Details: "Invoking doFilter(RenderRequest, RenderResponse): causes */
- /* next filter to be invoked" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDERFILTER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter2 */
- /* Details: "Invoking doFilter(RenderRequest, RenderResponse): causes */
- /* portlet Render method to be invoked" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDERFILTER2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_RenderFilter_invokeRenderException */
- /* Details: "Invoking doFilter(RenderRequest, RenderResponse): throws */
- /* PortletException" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDEREXCEPTION);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_RenderFilter_invokeRenderException2 */
- /* Details: "Invoking doFilter(RenderRequest, RenderResponse): throws */
- /* IOException" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RENDERFILTER_INVOKERENDEREXCEPTION2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ResourceFilter.java
deleted file mode 100644
index 0b23fa3..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterChain_ResourceFilter.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_FilterChain_ResourceFilter_event
- *
- */
-public class FilterTests_FilterChain_ResourceFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterChain_ResourceFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter */
- /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
- /* causes next filter to be invoked" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEFILTER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter2 */
- /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
- /* causes portlet Resource method to be invoked" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEFILTER2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ResourceFilter_invokeResourceException */
- /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
- /* throws PortletException" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEEXCEPTION);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterChain_ResourceFilter_invokeResourceException2 */
- /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
- /* throws IOException" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_RESOURCEFILTER_INVOKERESOURCEEXCEPTION2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"FilterTests_FilterChain_ResourceFilter\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"FilterTests_FilterChain_ResourceFilter\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_ApiRenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_ApiRenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_ApiRenderFilter.java
new file mode 100644
index 0000000..39de82a
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_ApiRenderFilter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_FilterConfig_ApiRenderFilter_event
+ *
+ */
+public class FilterTests_FilterConfig_ApiRenderFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_FilterConfig_ApiRenderFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+}
[53/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiAction.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiAction.java
new file mode 100644
index 0000000..89ad5a4
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiAction.java
@@ -0,0 +1,443 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ActionResponseWrapper_ApiAction_event
+ *
+ */
+public class WrapperTests_ActionResponseWrapper_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ActionResponseWrapper_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ ActionResponseWrapperChecker wc = new ActionResponseWrapperChecker(portletResp);
+ ActionResponseWrapper wpr = new ActionResponseWrapper(portletResp);
+ wpr.setResponse(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(ActionResponseWrapper.class);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectA */
+ /* Details: "Method sendRedirect(String): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTA);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr0, "sendRedirect", args);
+ wpr.sendRedirect(parm1);
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectB */
+ /* Details: "Method sendRedirect(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTB);
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr1, "sendRedirect", args);
+ wpr.sendRedirect(parm1, parm2);
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTA);
+ try {
+ javax.xml.namespace.QName parm1 = new javax.xml.namespace.QName("bob");
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr2, "setEvent", args);
+ wpr.setEvent(parm1, parm2);
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTB);
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr3, "setEvent", args);
+ wpr.setEvent(parm1, parm2);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETPORTLETMODE);
+ try {
+ PortletMode parm1 = PortletMode.EDIT;
+ Object[] args = {parm1};
+ wc.prepare(tr4, "setPortletMode", args);
+ wpr.setPortletMode(parm1);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERA);
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr5, "setRenderParameter", args);
+ wpr.setRenderParameter(parm1, parm2);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERB);
+ try {
+ String parm1 = "val1";
+ String[] parm2 = {"val1", "val2"};
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr6, "setRenderParameter", args);
+ wpr.setRenderParameter(parm1, parm2);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameters */
+ /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
+ /* method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERS);
+ try {
+ Map<String, String[]> parm1 = new HashMap<String, String[]>();
+ parm1.put("iparm1", new String[] {"val3", "val4"});
+ parm1.put("iparm2", new String[] {"val5", "val6"});
+ Object[] args = {parm1};
+ wc.prepare(tr7, "setRenderParameters", args);
+ wpr.setRenderParameters(parm1);
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETWINDOWSTATE);
+ try {
+ WindowState parm1 = WindowState.NORMAL;
+ Object[] args = {parm1};
+ wc.prepare(tr8, "setWindowState", args);
+ wpr.setWindowState(parm1);
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped ActionResponse */
+ /* object" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRESPONSE);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ ActionResponse r = wpr.getResponse();
+ tr9.setTcSuccess(r == wc);
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setResponse */
+ /* Details: "Method setResponse(ActionResponse): Allows wrapped */
+ /* ActionResponse object to be set" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRESPONSE);
+ try {
+ // tested by method set up
+ tr10.setTcSuccess(true);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETPORTLETMODE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr11, "getPortletMode", args);
+ wc.checkRetval(wpr.getPortletMode());
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRENDERPARAMETERMAP1);
+ try {
+ Object[] args = {};
+ wc.prepare(tr12, "getRenderParameterMap", args);
+ wc.checkRetval(wpr.getRenderParameterMap());
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETWINDOWSTATE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr13, "getWindowState", args);
+ wc.checkRetval(wpr.getWindowState());
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_REMOVEPUBLICRENDERPARAMETER);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr14, "removePublicRenderParameter", args);
+ wpr.removePublicRenderParameter(parm1);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
+ tr14.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "WrapperTests_ActionResponseWrapper_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "WrapperTests_ActionResponseWrapper_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "WrapperTests_ActionResponseWrapper_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectA */
+ /* Details: "Method sendRedirect(String): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectB */
+ /* Details: "Method sendRedirect(String, String): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setEventA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setEventB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameters */
+ /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameters", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped ActionResponse */
+ /* object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_getResponse", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_setResponse */
+ /* Details: "Method setResponse(ActionResponse): Allows wrapped */
+ /* ActionResponse object to be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_setResponse", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_getPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_getRenderParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_getWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiAction_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionResponseWrapper_ApiAction_removePublicRenderParameter", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
deleted file mode 100644
index 9c8bdfc..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ActionResponseWrapper_ApiRender_event
- *
- */
-public class WrapperTests_ActionResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ActionResponseWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectA */
- /* Details: "Method sendRedirect(String): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectB */
- /* Details: "Method sendRedirect(String, String): Calls wrapped */
- /* method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setEventA */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTA);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setEventB */
- /* Details: "Method setEvent(String, java.io.Serializable): Calls */
- /* wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTB);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setPortletMode */
- /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
- /* method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterA */
- /* Details: "Method setRenderParameter(String, String): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterB */
- /* Details: "Method setRenderParameter(String, String[]): Calls */
- /* wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameters */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERS);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setWindowState */
- /* Details: "Method setWindowState(WindowState): Calls wrapped */
- /* method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getResponse */
- /* Details: "Method getResponse(): Returns wrapped ActionResponse */
- /* object" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setResponse */
- /* Details: "Method setResponse(ActionResponse): Allows wrapped */
- /* ActionResponse object to be set" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getPortletMode */
- /* Details: "Method getPortletMode(): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): Returns */
- /* java.util.Map<java.lang.String,java.lang.String[]> object" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getWindowState */
- /* Details: "Method getWindowState(): Calls wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_removePublicRenderParameter */
- /* Details: "Method removePublicRenderParameter(String): Calls */
- /* wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent.java
new file mode 100644
index 0000000..aebe1f1
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent.java
@@ -0,0 +1,142 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_EventRequestWrapper_ApiEvent_event
+ *
+ */
+public class WrapperTests_EventRequestWrapper_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventRequestWrapper_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "WrapperTests_EventRequestWrapper_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped EventRequest */
+ /* object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventRequestWrapper_ApiEvent_getRequest", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_setRequest */
+ /* Details: "Method setRequest(EventRequest): Allows wrapped */
+ /* EventRequest object to be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventRequestWrapper_ApiEvent_setRequest", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getEvent1 */
+ /* Details: "Method getEvent(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventRequestWrapper_ApiEvent_getEvent1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventRequestWrapper_ApiEvent_getMethod", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent_event.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent_event.java
new file mode 100644
index 0000000..c611aa2
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiEvent_event.java
@@ -0,0 +1,155 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class WrapperTests_EventRequestWrapper_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventRequestWrapper_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ EventRequestWrapperChecker wc = new EventRequestWrapperChecker(portletReq);
+ EventRequestWrapper wpr = new EventRequestWrapper(portletReq);
+ wpr.setRequest(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(EventRequestWrapper.class);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped EventRequest */
+ /* object" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETREQUEST);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ EventRequest r = wpr.getRequest();
+ tr0.setTcSuccess(r == wc);
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_setRequest */
+ /* Details: "Method setRequest(EventRequest): Allows wrapped */
+ /* EventRequest object to be set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_SETREQUEST);
+ try {
+ // tested by method set up
+ tr1.setTcSuccess(true);
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getEvent1 */
+ /* Details: "Method getEvent(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETEVENT1);
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getEvent", args);
+ wc.checkRetval(wpr.getEvent());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiEvent_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETMETHOD);
+ try {
+ Object[] args = {};
+ wc.prepare(tr3, "getMethod", args);
+ wc.checkRetval(wpr.getMethod());
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "WrapperTests_EventRequestWrapper_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>WrapperTests_EventRequestWrapper_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "WrapperTests_EventRequestWrapper_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
deleted file mode 100644
index f4837de..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_EventRequestWrapper_ApiRender_event
- *
- */
-public class WrapperTests_EventRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_EventRequestWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getRequest */
- /* Details: "Method getRequest(): Returns wrapped EventRequest */
- /* object" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETREQUEST);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_setRequest */
- /* Details: "Method setRequest(EventRequest): Allows wrapped */
- /* EventRequest object to be set" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_SETREQUEST);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getEvent1 */
- /* Details: "Method getEvent(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getEvent2 */
- /* Details: "Method getEvent(): Returns Event object" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETMETHOD);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent.java
new file mode 100644
index 0000000..c64e76c
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent.java
@@ -0,0 +1,241 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_EventResponseWrapper_ApiEvent_event
+ *
+ */
+public class WrapperTests_EventResponseWrapper_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventResponseWrapper_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "WrapperTests_EventResponseWrapper_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setEventA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setEventB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersA */
+ /* Details: "Method setRenderParameters(EventRequest): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersA", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersB */
+ /* Details: "Method setRenderParameters(EventRequest): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersB", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped EventResponse */
+ /* object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_getResponse", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setResponse */
+ /* Details: "Method setResponse(EventResponse): Allows wrapped */
+ /* EventResponse object to be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_setResponse", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_getPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_getRenderParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_getWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_EventResponseWrapper_ApiEvent_removePublicRenderParameter", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent_event.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent_event.java
new file mode 100644
index 0000000..62c4ef1
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiEvent_event.java
@@ -0,0 +1,277 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class WrapperTests_EventResponseWrapper_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventResponseWrapper_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ EventResponseWrapperChecker wc = new EventResponseWrapperChecker(portletResp);
+ EventResponseWrapper wpr = new EventResponseWrapper(portletResp);
+ wpr.setResponse(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(EventResponseWrapper.class);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTA);
+ try {
+ javax.xml.namespace.QName parm1 = new javax.xml.namespace.QName("bob");
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr0, "setEvent", args);
+ wpr.setEvent(parm1, parm2);
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTB);
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr1, "setEvent", args);
+ wpr.setEvent(parm1, parm2);
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETPORTLETMODE);
+ try {
+ PortletMode parm1 = PortletMode.EDIT;
+ Object[] args = {parm1};
+ wc.prepare(tr2, "setPortletMode", args);
+ wpr.setPortletMode(parm1);
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERA);
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr3, "setRenderParameter", args);
+ wpr.setRenderParameter(parm1, parm2);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERB);
+ try {
+ String parm1 = "val1";
+ String[] parm2 = {"val1", "val2"};
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr4, "setRenderParameter", args);
+ wpr.setRenderParameter(parm1, parm2);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersA */
+ /* Details: "Method setRenderParameters(EventRequest): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSA);
+ try {
+ EventRequest parm1 = portletReq;
+ Object[] args = {parm1};
+ wc.prepare(tr5, "setRenderParameters", args);
+ wpr.setRenderParameters(parm1);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersB */
+ /* Details: "Method setRenderParameters(EventRequest): Calls wrapped */
+ /* method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSB);
+ try {
+ EventRequest parm1 = portletReq;
+ Object[] args = {parm1};
+ wc.prepare(tr6, "setRenderParameters", args);
+ wpr.setRenderParameters(parm1);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETWINDOWSTATE);
+ try {
+ WindowState parm1 = WindowState.NORMAL;
+ Object[] args = {parm1};
+ wc.prepare(tr7, "setWindowState", args);
+ wpr.setWindowState(parm1);
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped EventResponse */
+ /* object" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRESPONSE);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ EventResponse r = wpr.getResponse();
+ tr8.setTcSuccess(r == wc);
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_setResponse */
+ /* Details: "Method setResponse(EventResponse): Allows wrapped */
+ /* EventResponse object to be set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRESPONSE);
+ try {
+ // tested by method set up
+ tr9.setTcSuccess(true);
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETPORTLETMODE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr10, "getPortletMode", args);
+ wc.checkRetval(wpr.getPortletMode());
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRENDERPARAMETERMAP1);
+ try {
+ Object[] args = {};
+ wc.prepare(tr11, "getRenderParameterMap", args);
+ wc.checkRetval(wpr.getRenderParameterMap());
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETWINDOWSTATE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr12, "getWindowState", args);
+ wc.checkRetval(wpr.getWindowState());
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiEvent_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_REMOVEPUBLICRENDERPARAMETER);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr13, "removePublicRenderParameter", args);
+ wpr.removePublicRenderParameter(parm1);
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "WrapperTests_EventResponseWrapper_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>WrapperTests_EventResponseWrapper_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "WrapperTests_EventResponseWrapper_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
[55/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
index a7ec77e..af5e23e 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
@@ -100,121 +100,138 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldUSER_INFO */
/* Details: "Has String field USER_INFO with value of */
/* \"javax.portlet.userinfo\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("USER_INFO", "javax.portlet.userinfo"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldCCPP_PROFILE */
/* Details: "Has String field CCPP_PROFILE with value of */
/* \"javax.portlet.ccpp\" " */
TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CCPP_PROFILE", "javax.portlet.ccpp"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldBASIC_AUTH */
/* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("BASIC_AUTH", "BASIC"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldFORM_AUTH */
/* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("FORM_AUTH", "FORM"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldCLIENT_CERT_AUTH */
/* Details: "Has String field CLIENT_CERT_AUTH with value of */
/* \"CLIENT_CERT\" " */
TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("CLIENT_CERT_AUTH", "CLIENT_CERT"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldDIGEST_AUTH */
/* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("DIGEST_AUTH", "DIGEST"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldACTION_PHASE */
/* Details: "Has String field ACTION_PHASE with value of */
/* \"ACTION_PHASE\" " */
TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("ACTION_PHASE", "ACTION_PHASE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldEVENT_PHASE */
/* Details: "Has String field EVENT_PHASE with value of */
/* \"EVENT_PHASE\" " */
TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("EVENT_PHASE", "EVENT_PHASE"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PHASE */
/* Details: "Has String field RENDER_PHASE with value of */
/* \"RENDER_PHASE\" " */
TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ tr8.setTcSuccess(cc.hasField("RENDER_PHASE", "RENDER_PHASE"));
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRESOURCE_PHASE */
/* Details: "Has String field RESOURCE_PHASE with value of */
/* \"RESOURCE_PHASE\" " */
TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ tr9.setTcSuccess(cc.hasField("RESOURCE_PHASE", "RESOURCE_PHASE"));
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldLIFECYCLE_PHASE */
/* Details: "Has String field LIFECYCLE_PHASE with value of */
/* \"javax.portlet.lifecycle_phase\" " */
TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ tr10.setTcSuccess(cc.hasField("LIFECYCLE_PHASE", "javax.portlet.lifecycle_phase"));
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PART */
/* Details: "Has String field RENDER_PART with value of */
/* \"javax.portlet.render_part\" " */
TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ tr11.setTcSuccess(cc.hasField("RENDER_PART", "javax.portlet.render_part"));
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_HEADERS */
/* Details: "Has String field RENDER_HEADERS with value of */
/* \"RENDER_HEADERS\" " */
TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ tr12.setTcSuccess(cc.hasField("RENDER_HEADERS", "RENDER_HEADERS"));
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_MARKUP */
/* Details: "Has String field RENDER_MARKUP with value of */
/* \"RENDER_MARKUP\" " */
TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ tr13.setTcSuccess(cc.hasField("RENDER_MARKUP", "RENDER_MARKUP"));
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldACTION_SCOPE_ID */
/* Details: "Has String field ACTION_SCOPE_ID with value of */
/* \"javax.portlet.as\" " */
TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ tr14.setTcSuccess(cc.hasField("ACTION_SCOPE_ID", "javax.portlet.as"));
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_isWindowStateAllowed1 */
@@ -339,8 +356,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method getProperty(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getProperty(null);
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperties1 */
@@ -363,8 +388,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method getProperties(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Enumeration<String> es = portletReq.getProperties(null);
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getPropertyNames1 */
@@ -508,8 +541,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Object val = portletReq.getAttribute(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttributeNames1 */
@@ -565,8 +606,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method getParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getParameter(null);
+ tr58.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr58.setTcSuccess(true);
+ } catch (Exception e) {
+ tr58.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr58.appendTcDetail(e.toString());}
tr58.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterNames1 */
@@ -614,8 +663,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method getParameterValues(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String[] vals = portletReq.getParameterValues(null);
+ tr64.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr64.setTcSuccess(true);
+ } catch (Exception e) {
+ tr64.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr64.appendTcDetail(e.toString());}
tr64.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterMap1 */
@@ -679,8 +736,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.setAttribute(null, "value");
+ tr72.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr72.setTcSuccess(true);
+ } catch (Exception e) {
+ tr72.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr72.appendTcDetail(e.toString());}
tr72.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_removeAttribute1 */
@@ -695,8 +760,16 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.removeAttribute(null);
+ tr74.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr74.setTcSuccess(true);
+ } catch (Exception e) {
+ tr74.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr74.appendTcDetail(e.toString());}
tr74.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiRender_getRequestedSessionId1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
index edebdd8..19dc754 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
@@ -88,121 +88,138 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldUSER_INFO */
/* Details: "Has String field USER_INFO with value of */
/* \"javax.portlet.userinfo\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("USER_INFO", "javax.portlet.userinfo"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldCCPP_PROFILE */
/* Details: "Has String field CCPP_PROFILE with value of */
/* \"javax.portlet.ccpp\" " */
TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CCPP_PROFILE", "javax.portlet.ccpp"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldBASIC_AUTH */
/* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("BASIC_AUTH", "BASIC"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldFORM_AUTH */
/* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("FORM_AUTH", "FORM"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldCLIENT_CERT_AUTH */
/* Details: "Has String field CLIENT_CERT_AUTH with value of */
/* \"CLIENT_CERT\" " */
TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("CLIENT_CERT_AUTH", "CLIENT_CERT"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldDIGEST_AUTH */
/* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("DIGEST_AUTH", "DIGEST"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldACTION_PHASE */
/* Details: "Has String field ACTION_PHASE with value of */
/* \"ACTION_PHASE\" " */
TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("ACTION_PHASE", "ACTION_PHASE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldEVENT_PHASE */
/* Details: "Has String field EVENT_PHASE with value of */
/* \"EVENT_PHASE\" " */
TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("EVENT_PHASE", "EVENT_PHASE"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PHASE */
/* Details: "Has String field RENDER_PHASE with value of */
/* \"RENDER_PHASE\" " */
TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ tr8.setTcSuccess(cc.hasField("RENDER_PHASE", "RENDER_PHASE"));
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRESOURCE_PHASE */
/* Details: "Has String field RESOURCE_PHASE with value of */
/* \"RESOURCE_PHASE\" " */
TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ tr9.setTcSuccess(cc.hasField("RESOURCE_PHASE", "RESOURCE_PHASE"));
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldLIFECYCLE_PHASE */
/* Details: "Has String field LIFECYCLE_PHASE with value of */
/* \"javax.portlet.lifecycle_phase\" " */
TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ tr10.setTcSuccess(cc.hasField("LIFECYCLE_PHASE", "javax.portlet.lifecycle_phase"));
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PART */
/* Details: "Has String field RENDER_PART with value of */
/* \"javax.portlet.render_part\" " */
TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ tr11.setTcSuccess(cc.hasField("RENDER_PART", "javax.portlet.render_part"));
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_HEADERS */
/* Details: "Has String field RENDER_HEADERS with value of */
/* \"RENDER_HEADERS\" " */
TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ tr12.setTcSuccess(cc.hasField("RENDER_HEADERS", "RENDER_HEADERS"));
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_MARKUP */
/* Details: "Has String field RENDER_MARKUP with value of */
/* \"RENDER_MARKUP\" " */
TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ tr13.setTcSuccess(cc.hasField("RENDER_MARKUP", "RENDER_MARKUP"));
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldACTION_SCOPE_ID */
/* Details: "Has String field ACTION_SCOPE_ID with value of */
/* \"javax.portlet.as\" " */
TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ tr14.setTcSuccess(cc.hasField("ACTION_SCOPE_ID", "javax.portlet.as"));
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_isWindowStateAllowed1 */
@@ -327,8 +344,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method getProperty(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getProperty(null);
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperties1 */
@@ -351,8 +376,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method getProperties(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Enumeration<String> es = portletReq.getProperties(null);
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getPropertyNames1 */
@@ -496,8 +529,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Object val = portletReq.getAttribute(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttributeNames1 */
@@ -553,8 +594,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method getParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getParameter(null);
+ tr58.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr58.setTcSuccess(true);
+ } catch (Exception e) {
+ tr58.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr58.appendTcDetail(e.toString());}
tr58.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterNames1 */
@@ -602,8 +651,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method getParameterValues(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String[] vals = portletReq.getParameterValues(null);
+ tr64.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr64.setTcSuccess(true);
+ } catch (Exception e) {
+ tr64.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr64.appendTcDetail(e.toString());}
tr64.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterMap1 */
@@ -667,8 +724,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.setAttribute(null, "value");
+ tr72.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr72.setTcSuccess(true);
+ } catch (Exception e) {
+ tr72.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr72.appendTcDetail(e.toString());}
tr72.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_removeAttribute1 */
@@ -683,8 +748,16 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.removeAttribute(null);
+ tr74.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr74.setTcSuccess(true);
+ } catch (Exception e) {
+ tr74.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr74.appendTcDetail(e.toString());}
tr74.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiResource_getRequestedSessionId1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
index 3554566..aab16b3 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
@@ -100,11 +100,14 @@ public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceSe
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_RenderRequest_ApiRender_fieldETAG */
/* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RENDERREQUEST_APIRENDER_FIELDETAG);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("ETAG", "portlet.ETag"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_RenderRequest_ApiRender_getETag2 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
index 511086f..054b77c 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
@@ -88,11 +88,14 @@ public class RequestTests_ResourceRequest_ApiResource implements Portlet, Resour
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_ResourceRequest_ApiResource_fieldETAG */
/* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_FIELDETAG);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("ETAG", "portlet.ETag"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_ResourceRequest_ApiResource_getETag2 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
index 264b6c1..a6e884e 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
@@ -208,6 +208,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
index 0f0998f..a4a1785 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
@@ -76,6 +76,8 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1 */
/* Details: "Method sendRedirect(String): Allows a redirect response */
/* to be sent to the client" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
index 60e3e2d..2b813cd 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
@@ -100,7 +100,7 @@ public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceSe
PrintWriter writer = portletResp.getWriter();
/* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Copies all */
+ /* Details: "Method setRenderParameters(EventRequest): Copies all */
/* render parameters set on the EventRequest to the EventResponse" */
{
PortletURL aurl = portletResp.createActionURL();
@@ -110,7 +110,7 @@ public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceSe
}
/* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* Details: "Method setRenderParameters(EventRequest): Throws */
/* IllegalArgumentException if the input EventRequest parameter is */
/* null" */
{
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
index 775cdf0..948e313 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
@@ -82,8 +82,10 @@ public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, Even
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Copies all */
+ /* Details: "Method setRenderParameters(EventRequest): Copies all */
/* render parameters set on the EventRequest to the EventResponse" */
TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1);
/* TODO: implement test */
@@ -91,12 +93,20 @@ public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, Even
tr0.writeTo(writer);
/* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* Details: "Method setRenderParameters(EventRequest): Throws */
/* IllegalArgumentException if the input EventRequest parameter is */
/* null" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameters((EventRequest)null);
+ tr1.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr1.setTcSuccess(true);
+ } catch (Exception e) {
+ tr1.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
portletReq.getPortletSession().setAttribute(
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
index 7247177..ed617ab 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
@@ -100,67 +100,77 @@ public class ResponseTests_MimeResponse_ApiRender implements Portlet, ResourceSe
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldEXPIRATION_CACHE */
/* Details: "Has String field EXPIRATION_CACHE with value of */
/* \"portlet.expiration-cache\"" */
TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("EXPIRATION_CACHE", "portlet.expiration-cache"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldCACHE_SCOPE */
/* Details: "Has String field CACHE_SCOPE with value of */
/* \"portlet.cache-scope\"" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE );
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CACHE_SCOPE", "portlet.cache-scope"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPUBLIC_SCOPE */
/* Details: "Has String field PUBLIC_SCOPE with value of */
/* \"portlet.public-scope\"" */
TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE );
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("PUBLIC_SCOPE", "portlet.public-scope"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPRIVATE_SCOPE */
/* Details: "Has String field PRIVATE_SCOPE with value of */
/* \"portlet.private-scope\"" */
TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPRIVATE_SCOPE );
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("PRIVATE_SCOPE", "portlet.private-scope"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldETAG */
/* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDETAG );
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("ETAG", "portlet.ETag"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldUSE_CACHED_CONTENT */
/* Details: "Has String field USE_CACHED_CONTENT with value of */
/* \"portlet.use-cached-content\"" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDUSE_CACHED_CONTENT );
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("USE_CACHED_CONTENT", "portlet.use-cached-content"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldNAMESPACED_RESPONSE */
/* Details: "Has String field NAMESPACED_RESPONSE with value of */
/* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDNAMESPACED_RESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("NAMESPACED_RESPONSE", "X-JAVAX-PORTLET-NAMESPACED-RESPONSE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldMARKUP_HEAD_ELEMENT */
/* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
/* \"javax.portlet.markup.head.element\"" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDMARKUP_HEAD_ELEMENT);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("MARKUP_HEAD_ELEMENT", "javax.portlet.markup.head.element"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
index 049fa5c..92905ce 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
@@ -88,67 +88,77 @@ public class ResponseTests_MimeResponse_ApiResource implements Portlet, Resource
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldEXPIRATION_CACHE */
/* Details: "Has String field EXPIRATION_CACHE with value of */
/* \"portlet.expiration-cache\"" */
TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDEXPIRATION_CACHE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("EXPIRATION_CACHE", "portlet.expiration-cache"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldCACHE_SCOPE */
/* Details: "Has String field CACHE_SCOPE with value of */
/* \"portlet.cache-scope\"" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDCACHE_SCOPE );
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CACHE_SCOPE", "portlet.cache-scope"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldPUBLIC_SCOPE */
/* Details: "Has String field PUBLIC_SCOPE with value of */
/* \"portlet.public-scope\"" */
TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPUBLIC_SCOPE );
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("PUBLIC_SCOPE", "portlet.public-scope"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldPRIVATE_SCOPE */
/* Details: "Has String field PRIVATE_SCOPE with value of */
/* \"portlet.private-scope\"" */
TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPRIVATE_SCOPE );
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("PRIVATE_SCOPE", "portlet.private-scope"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldETAG */
/* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDETAG );
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("ETAG", "portlet.ETag"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldUSE_CACHED_CONTENT */
/* Details: "Has String field USE_CACHED_CONTENT with value of */
/* \"portlet.use-cached-content\"" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDUSE_CACHED_CONTENT );
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("USE_CACHED_CONTENT", "portlet.use-cached-content"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldNAMESPACED_RESPONSE */
/* Details: "Has String field NAMESPACED_RESPONSE with value of */
/* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDNAMESPACED_RESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("NAMESPACED_RESPONSE", "X-JAVAX-PORTLET-NAMESPACED-RESPONSE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldMARKUP_HEAD_ELEMENT */
/* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
/* \"javax.portlet.markup.head.element\"" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDMARKUP_HEAD_ELEMENT);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("MARKUP_HEAD_ELEMENT", "javax.portlet.markup.head.element"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_MimeResponse_ApiResource_getContentType1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
index be99146..22b37d7 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
@@ -76,6 +76,8 @@ public class ResponseTests_PortletResponse_ApiAction implements Portlet, Resourc
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyA1 */
/* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
/* specified cookie property to the response" */
@@ -88,8 +90,16 @@ public class ResponseTests_PortletResponse_ApiAction implements Portlet, Resourc
/* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
/* IllegalArgumentException if the specified cookie is null" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null);
+ tr1.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr1.setTcSuccess(true);
+ } catch (Exception e) {
+ tr1.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB1 */
@@ -122,8 +132,17 @@ public class ResponseTests_PortletResponse_ApiAction implements Portlet, Resourc
/* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ try {
+ org.w3c.dom.Element el = portletResp.createElement("p");
+ portletResp.addProperty((String)null, el);
+ tr5.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr5.setTcSuccess(true);
+ } catch (Exception e) {
+ tr5.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyC1 */
@@ -138,8 +157,16 @@ public class ResponseTests_PortletResponse_ApiAction implements Portlet, Resourc
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty1 */
@@ -162,8 +189,16 @@ public class ResponseTests_PortletResponse_ApiAction implements Portlet, Resourc
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setProperty(null, "value");
+ tr10.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr10.setTcSuccess(true);
+ } catch (Exception e) {
+ tr10.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiAction_encodeURL1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
index 1305c86..3dbc93b 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, Ev
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyA1 */
/* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
/* specified cookie property to the response" */
@@ -94,8 +96,16 @@ public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, Ev
/* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
/* IllegalArgumentException if the specified cookie is null" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null);
+ tr1.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr1.setTcSuccess(true);
+ } catch (Exception e) {
+ tr1.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB1 */
@@ -128,8 +138,17 @@ public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, Ev
/* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ try {
+ org.w3c.dom.Element el = portletResp.createElement("p");
+ portletResp.addProperty((String)null, el);
+ tr5.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr5.setTcSuccess(true);
+ } catch (Exception e) {
+ tr5.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyC1 */
@@ -144,8 +163,16 @@ public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, Ev
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty1 */
@@ -168,8 +195,16 @@ public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, Ev
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setProperty(null, "value");
+ tr10.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr10.setTcSuccess(true);
+ } catch (Exception e) {
+ tr10.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiEvent_encodeURL1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
index ff558d2..787b082 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
@@ -100,6 +100,8 @@ public class ResponseTests_PortletResponse_ApiRender implements Portlet, Resourc
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyA1 */
/* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
/* specified cookie property to the response" */
@@ -112,8 +114,16 @@ public class ResponseTests_PortletResponse_ApiRender implements Portlet, Resourc
/* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
/* IllegalArgumentException if the specified cookie is null" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null);
+ tr1.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr1.setTcSuccess(true);
+ } catch (Exception e) {
+ tr1.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB1 */
@@ -146,8 +156,17 @@ public class ResponseTests_PortletResponse_ApiRender implements Portlet, Resourc
/* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ try {
+ org.w3c.dom.Element el = portletResp.createElement("p");
+ portletResp.addProperty((String)null, el);
+ tr5.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr5.setTcSuccess(true);
+ } catch (Exception e) {
+ tr5.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyC1 */
@@ -162,8 +181,16 @@ public class ResponseTests_PortletResponse_ApiRender implements Portlet, Resourc
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty1 */
@@ -186,8 +213,16 @@ public class ResponseTests_PortletResponse_ApiRender implements Portlet, Resourc
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setProperty(null, "value");
+ tr10.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr10.setTcSuccess(true);
+ } catch (Exception e) {
+ tr10.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiRender_encodeURL1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
index 0e72159..f484dcf 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
@@ -88,6 +88,8 @@ public class ResponseTests_PortletResponse_ApiResource implements Portlet, Resou
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyA1 */
/* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
/* specified cookie property to the response" */
@@ -100,8 +102,16 @@ public class ResponseTests_PortletResponse_ApiResource implements Portlet, Resou
/* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
/* IllegalArgumentException if the specified cookie is null" */
TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null);
+ tr1.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr1.setTcSuccess(true);
+ } catch (Exception e) {
+ tr1.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB1 */
@@ -134,8 +144,17 @@ public class ResponseTests_PortletResponse_ApiResource implements Portlet, Resou
/* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ try {
+ org.w3c.dom.Element el = portletResp.createElement("p");
+ portletResp.addProperty((String)null, el);
+ tr5.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr5.setTcSuccess(true);
+ } catch (Exception e) {
+ tr5.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyC1 */
@@ -150,8 +169,16 @@ public class ResponseTests_PortletResponse_ApiResource implements Portlet, Resou
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.addProperty(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty1 */
@@ -174,8 +201,16 @@ public class ResponseTests_PortletResponse_ApiResource implements Portlet, Resou
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setProperty(null, "value");
+ tr10.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr10.setTcSuccess(true);
+ } catch (Exception e) {
+ tr10.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2ResponseTests_PortletResponse_ApiResource_encodeURL1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
index a9f3191..5e7f3ca 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_RenderResponse_ApiRender.java
@@ -100,6 +100,8 @@ public class ResponseTests_RenderResponse_ApiRender implements Portlet, Resource
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_RenderResponse_ApiRender_setTitle2 */
/* Details: "Method setTitle(String): Sets the portlet title to the */
/* specified value" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
index f0da7f5..a20f11b 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ResourceResponse_ApiResource.java
@@ -88,12 +88,15 @@ public class ResponseTests_ResourceResponse_ApiResource implements Portlet, Reso
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_ResourceResponse_ApiResource_fieldHTTP_STATUS_CODE */
/* Details: "Has String field HTTP_STATUS_CODE with value of */
/* \"portlet.http-status-code\"" */
TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_FIELDHTTP_STATUS_CODE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("HTTP_STATUS_CODE", "portlet.http-status-code"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setLocale1 */
@@ -108,8 +111,16 @@ public class ResponseTests_ResourceResponse_ApiResource implements Portlet, Reso
/* Details: "Method setLocale(Locale): Throws */
/* IllegalArgumentException if the Locale parameter is null" */
TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETLOCALE4);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setLocale(null);
+ tr2.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr2.setTcSuccess(true);
+ } catch (Exception e) {
+ tr2.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setCharacterEncoding1 */
@@ -124,8 +135,16 @@ public class ResponseTests_ResourceResponse_ApiResource implements Portlet, Reso
/* Details: "Method setCharacterEncoding(String): Throws */
/* IllegalArgumentException if the Locale parameter is null" */
TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_RESOURCERESPONSE_APIRESOURCE_SETCHARACTERENCODING4);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setCharacterEncoding(null);
+ tr4.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr4.setTcSuccess(true);
+ } catch (Exception e) {
+ tr4.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2ResponseTests_ResourceResponse_ApiResource_setContentLength1 */
[08/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
new file mode 100644
index 0000000..b08e2e4
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
@@ -0,0 +1,523 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_BaseURL_ApiRenderActurl_event
+ *
+ */
+public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_BaseURL_ApiRenderActurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA1 */
+ /* Details: "Method setParameter(String, String): Sets the parameter */
+ /* value for the specified name" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA2 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* private parameter can be set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA3 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* public parameter can be set" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA4 */
+ /* Details: "Method setParameter(String, String): For an action URL, */
+ /* an action parameter can be set" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA5 */
+ /* Details: "Method setParameter(String, String): For a resource URL, */
+ /* a resource parameter can be set" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA5);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA6 */
+ /* Details: "Method setParameter(String, String): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA6);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA7 */
+ /* Details: "Method setParameter(String, String): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA7);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA8 */
+ /* Details: "Method setParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA8);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB1 */
+ /* Details: "Method setParameter(String, String[]): Sets the */
+ /* parameter value array for the specified name" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB2 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a private parameter can be set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB3 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a public parameter can be set" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB4 */
+ /* Details: "Method setParameter(String, String[]): For an action */
+ /* URL, an action parameter can be set" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB5 */
+ /* Details: "Method setParameter(String, String[]): For a resource */
+ /* URL, a resource parameter can be set" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB5);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB6 */
+ /* Details: "Method setParameter(String, String[]): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB6);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB7 */
+ /* Details: "Method setParameter(String, String[]): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB7);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB8 */
+ /* Details: "Method setParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB8);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters1 */
+ /* Details: "Method setParameters(java.util.Map): Sets the parameter */
+ /* map to the specified value" */
+ TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS1);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters2 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* public parameters can be set through the map" */
+ TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters3 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* private parameters can be set through the map" */
+ TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS3);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters4 */
+ /* Details: "Method setParameters(java.util.Map): For an action URL, */
+ /* action parameters can be set through the map" */
+ TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS4);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters5 */
+ /* Details: "Method setParameters(java.util.Map): For a resource URL, */
+ /* resource parameters can be set through the map" */
+ TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS5);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters6 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* private, action, or resource parameters not contained in the */
+ /* specified input map are removed" */
+ TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS6);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters7 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* public parameters not contained in the specified input map remain */
+ /* unchanged" */
+ TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS7);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters8 */
+ /* Details: "Method setParameters(java.util.Map): Parameters that are */
+ /* set are available in requests initiated through the URL" */
+ TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS8);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters9 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS9);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters10 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS10);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters11 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS11);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters12 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS12);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters13 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS13);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters14 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS14);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setSecure2 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* true, the resulting URL uses a secure connection (HTTPS)" */
+ TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETSECURE2);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setSecure3 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* false, the resulting URL can use either a secure or non-secure */
+ /* connection" */
+ TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETSECURE3);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setSecure4 */
+ /* Details: "Method setSecure(boolean): Throws a */
+ /* PortletSecurityException if the run-time environment does not */
+ /* support the setting" */
+ TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETSECURE4);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_toString */
+ /* Details: "Method toString(): Returns a String containing the */
+ /* portlet URL representation to be included in the markup" */
+ TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_TOSTRING);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap2 */
+ /* Details: "Method getParameterMap(): For a render URL, the returned */
+ /* map contains all public and private parameters for the request" */
+ TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap3 */
+ /* Details: "Method getParameterMap(): For an action URL, the */
+ /* returned map contains all action parameters for the request" */
+ TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap4 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map contains all resource parameters for the request" */
+ TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP4);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap5 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map does not contain any render parameters for the */
+ /* request" */
+ TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP5);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_getParameterMap6 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_GETPARAMETERMAP6);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_writeA1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_WRITEA1);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_writeA2 */
+ /* Details: "Method write(): The written URL is XML escaped (although */
+ /* it may be a token rather than a valid URL)" */
+ TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_WRITEA2);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_writeB1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_WRITEB1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_writeB2 */
+ /* Details: "Method write(): If the escapeXML parameter is true, the */
+ /* written URL is XML escaped (although it may be a token rather than */
+ /* a valid URL)" */
+ TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_WRITEB2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_writeB3 */
+ /* Details: "Method write(): If the escapeXML parameter is false, no */
+ /* excaping is performed" */
+ TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_WRITEB3);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_addProperty1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key" */
+ TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_ADDPROPERTY1);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_addProperty2 */
+ /* Details: "Method addProperty(String, String): Existing property */
+ /* values for the key are retained" */
+ TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_ADDPROPERTY2);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_addProperty3 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_ADDPROPERTY3);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPROPERTY1);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPROPERTY2);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPROPERTY3);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
new file mode 100644
index 0000000..b8d6537
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
@@ -0,0 +1,523 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_BaseURL_ApiRenderRenurl_event
+ *
+ */
+public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_BaseURL_ApiRenderRenurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA1 */
+ /* Details: "Method setParameter(String, String): Sets the parameter */
+ /* value for the specified name" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA2 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* private parameter can be set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA3 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* public parameter can be set" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA4 */
+ /* Details: "Method setParameter(String, String): For an action URL, */
+ /* an action parameter can be set" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA5 */
+ /* Details: "Method setParameter(String, String): For a resource URL, */
+ /* a resource parameter can be set" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA5);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA6 */
+ /* Details: "Method setParameter(String, String): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA6);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA7 */
+ /* Details: "Method setParameter(String, String): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA7);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA8 */
+ /* Details: "Method setParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA8);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB1 */
+ /* Details: "Method setParameter(String, String[]): Sets the */
+ /* parameter value array for the specified name" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB2 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a private parameter can be set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB3 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a public parameter can be set" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB4 */
+ /* Details: "Method setParameter(String, String[]): For an action */
+ /* URL, an action parameter can be set" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB5 */
+ /* Details: "Method setParameter(String, String[]): For a resource */
+ /* URL, a resource parameter can be set" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB5);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB6 */
+ /* Details: "Method setParameter(String, String[]): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB6);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB7 */
+ /* Details: "Method setParameter(String, String[]): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB7);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB8 */
+ /* Details: "Method setParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB8);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters1 */
+ /* Details: "Method setParameters(java.util.Map): Sets the parameter */
+ /* map to the specified value" */
+ TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS1);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters2 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* public parameters can be set through the map" */
+ TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters3 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* private parameters can be set through the map" */
+ TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS3);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters4 */
+ /* Details: "Method setParameters(java.util.Map): For an action URL, */
+ /* action parameters can be set through the map" */
+ TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS4);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters5 */
+ /* Details: "Method setParameters(java.util.Map): For a resource URL, */
+ /* resource parameters can be set through the map" */
+ TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS5);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters6 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* private, action, or resource parameters not contained in the */
+ /* specified input map are removed" */
+ TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS6);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters7 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* public parameters not contained in the specified input map remain */
+ /* unchanged" */
+ TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS7);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters8 */
+ /* Details: "Method setParameters(java.util.Map): Parameters that are */
+ /* set are available in requests initiated through the URL" */
+ TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS8);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters9 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS9);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters10 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS10);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters11 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS11);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters12 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS12);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters13 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS13);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters14 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS14);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setSecure2 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* true, the resulting URL uses a secure connection (HTTPS)" */
+ TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETSECURE2);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setSecure3 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* false, the resulting URL can use either a secure or non-secure */
+ /* connection" */
+ TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETSECURE3);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setSecure4 */
+ /* Details: "Method setSecure(boolean): Throws a */
+ /* PortletSecurityException if the run-time environment does not */
+ /* support the setting" */
+ TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETSECURE4);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_toString */
+ /* Details: "Method toString(): Returns a String containing the */
+ /* portlet URL representation to be included in the markup" */
+ TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_TOSTRING);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap2 */
+ /* Details: "Method getParameterMap(): For a render URL, the returned */
+ /* map contains all public and private parameters for the request" */
+ TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap3 */
+ /* Details: "Method getParameterMap(): For an action URL, the */
+ /* returned map contains all action parameters for the request" */
+ TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap4 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map contains all resource parameters for the request" */
+ TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP4);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap5 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map does not contain any render parameters for the */
+ /* request" */
+ TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP5);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap6 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_GETPARAMETERMAP6);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_writeA1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_WRITEA1);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_writeA2 */
+ /* Details: "Method write(): The written URL is XML escaped (although */
+ /* it may be a token rather than a valid URL)" */
+ TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_WRITEA2);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_writeB1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_WRITEB1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_writeB2 */
+ /* Details: "Method write(): If the escapeXML parameter is true, the */
+ /* written URL is XML escaped (although it may be a token rather than */
+ /* a valid URL)" */
+ TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_WRITEB2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_writeB3 */
+ /* Details: "Method write(): If the escapeXML parameter is false, no */
+ /* excaping is performed" */
+ TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_WRITEB3);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_addProperty1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key" */
+ TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_ADDPROPERTY1);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_addProperty2 */
+ /* Details: "Method addProperty(String, String): Existing property */
+ /* values for the key are retained" */
+ TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_ADDPROPERTY2);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_addProperty3 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_ADDPROPERTY3);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPROPERTY1);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPROPERTY2);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPROPERTY3);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
new file mode 100644
index 0000000..094d044
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
@@ -0,0 +1,523 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet URLTests_BaseURL_ApiRenderResurl_event
+ *
+ */
+public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ URLTests_BaseURL_ApiRenderResurl.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA1 */
+ /* Details: "Method setParameter(String, String): Sets the parameter */
+ /* value for the specified name" */
+ TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA2 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* private parameter can be set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA3 */
+ /* Details: "Method setParameter(String, String): For a render URL, a */
+ /* public parameter can be set" */
+ TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA4 */
+ /* Details: "Method setParameter(String, String): For an action URL, */
+ /* an action parameter can be set" */
+ TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA5 */
+ /* Details: "Method setParameter(String, String): For a resource URL, */
+ /* a resource parameter can be set" */
+ TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA5);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA6 */
+ /* Details: "Method setParameter(String, String): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA6);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA7 */
+ /* Details: "Method setParameter(String, String): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA7);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA8 */
+ /* Details: "Method setParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA8);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB1 */
+ /* Details: "Method setParameter(String, String[]): Sets the */
+ /* parameter value array for the specified name" */
+ TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB2 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a private parameter can be set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB3 */
+ /* Details: "Method setParameter(String, String[]): For a render URL, */
+ /* a public parameter can be set" */
+ TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB4 */
+ /* Details: "Method setParameter(String, String[]): For an action */
+ /* URL, an action parameter can be set" */
+ TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB5 */
+ /* Details: "Method setParameter(String, String[]): For a resource */
+ /* URL, a resource parameter can be set" */
+ TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB5);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB6 */
+ /* Details: "Method setParameter(String, String[]): All previously */
+ /* existing values for the specified key are removed" */
+ TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB6);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB7 */
+ /* Details: "Method setParameter(String, String[]): If the value is */
+ /* null, all values for the specified key are removed" */
+ TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB7);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB8 */
+ /* Details: "Method setParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB8);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters1 */
+ /* Details: "Method setParameters(java.util.Map): Sets the parameter */
+ /* map to the specified value" */
+ TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS1);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters2 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* public parameters can be set through the map" */
+ TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters3 */
+ /* Details: "Method setParameters(java.util.Map): For a render URL, */
+ /* private parameters can be set through the map" */
+ TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS3);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters4 */
+ /* Details: "Method setParameters(java.util.Map): For an action URL, */
+ /* action parameters can be set through the map" */
+ TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS4);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters5 */
+ /* Details: "Method setParameters(java.util.Map): For a resource URL, */
+ /* resource parameters can be set through the map" */
+ TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS5);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters6 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* private, action, or resource parameters not contained in the */
+ /* specified input map are removed" */
+ TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS6);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters7 */
+ /* Details: "Method setParameters(java.util.Map): Previously existing */
+ /* public parameters not contained in the specified input map remain */
+ /* unchanged" */
+ TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS7);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters8 */
+ /* Details: "Method setParameters(java.util.Map): Parameters that are */
+ /* set are available in requests initiated through the URL" */
+ TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS8);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters9 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS9);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters10 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS10);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters11 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS11);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters12 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS12);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters13 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS13);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters14 */
+ /* Details: "Method setParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS14);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setSecure2 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* true, the resulting URL uses a secure connection (HTTPS)" */
+ TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETSECURE2);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setSecure3 */
+ /* Details: "Method setSecure(boolean): If the input parameter is */
+ /* false, the resulting URL can use either a secure or non-secure */
+ /* connection" */
+ TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETSECURE3);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setSecure4 */
+ /* Details: "Method setSecure(boolean): Throws a */
+ /* PortletSecurityException if the run-time environment does not */
+ /* support the setting" */
+ TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETSECURE4);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_toString */
+ /* Details: "Method toString(): Returns a String containing the */
+ /* portlet URL representation to be included in the markup" */
+ TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_TOSTRING);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap2 */
+ /* Details: "Method getParameterMap(): For a render URL, the returned */
+ /* map contains all public and private parameters for the request" */
+ TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap3 */
+ /* Details: "Method getParameterMap(): For an action URL, the */
+ /* returned map contains all action parameters for the request" */
+ TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap4 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map contains all resource parameters for the request" */
+ TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP4);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap5 */
+ /* Details: "Method getParameterMap(): For a resource URL, the */
+ /* returned map does not contain any render parameters for the */
+ /* request" */
+ TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP5);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_getParameterMap6 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_GETPARAMETERMAP6);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_writeA1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_WRITEA1);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_writeA2 */
+ /* Details: "Method write(): The written URL is XML escaped (although */
+ /* it may be a token rather than a valid URL)" */
+ TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_WRITEA2);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_writeB1 */
+ /* Details: "Method write(): Writes the URL to the output stream */
+ /* through the provided Writer" */
+ TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_WRITEB1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_writeB2 */
+ /* Details: "Method write(): If the escapeXML parameter is true, the */
+ /* written URL is XML escaped (although it may be a token rather than */
+ /* a valid URL)" */
+ TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_WRITEB2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_writeB3 */
+ /* Details: "Method write(): If the escapeXML parameter is false, no */
+ /* excaping is performed" */
+ TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_WRITEB3);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_addProperty1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key" */
+ TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_ADDPROPERTY1);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_addProperty2 */
+ /* Details: "Method addProperty(String, String): Existing property */
+ /* values for the key are retained" */
+ TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_ADDPROPERTY2);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_addProperty3 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_ADDPROPERTY3);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPROPERTY1);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPROPERTY2);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPROPERTY3);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ }
+
+}
[07/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderActurl.java
deleted file mode 100644
index bde014f..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderActurl.java
+++ /dev/null
@@ -1,523 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_BaseURL_RenderActurl_event
- *
- */
-public class URLTests_BaseURL_RenderActurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_BaseURL_RenderActurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA1 */
- /* Details: "Method setParameter(String, String): Sets the parameter */
- /* value for the specified name" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA2 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* private parameter can be set" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA3 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* public parameter can be set" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA4 */
- /* Details: "Method setParameter(String, String): For an action URL, */
- /* an action parameter can be set" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA5 */
- /* Details: "Method setParameter(String, String): For a resource URL, */
- /* a resource parameter can be set" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA5);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA6 */
- /* Details: "Method setParameter(String, String): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA6);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA7 */
- /* Details: "Method setParameter(String, String): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA7);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterA8 */
- /* Details: "Method setParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB1 */
- /* Details: "Method setParameter(String, String[]): Sets the */
- /* parameter value array for the specified name" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB2 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a private parameter can be set" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB3 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a public parameter can be set" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB4 */
- /* Details: "Method setParameter(String, String[]): For an action */
- /* URL, an action parameter can be set" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB5 */
- /* Details: "Method setParameter(String, String[]): For a resource */
- /* URL, a resource parameter can be set" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB5);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB6 */
- /* Details: "Method setParameter(String, String[]): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB6);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB7 */
- /* Details: "Method setParameter(String, String[]): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB7);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameterB8 */
- /* Details: "Method setParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters1 */
- /* Details: "Method setParameters(java.util.Map): Sets the parameter */
- /* map to the specified value" */
- TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS1);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters2 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* public parameters can be set through the map" */
- TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters3 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* private parameters can be set through the map" */
- TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS3);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters4 */
- /* Details: "Method setParameters(java.util.Map): For an action URL, */
- /* action parameters can be set through the map" */
- TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS4);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters5 */
- /* Details: "Method setParameters(java.util.Map): For a resource URL, */
- /* resource parameters can be set through the map" */
- TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS5);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters6 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* private, action, or resource parameters not contained in the */
- /* specified input map are removed" */
- TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS6);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters7 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* public parameters not contained in the specified input map remain */
- /* unchanged" */
- TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS7);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters8 */
- /* Details: "Method setParameters(java.util.Map): Parameters that are */
- /* set are available in requests initiated through the URL" */
- TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS8);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters9 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters10 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters11 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS11);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters12 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters13 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setParameters14 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPARAMETERS14);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setSecure2 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* true, the resulting URL uses a secure connection (HTTPS)" */
- TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETSECURE2);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setSecure3 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* false, the resulting URL can use either a secure or non-secure */
- /* connection" */
- TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETSECURE3);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setSecure4 */
- /* Details: "Method setSecure(boolean): Throws a */
- /* PortletSecurityException if the run-time environment does not */
- /* support the setting" */
- TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETSECURE4);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_toString */
- /* Details: "Method toString(): Returns a String containing the */
- /* portlet URL representation to be included in the markup" */
- TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_TOSTRING);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap2 */
- /* Details: "Method getParameterMap(): For a render URL, the returned */
- /* map contains all public and private parameters for the request" */
- TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap3 */
- /* Details: "Method getParameterMap(): For an action URL, the */
- /* returned map contains all action parameters for the request" */
- TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap4 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map contains all resource parameters for the request" */
- TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP4);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap5 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map does not contain any render parameters for the */
- /* request" */
- TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP5);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_getParameterMap6 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_GETPARAMETERMAP6);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_writeA1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_WRITEA1);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_writeA2 */
- /* Details: "Method write(): The written URL is XML escaped (although */
- /* it may be a token rather than a valid URL)" */
- TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_WRITEA2);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_writeB1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_WRITEB1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_writeB2 */
- /* Details: "Method write(): If the escapeXML parameter is true, the */
- /* written URL is XML escaped (although it may be a token rather than */
- /* a valid URL)" */
- TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_WRITEB2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_writeB3 */
- /* Details: "Method write(): If the escapeXML parameter is false, no */
- /* excaping is performed" */
- TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_WRITEB3);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_addProperty1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key" */
- TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_ADDPROPERTY1);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_addProperty2 */
- /* Details: "Method addProperty(String, String): Existing property */
- /* values for the key are retained" */
- TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_ADDPROPERTY2);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_addProperty3 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPROPERTY1);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPROPERTY2);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderActurl_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERACTURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderRenurl.java
deleted file mode 100644
index 856f3ce..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderRenurl.java
+++ /dev/null
@@ -1,523 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_BaseURL_RenderRenurl_event
- *
- */
-public class URLTests_BaseURL_RenderRenurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_BaseURL_RenderRenurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA1 */
- /* Details: "Method setParameter(String, String): Sets the parameter */
- /* value for the specified name" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA2 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* private parameter can be set" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA3 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* public parameter can be set" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA4 */
- /* Details: "Method setParameter(String, String): For an action URL, */
- /* an action parameter can be set" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA5 */
- /* Details: "Method setParameter(String, String): For a resource URL, */
- /* a resource parameter can be set" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA5);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA6 */
- /* Details: "Method setParameter(String, String): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA6);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA7 */
- /* Details: "Method setParameter(String, String): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA7);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterA8 */
- /* Details: "Method setParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB1 */
- /* Details: "Method setParameter(String, String[]): Sets the */
- /* parameter value array for the specified name" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB2 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a private parameter can be set" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB3 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a public parameter can be set" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB4 */
- /* Details: "Method setParameter(String, String[]): For an action */
- /* URL, an action parameter can be set" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB5 */
- /* Details: "Method setParameter(String, String[]): For a resource */
- /* URL, a resource parameter can be set" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB5);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB6 */
- /* Details: "Method setParameter(String, String[]): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB6);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB7 */
- /* Details: "Method setParameter(String, String[]): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB7);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameterB8 */
- /* Details: "Method setParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters1 */
- /* Details: "Method setParameters(java.util.Map): Sets the parameter */
- /* map to the specified value" */
- TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS1);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters2 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* public parameters can be set through the map" */
- TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters3 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* private parameters can be set through the map" */
- TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS3);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters4 */
- /* Details: "Method setParameters(java.util.Map): For an action URL, */
- /* action parameters can be set through the map" */
- TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS4);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters5 */
- /* Details: "Method setParameters(java.util.Map): For a resource URL, */
- /* resource parameters can be set through the map" */
- TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS5);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters6 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* private, action, or resource parameters not contained in the */
- /* specified input map are removed" */
- TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS6);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters7 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* public parameters not contained in the specified input map remain */
- /* unchanged" */
- TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS7);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters8 */
- /* Details: "Method setParameters(java.util.Map): Parameters that are */
- /* set are available in requests initiated through the URL" */
- TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS8);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters9 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters10 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters11 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS11);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters12 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters13 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setParameters14 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPARAMETERS14);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setSecure2 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* true, the resulting URL uses a secure connection (HTTPS)" */
- TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETSECURE2);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setSecure3 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* false, the resulting URL can use either a secure or non-secure */
- /* connection" */
- TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETSECURE3);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setSecure4 */
- /* Details: "Method setSecure(boolean): Throws a */
- /* PortletSecurityException if the run-time environment does not */
- /* support the setting" */
- TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETSECURE4);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_toString */
- /* Details: "Method toString(): Returns a String containing the */
- /* portlet URL representation to be included in the markup" */
- TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_TOSTRING);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap2 */
- /* Details: "Method getParameterMap(): For a render URL, the returned */
- /* map contains all public and private parameters for the request" */
- TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap3 */
- /* Details: "Method getParameterMap(): For an action URL, the */
- /* returned map contains all action parameters for the request" */
- TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap4 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map contains all resource parameters for the request" */
- TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP4);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap5 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map does not contain any render parameters for the */
- /* request" */
- TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP5);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_getParameterMap6 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_GETPARAMETERMAP6);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_writeA1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_WRITEA1);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_writeA2 */
- /* Details: "Method write(): The written URL is XML escaped (although */
- /* it may be a token rather than a valid URL)" */
- TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_WRITEA2);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_writeB1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_WRITEB1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_writeB2 */
- /* Details: "Method write(): If the escapeXML parameter is true, the */
- /* written URL is XML escaped (although it may be a token rather than */
- /* a valid URL)" */
- TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_WRITEB2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_writeB3 */
- /* Details: "Method write(): If the escapeXML parameter is false, no */
- /* excaping is performed" */
- TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_WRITEB3);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_addProperty1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key" */
- TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_ADDPROPERTY1);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_addProperty2 */
- /* Details: "Method addProperty(String, String): Existing property */
- /* values for the key are retained" */
- TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_ADDPROPERTY2);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_addProperty3 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPROPERTY1);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPROPERTY2);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderRenurl_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRENURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderResurl.java
deleted file mode 100644
index 7cccd19..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_RenderResurl.java
+++ /dev/null
@@ -1,523 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet URLTests_BaseURL_RenderResurl_event
- *
- */
-public class URLTests_BaseURL_RenderResurl implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- URLTests_BaseURL_RenderResurl.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA1 */
- /* Details: "Method setParameter(String, String): Sets the parameter */
- /* value for the specified name" */
- TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA2 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* private parameter can be set" */
- TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA3 */
- /* Details: "Method setParameter(String, String): For a render URL, a */
- /* public parameter can be set" */
- TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA4 */
- /* Details: "Method setParameter(String, String): For an action URL, */
- /* an action parameter can be set" */
- TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA5 */
- /* Details: "Method setParameter(String, String): For a resource URL, */
- /* a resource parameter can be set" */
- TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA5);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA6 */
- /* Details: "Method setParameter(String, String): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA6);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA7 */
- /* Details: "Method setParameter(String, String): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA7);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterA8 */
- /* Details: "Method setParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB1 */
- /* Details: "Method setParameter(String, String[]): Sets the */
- /* parameter value array for the specified name" */
- TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB2 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a private parameter can be set" */
- TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB3 */
- /* Details: "Method setParameter(String, String[]): For a render URL, */
- /* a public parameter can be set" */
- TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB4 */
- /* Details: "Method setParameter(String, String[]): For an action */
- /* URL, an action parameter can be set" */
- TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB5 */
- /* Details: "Method setParameter(String, String[]): For a resource */
- /* URL, a resource parameter can be set" */
- TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB5);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB6 */
- /* Details: "Method setParameter(String, String[]): All previously */
- /* existing values for the specified key are removed" */
- TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB6);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB7 */
- /* Details: "Method setParameter(String, String[]): If the value is */
- /* null, all values for the specified key are removed" */
- TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB7);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameterB8 */
- /* Details: "Method setParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters1 */
- /* Details: "Method setParameters(java.util.Map): Sets the parameter */
- /* map to the specified value" */
- TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS1);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters2 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* public parameters can be set through the map" */
- TestResult tr17 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters3 */
- /* Details: "Method setParameters(java.util.Map): For a render URL, */
- /* private parameters can be set through the map" */
- TestResult tr18 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS3);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters4 */
- /* Details: "Method setParameters(java.util.Map): For an action URL, */
- /* action parameters can be set through the map" */
- TestResult tr19 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS4);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters5 */
- /* Details: "Method setParameters(java.util.Map): For a resource URL, */
- /* resource parameters can be set through the map" */
- TestResult tr20 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS5);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters6 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* private, action, or resource parameters not contained in the */
- /* specified input map are removed" */
- TestResult tr21 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS6);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters7 */
- /* Details: "Method setParameters(java.util.Map): Previously existing */
- /* public parameters not contained in the specified input map remain */
- /* unchanged" */
- TestResult tr22 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS7);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters8 */
- /* Details: "Method setParameters(java.util.Map): Parameters that are */
- /* set are available in requests initiated through the URL" */
- TestResult tr23 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS8);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters9 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters10 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters11 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- TestResult tr26 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS11);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters12 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters13 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setParameters14 */
- /* Details: "Method setParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr29 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPARAMETERS14);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setSecure2 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* true, the resulting URL uses a secure connection (HTTPS)" */
- TestResult tr30 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETSECURE2);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setSecure3 */
- /* Details: "Method setSecure(boolean): If the input parameter is */
- /* false, the resulting URL can use either a secure or non-secure */
- /* connection" */
- TestResult tr31 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETSECURE3);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setSecure4 */
- /* Details: "Method setSecure(boolean): Throws a */
- /* PortletSecurityException if the run-time environment does not */
- /* support the setting" */
- TestResult tr32 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETSECURE4);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_toString */
- /* Details: "Method toString(): Returns a String containing the */
- /* portlet URL representation to be included in the markup" */
- TestResult tr33 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_TOSTRING);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr34 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap2 */
- /* Details: "Method getParameterMap(): For a render URL, the returned */
- /* map contains all public and private parameters for the request" */
- TestResult tr35 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap3 */
- /* Details: "Method getParameterMap(): For an action URL, the */
- /* returned map contains all action parameters for the request" */
- TestResult tr36 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap4 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map contains all resource parameters for the request" */
- TestResult tr37 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP4);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap5 */
- /* Details: "Method getParameterMap(): For a resource URL, the */
- /* returned map does not contain any render parameters for the */
- /* request" */
- TestResult tr38 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP5);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_getParameterMap6 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr39 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_GETPARAMETERMAP6);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_writeA1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr40 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_WRITEA1);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_writeA2 */
- /* Details: "Method write(): The written URL is XML escaped (although */
- /* it may be a token rather than a valid URL)" */
- TestResult tr41 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_WRITEA2);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_writeB1 */
- /* Details: "Method write(): Writes the URL to the output stream */
- /* through the provided Writer" */
- TestResult tr42 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_WRITEB1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_writeB2 */
- /* Details: "Method write(): If the escapeXML parameter is true, the */
- /* written URL is XML escaped (although it may be a token rather than */
- /* a valid URL)" */
- TestResult tr43 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_WRITEB2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_writeB3 */
- /* Details: "Method write(): If the escapeXML parameter is false, no */
- /* excaping is performed" */
- TestResult tr44 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_WRITEB3);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_addProperty1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key" */
- TestResult tr45 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_ADDPROPERTY1);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_addProperty2 */
- /* Details: "Method addProperty(String, String): Existing property */
- /* values for the key are retained" */
- TestResult tr46 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_ADDPROPERTY2);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_addProperty3 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr48 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPROPERTY1);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr49 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPROPERTY2);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2URLTests_BaseURL_RenderResurl_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_RENDERRESURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- }
-
-}
[16/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Action.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Action.java
deleted file mode 100644
index 4e013bb..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Action.java
+++ /dev/null
@@ -1,483 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_PortletResponse_Action_event
- *
- */
-public class ResponseTests_PortletResponse_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_PortletResponse_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYB1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYB2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYB3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYC1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_SETPROPERTY1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_SETPROPERTY2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ENCODEURL1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_ENCODEURL2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_GETNAMESPACE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT4);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_ACTION_CREATEELEMENT6);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyC1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_addPropertyC2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_setProperty1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_setProperty2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_setProperty3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_encodeURL1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_encodeURL2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_getNamespace1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Action_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Action_createElement6", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
new file mode 100644
index 0000000..be99146
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiAction.java
@@ -0,0 +1,483 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_PortletResponse_ApiAction_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_PortletResponse_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYB1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYB2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYB3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYB4);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYC1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ADDPROPERTYC2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_SETPROPERTY1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_SETPROPERTY2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_SETPROPERTY3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ENCODEURL1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_ENCODEURL2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_GETNAMESPACE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT4);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIACTION_CREATEELEMENT6);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyC1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_addPropertyC2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_setProperty1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_setProperty2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_setProperty3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_encodeURL1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_encodeURL2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_getNamespace1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiAction_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiAction_createElement6", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent.java
new file mode 100644
index 0000000..f36808a
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent.java
@@ -0,0 +1,308 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_PortletResponse_ApiEvent_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_PortletResponse_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "ResponseTests_PortletResponse_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyC1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_addPropertyC2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_setProperty1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_setProperty2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_setProperty3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_encodeURL1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_encodeURL2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_getNamespace1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_PortletResponse_ApiEvent_createElement6", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
new file mode 100644
index 0000000..1305c86
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiEvent_event.java
@@ -0,0 +1,273 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class ResponseTests_PortletResponse_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_PortletResponse_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYB1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYB2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYB3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYB4);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYC1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ADDPROPERTYC2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_SETPROPERTY1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_SETPROPERTY2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_SETPROPERTY3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ENCODEURL1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_ENCODEURL2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_GETNAMESPACE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT4);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiEvent_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIEVENT_CREATEELEMENT6);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>ResponseTests_PortletResponse_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
[35/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_RenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_RenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_RenderFilter.java
deleted file mode 100644
index eb6eb02..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_FilterConfig_RenderFilter.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_FilterConfig_RenderFilter_event
- *
- */
-public class FilterTests_FilterConfig_RenderFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_FilterConfig_RenderFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getFilterName */
- /* Details: "Method getFilterName(): getFilterName method returns */
- /* filter name as defined in deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETFILTERNAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getPortletContext */
- /* Details: "Method getPortletContext(): Returns reference to */
- /* PortletContext object" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETPORTLETCONTEXT);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getInitParameter1 */
- /* Details: "Method getInitParameter(String): Returns null if */
- /* initialization parameter does not exist" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETER1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getInitParameter2 */
- /* Details: "Method getInitParameter(String): Returns value of */
- /* specified initialization parameter" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETER2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames1 */
- /* Details: "Method getInitParameterNames(): Returns empty */
- /* Enumeration if no parameters defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETERNAMES1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames2 */
- /* Details: "Method getInitParameterNames(): Returns an Enumeration */
- /* of initialization parameters defined in deployment descriptor" */
- TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_RENDERFILTER_GETINITPARAMETERNAMES2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ActionFilter.java
deleted file mode 100644
index 58dfe75..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ActionFilter.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_PortletFilter_ActionFilter_event
- *
- */
-public class FilterTests_PortletFilter_ActionFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_PortletFilter_ActionFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* ActionFilter is configured" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction2 */
- /* Details: "The init(FilterConfig): method for an ActionFilter is */
- /* passed a FilterConfig object" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction3 */
- /* Details: "If the init(FilterConfig): method for an ActionFilter */
- /* throws a PortletException, the filter is not placed in service" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_ACTIONFILTER_INITACTION3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ActionFilter",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ActionFilter", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ActionFilter", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* ActionFilter is configured" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_ActionFilter_initAction1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction2 */
- /* Details: "The init(FilterConfig): method for an ActionFilter is */
- /* passed a FilterConfig object" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_ActionFilter_initAction2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_PortletFilter_ActionFilter_initAction3 */
- /* Details: "If the init(FilterConfig): method for an ActionFilter */
- /* throws a PortletException, the filter is not placed in service" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_ActionFilter_initAction3", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiActionFilter.java
new file mode 100644
index 0000000..9b2a485
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiActionFilter.java
@@ -0,0 +1,138 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_PortletFilter_ApiActionFilter_event
+ *
+ */
+public class FilterTests_PortletFilter_ApiActionFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiActionFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ApiActionFilter", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ApiActionFilter", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* ActionFilter is configured" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiActionFilter_initAction1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction2 */
+ /* Details: "The init(FilterConfig): method for an ActionFilter is */
+ /* passed a FilterConfig object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiActionFilter_initAction2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction3 */
+ /* Details: "If the init(FilterConfig): method for an ActionFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiActionFilter_initAction3", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter.java
new file mode 100644
index 0000000..276f4c1
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter.java
@@ -0,0 +1,134 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_PortletFilter_ApiEventFilter_event
+ *
+ */
+public class FilterTests_PortletFilter_ApiEventFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiEventFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "FilterTests_PortletFilter_ApiEventFilter");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* EventFilter is configured" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiEventFilter_initEvent1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent2 */
+ /* Details: "The init(FilterConfig): method for an EventFilter is */
+ /* passed a FilterConfig object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiEventFilter_initEvent2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent3 */
+ /* Details: "If the init(FilterConfig): method for an EventFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_PortletFilter_ApiEventFilter_initEvent3", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter_event.java
new file mode 100644
index 0000000..6689010
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiEventFilter_event.java
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class FilterTests_PortletFilter_ApiEventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiEventFilter_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>FilterTests_PortletFilter_ApiEventFilter_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ApiEventFilter", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiRenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiRenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiRenderFilter.java
new file mode 100644
index 0000000..7499221
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiRenderFilter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_PortletFilter_ApiRenderFilter_event
+ *
+ */
+public class FilterTests_PortletFilter_ApiRenderFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiRenderFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiResourceFilter.java
new file mode 100644
index 0000000..dae4a48
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ApiResourceFilter.java
@@ -0,0 +1,116 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_PortletFilter_ApiResourceFilter_event
+ *
+ */
+public class FilterTests_PortletFilter_ApiResourceFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiResourceFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"FilterTests_PortletFilter_ApiResourceFilter\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"FilterTests_PortletFilter_ApiResourceFilter\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter.java
deleted file mode 100644
index 91d67b4..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_PortletFilter_EventFilter_event
- *
- */
-public class FilterTests_PortletFilter_EventFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_PortletFilter_EventFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "FilterTests_PortletFilter_EventFilter");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* EventFilter is configured" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_EventFilter_initEvent1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent2 */
- /* Details: "The init(FilterConfig): method for an EventFilter is */
- /* passed a FilterConfig object" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_EventFilter_initEvent2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent3 */
- /* Details: "If the init(FilterConfig): method for an EventFilter */
- /* throws a PortletException, the filter is not placed in service" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_PortletFilter_EventFilter_initEvent3", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter_event.java
deleted file mode 100644
index bffb143..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_EventFilter_event.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class FilterTests_PortletFilter_EventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_PortletFilter_EventFilter_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* EventFilter is configured" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent2 */
- /* Details: "The init(FilterConfig): method for an EventFilter is */
- /* passed a FilterConfig object" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_EventFilter_initEvent3 */
- /* Details: "If the init(FilterConfig): method for an EventFilter */
- /* throws a PortletException, the filter is not placed in service" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_EVENTFILTER_INITEVENT3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_EventFilter",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>FilterTests_PortletFilter_EventFilter_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_EventFilter", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_RenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_RenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_RenderFilter.java
deleted file mode 100644
index ab3f04e..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_RenderFilter.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_PortletFilter_RenderFilter_event
- *
- */
-public class FilterTests_PortletFilter_RenderFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_PortletFilter_RenderFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_PortletFilter_RenderFilter_initRender1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* RenderFilter is configured" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_RenderFilter_initRender2 */
- /* Details: "The init(FilterConfig): method for an RenderFilter is */
- /* passed a FilterConfig object" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_RenderFilter_initRender3 */
- /* Details: "If the init(FilterConfig): method for an RenderFilter */
- /* throws a PortletException, the filter is not placed in service" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RENDERFILTER_INITRENDER3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ResourceFilter.java
deleted file mode 100644
index 3857ed1..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_PortletFilter_ResourceFilter.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_PortletFilter_ResourceFilter_event
- *
- */
-public class FilterTests_PortletFilter_ResourceFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_PortletFilter_ResourceFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_PortletFilter_ResourceFilter_initResource1 */
- /* Details: "The init(FilterConfig): method is called when an */
- /* ResourceFilter is configured" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_ResourceFilter_initResource2 */
- /* Details: "The init(FilterConfig): method for an ResourceFilter is */
- /* passed a FilterConfig object" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_PortletFilter_ResourceFilter_initResource3 */
- /* Details: "If the init(FilterConfig): method for an ResourceFilter */
- /* throws a PortletException, the filter is not placed in service" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_RESOURCEFILTER_INITRESOURCE3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"FilterTests_PortletFilter_ResourceFilter\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"FilterTests_PortletFilter_ResourceFilter\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_ApiRenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_ApiRenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_ApiRenderFilter.java
new file mode 100644
index 0000000..5008401
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_ApiRenderFilter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_RenderFilter_ApiRenderFilter_event
+ *
+ */
+public class FilterTests_RenderFilter_ApiRenderFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_RenderFilter_ApiRenderFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_RenderFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_RenderFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_RenderFilter.java
deleted file mode 100644
index 4c0c42b..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_RenderFilter_RenderFilter.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_RenderFilter_RenderFilter_event
- *
- */
-public class FilterTests_RenderFilter_RenderFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_RenderFilter_RenderFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_canBeConfigured1 */
- /* Details: "An RenderFilter can be configured in the portlet */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_CANBECONFIGURED1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_canBeConfigured2 */
- /* Details: "Multiple RenderFilter classes can be configured in the */
- /* portlet descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_CANBECONFIGURED2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterIsCalled */
- /* Details: "The doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method is called before the processRender method for */
- /* the portlet" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERISCALLED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender1 */
- /* Details: "After the doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processRenderMethod is called" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERPROCESSRENDER1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender2 */
- /* Details: "After the doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERPROCESSRENDER2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterBlock */
- /* Details: "If the doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method does not invoke the next filter, */
- /* processRender is not called" */
- TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTERBLOCK);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterException1 */
- /* Details: "If the doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method throws an UnavailableException, processRender */
- /* is not called" */
- TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXCEPTION1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterException2 */
- /* Details: "If the doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXCEPTION2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2FilterTests_RenderFilter_RenderFilter_doFilterExamine */
- /* Details: "Method doFilter(RenderRequest, RenderResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the RenderResponse may be examined" */
- TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_RENDERFILTER_DOFILTEREXAMINE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ApiResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ApiResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ApiResourceFilter.java
new file mode 100644
index 0000000..85c6406
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ApiResourceFilter.java
@@ -0,0 +1,116 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_ResourceFilter_ApiResourceFilter_event
+ *
+ */
+public class FilterTests_ResourceFilter_ApiResourceFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_ResourceFilter_ApiResourceFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"FilterTests_ResourceFilter_ApiResourceFilter\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"FilterTests_ResourceFilter_ApiResourceFilter\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
[50/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventRequestWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventRequestWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventRequestWrapperChecker.java
new file mode 100644
index 0000000..5159981
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventRequestWrapperChecker.java
@@ -0,0 +1,473 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.Event;
+import javax.portlet.EventRequest;
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+
+public class EventRequestWrapperChecker extends WrapperChecker implements EventRequest {
+
+ private PortletRequest req;
+ private PortletSession sess;
+ private PortletPreferences prefs;
+ private PortalContext pcntxt;
+ private Principal ppal;
+
+ public EventRequestWrapperChecker(PortletRequest portletReq) {
+ req = portletReq;
+ sess = req.getPortletSession();
+ prefs = req.getPreferences();
+ pcntxt = req.getPortalContext();
+ ppal = req.getUserPrincipal();
+ }
+
+ @Override
+ public String getMethod() {
+ String meth = "getMethod";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isWindowStateAllowed(WindowState state) {
+ String meth = "isWindowStateAllowed";
+ Object[] args = {state};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isPortletModeAllowed(PortletMode mode) {
+ String meth = "isPortletModeAllowed";
+ Object[] args = {mode};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletPreferences getPreferences() {
+ String meth = "getPreferences";
+ Object[] args = {};
+ PortletPreferences ret = prefs;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession() {
+ String meth = "getPortletSession";
+ Object[] args = {};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession(boolean create) {
+ String meth = "getPortletSession";
+ Object[] args = {create};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getProperty(String name) {
+ String meth = "getProperty";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getProperties(String name) {
+ String meth = "getProperties";
+ Object[] args = {name};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getPropertyNames() {
+ String meth = "getPropertyNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortalContext getPortalContext() {
+ String meth = "getPortalContext";
+ Object[] args = {};
+ PortalContext ret = pcntxt;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getAuthType() {
+ String meth = "getAuthType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContextPath() {
+ String meth = "getContextPath";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getRemoteUser() {
+ String meth = "getRemoteUser";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Principal getUserPrincipal() {
+ String meth = "getUserPrincipal";
+ Object[] args = {};
+ Principal ret = ppal;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isUserInRole(String role) {
+ String meth = "isUserInRole";
+ Object[] args = {role};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Object getAttribute(String name) {
+ String meth = "getAttribute";
+ Object[] args = {name};
+ Object ret = "object";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getAttributeNames() {
+ String meth = "getAttributeNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getParameter(String name) {
+ String meth = "getParameter";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getParameterNames() {
+ String meth = "getParameterNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String[] getParameterValues(String name) {
+ String meth = "getParameterValues";
+ Object[] args = {name};
+ String[] ret = {"val1", "val2"};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getParameterMap() {
+ String meth = "getParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isSecure() {
+ String meth = "isSecure";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setAttribute(String name, Object o) {
+ String meth = "setAttribute";
+ Object[] args = {name, o};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void removeAttribute(String name) {
+ String meth = "removeAttribute";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getRequestedSessionId() {
+ String meth = "getRequestedSessionId";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isRequestedSessionIdValid() {
+ String meth = "isRequestedSessionIdValid";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResponseContentType() {
+ String meth = "getResponseContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getResponseContentTypes() {
+ String meth = "getResponseContentTypes";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<Locale> getLocales() {
+ String meth = "getLocales";
+ Object[] args = {};
+ Locale[] la = {new Locale("en"), new Locale("de")};
+ Enumeration<Locale> ret = Collections.enumeration(Arrays.asList(la));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getScheme() {
+ String meth = "getScheme";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getServerName() {
+ String meth = "getServerName";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getServerPort() {
+ String meth = "getServerPort";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getWindowID() {
+ String meth = "getWindowID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Cookie[] getCookies() {
+ String meth = "getCookies";
+ Object[] args = {};
+ Cookie[] ret = {new Cookie("name", "Bob"), new Cookie("name", "Alice")};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateParameterMap() {
+ String meth = "getPrivateParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPublicParameterMap() {
+ String meth = "getPublicParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Event getEvent() {
+ String meth = "getEvent";
+ Object[] args = {};
+ Event ret = ((EventRequest)req).getEvent();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventResponseWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventResponseWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventResponseWrapperChecker.java
new file mode 100644
index 0000000..72927ae
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/EventResponseWrapperChecker.java
@@ -0,0 +1,236 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.EventRequest;
+import javax.portlet.EventResponse;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletModeException;
+import javax.portlet.PortletResponse;
+import javax.portlet.WindowState;
+import javax.portlet.WindowStateException;
+import javax.servlet.http.Cookie;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Element;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class EventResponseWrapperChecker extends WrapperChecker implements EventResponse {
+
+ PortletResponse resp;
+ Element element;
+
+ public EventResponseWrapperChecker(PortletResponse portletResp) {
+ resp = portletResp;
+ element = resp.createElement("p");
+ }
+
+ @Override
+ public void setWindowState(WindowState windowState) throws WindowStateException {
+ String meth = "setWindowState";
+ Object[] args = {windowState};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameters(Map<String, String[]> parameters) {
+ String meth = "setRenderParameters";
+ Object[] args = {parameters};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameter(String key, String[] values) {
+ String meth = "setRenderParameter";
+ Object[] args = {key, values};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Map<String, String[]> getRenderParameterMap() {
+ String meth = "getRenderParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void removePublicRenderParameter(String name) {
+ String meth = "removePublicRenderParameter";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setEvent(QName arg0, Serializable arg1) {
+ String meth = "setEvent";
+ Object[] args = {arg0, arg1};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setPortletMode(PortletMode portletMode) throws PortletModeException {
+ String meth = "setPortletMode";
+ Object[] args = {portletMode};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameter(String key, String value) {
+ String meth = "setRenderParameter";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setEvent(String name, Serializable value) {
+ String meth = "setEvent";
+ Object[] args = {name, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, String value) {
+ String meth = "addProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setProperty(String key, String value) {
+ String meth = "setProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String encodeURL(String path) {
+ String meth = "encodeURL";
+ Object[] args = {path};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getNamespace() {
+ String meth = "getNamespace";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void addProperty(Cookie cookie) {
+ String meth = "addProperty";
+ Object[] args = {cookie};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, Element element) {
+ String meth = "addProperty";
+ Object[] args = {key, element};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Element createElement(String tagName) throws DOMException {
+ String meth = "createElement";
+ Object[] args = {tagName};
+ Element ret = element;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setRenderParameters(EventRequest request) {
+ String meth = "setRenderParameters";
+ Object[] args = {request};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+}
+
[27/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
new file mode 100644
index 0000000..15048c3
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
@@ -0,0 +1,1092 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_PortletRequest_ApiEvent_event
+ *
+ */
+public class RequestTests_PortletRequest_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_PortletRequest_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "RequestTests_PortletRequest_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldUSER_INFO", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldCCPP_PROFILE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldBASIC_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldFORM_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldCLIENT_CERT_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldDIGEST_AUTH", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldACTION_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldEVENT_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldRESOURCE_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldLIFECYCLE_PHASE", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PART", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_HEADERS", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_MARKUP", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_fieldACTION_SCOPE_ID", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletMode", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getWindowState", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPreferences", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperty1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperty2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperty3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperties1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperties2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getProperties3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPropertyNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPropertyNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPortalContext", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAuthType1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAuthType2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getContextPath1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getContextPath2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getContextPath3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getRemoteUser1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getRemoteUser2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isUserInRole1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isUserInRole2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isUserInRole3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAttribute1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAttribute2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAttribute3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAttributeNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getAttributeNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameter1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameter3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameter4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameter5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isSecure1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isSecure2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_setAttribute1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_setAttribute2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_setAttribute3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_removeAttribute1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_removeAttribute2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId1 */
+ /* Details: "Method getRequestedSessionId(): Returns the session ID */
+ /* indicated in the client request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId2 */
+ /* Details: "Method getRequestedSessionId(): Returns null if no */
+ /* session ID was indicated in the client request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid1 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
+ /* session ID is valid" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid2 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
+ /* session ID is not valid" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentType1 */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* representing the portal preferred content type for the response if */
+ /* the content type is defined in the portlet descriptor " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getResponseContentType1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentType2 */
+ /* Details: "Method getResponseContentType(): Returns an empty */
+ /* Enumeration if the content type is not defined in the portlet */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getResponseContentType2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes1 */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object representing */
+ /* the portal preferred content types for the response if the content */
+ /* types are defined in the portlet descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes2 */
+ /* Details: "Method getResponseContentTypes(): Returns an empty */
+ /* Enumeration if the content types are not defined in the portlet */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale object */
+ /* representing the preferred Locale for the response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getLocale", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getLocales */
+ /* Details: "Method getLocales(): Returns an */
+ /* java.util.Enumeration<java.util.Locale> of the Locales in */
+ /* which the portal will accept content" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getLocales", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getScheme */
+ /* Details: "Method getScheme(): Returns a String value representing */
+ /* the scheme name for the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getScheme", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getServerName */
+ /* Details: "Method getServerName(): Returns a String value */
+ /* representing the host name for the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getServerName", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getServerPort */
+ /* Details: "Method getServerPort(): Returns an int value */
+ /* representing the port number for the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getServerPort", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getWindowID */
+ /* Details: "Method getWindowID(): Returns a String value */
+ /* representing the portlet window ID" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getWindowID", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getCookies1 */
+ /* Details: "Method getCookies(): Returns a */
+ /* javax.servlet.http.Cookie[] array containing the cookies for this */
+ /* request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getCookies1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getCookies2 */
+ /* Details: "Method getCookies(): Returns null if no cookies are */
+ /* present" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getCookies2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap1 */
+ /* Details: "Method getPrivateParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the private parameter names and values if available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap2 */
+ /* Details: "Method getPrivateParameterMap(): The returned map is */
+ /* immutable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap3 */
+ /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
+ /* no private parameters exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap1 */
+ /* Details: "Method getPublicParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the public parameter names and values if available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap2 */
+ /* Details: "Method getPublicParameterMap(): The returned map is */
+ /* immutable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap3 */
+ /* Details: "Method getPublicParameterMap(): Returns an empty map if */
+ /* no public parameters exist" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_exists */
+ /* Details: "Method exists(): The P3PUserInfos exist as a public */
+ /* static enum" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_PortletRequest_ApiEvent_exists", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
[24/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
new file mode 100644
index 0000000..edebdd8
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
@@ -0,0 +1,912 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_PortletRequest_ApiResource_event
+ *
+ */
+public class RequestTests_PortletRequest_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_PortletRequest_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDUSER_INFO);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDCCPP_PROFILE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDBASIC_AUTH);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDFORM_AUTH);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDCLIENT_CERT_AUTH);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDDIGEST_AUTH);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDACTION_PHASE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDEVENT_PHASE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_PHASE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRESOURCE_PHASE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDLIFECYCLE_PHASE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_PART);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_HEADERS);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDRENDER_MARKUP);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_FIELDACTION_SCOPE_ID);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISWINDOWSTATEALLOWED1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISWINDOWSTATEALLOWED2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISPORTLETMODEALLOWED1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISPORTLETMODEALLOWED2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPREFERENCES);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONA1);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONA2);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONB1);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONB2);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONB3);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTLETSESSIONB4);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTY1);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTY2);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTY3);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTIES1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTIES2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTIES3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTYNAMES1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPROPERTYNAMES2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPORTALCONTEXT);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETAUTHTYPE1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETAUTHTYPE2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETCONTEXTPATH1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETCONTEXTPATH2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETCONTEXTPATH3);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETREMOTEUSER1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETREMOTEUSER2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETUSERPRINCIPAL1);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETUSERPRINCIPAL2);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISUSERINROLE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISUSERINROLE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISUSERINROLE3);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTE1);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTE2);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTE3);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTENAMES1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETATTRIBUTENAMES2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER1);
+ /* TODO: implement test */
+ tr54.appendTcDetail("Not implemented.");
+ tr54.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER2);
+ /* TODO: implement test */
+ tr55.appendTcDetail("Not implemented.");
+ tr55.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER3);
+ /* TODO: implement test */
+ tr56.appendTcDetail("Not implemented.");
+ tr56.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER4);
+ /* TODO: implement test */
+ tr57.appendTcDetail("Not implemented.");
+ tr57.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETER5);
+ /* TODO: implement test */
+ tr58.appendTcDetail("Not implemented.");
+ tr58.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr59.appendTcDetail("Not implemented.");
+ tr59.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr60.appendTcDetail("Not implemented.");
+ tr60.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERVALUES1);
+ /* TODO: implement test */
+ tr61.appendTcDetail("Not implemented.");
+ tr61.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERVALUES2);
+ /* TODO: implement test */
+ tr62.appendTcDetail("Not implemented.");
+ tr62.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERVALUES3);
+ /* TODO: implement test */
+ tr63.appendTcDetail("Not implemented.");
+ tr63.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERVALUES4);
+ /* TODO: implement test */
+ tr64.appendTcDetail("Not implemented.");
+ tr64.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr65.appendTcDetail("Not implemented.");
+ tr65.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr66.appendTcDetail("Not implemented.");
+ tr66.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr67.appendTcDetail("Not implemented.");
+ tr67.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISSECURE1);
+ /* TODO: implement test */
+ tr68.appendTcDetail("Not implemented.");
+ tr68.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISSECURE2);
+ /* TODO: implement test */
+ tr69.appendTcDetail("Not implemented.");
+ tr69.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_SETATTRIBUTE1);
+ /* TODO: implement test */
+ tr70.appendTcDetail("Not implemented.");
+ tr70.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_SETATTRIBUTE2);
+ /* TODO: implement test */
+ tr71.appendTcDetail("Not implemented.");
+ tr71.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_SETATTRIBUTE3);
+ /* TODO: implement test */
+ tr72.appendTcDetail("Not implemented.");
+ tr72.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the request" */
+ TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_REMOVEATTRIBUTE1);
+ /* TODO: implement test */
+ tr73.appendTcDetail("Not implemented.");
+ tr73.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_REMOVEATTRIBUTE2);
+ /* TODO: implement test */
+ tr74.appendTcDetail("Not implemented.");
+ tr74.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getRequestedSessionId1 */
+ /* Details: "Method getRequestedSessionId(): Returns the session ID */
+ /* indicated in the client request" */
+ TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETREQUESTEDSESSIONID1);
+ /* TODO: implement test */
+ tr75.appendTcDetail("Not implemented.");
+ tr75.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getRequestedSessionId2 */
+ /* Details: "Method getRequestedSessionId(): Returns null if no */
+ /* session ID was indicated in the client request" */
+ TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETREQUESTEDSESSIONID2);
+ /* TODO: implement test */
+ tr76.appendTcDetail("Not implemented.");
+ tr76.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isRequestedSessionIdValid1 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
+ /* session ID is valid" */
+ TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISREQUESTEDSESSIONIDVALID1);
+ /* TODO: implement test */
+ tr77.appendTcDetail("Not implemented.");
+ tr77.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_isRequestedSessionIdValid2 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
+ /* session ID is not valid" */
+ TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_ISREQUESTEDSESSIONIDVALID2);
+ /* TODO: implement test */
+ tr78.appendTcDetail("Not implemented.");
+ tr78.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getResponseContentType1 */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* representing the portal preferred content type for the response if */
+ /* the content type is defined in the portlet descriptor " */
+ TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPE1);
+ /* TODO: implement test */
+ tr79.appendTcDetail("Not implemented.");
+ tr79.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getResponseContentType2 */
+ /* Details: "Method getResponseContentType(): Returns an empty */
+ /* Enumeration if the content type is not defined in the portlet */
+ /* descriptor" */
+ TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPE2);
+ /* TODO: implement test */
+ tr80.appendTcDetail("Not implemented.");
+ tr80.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getResponseContentTypes1 */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object representing */
+ /* the portal preferred content types for the response if the content */
+ /* types are defined in the portlet descriptor" */
+ TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPES1);
+ /* TODO: implement test */
+ tr81.appendTcDetail("Not implemented.");
+ tr81.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getResponseContentTypes2 */
+ /* Details: "Method getResponseContentTypes(): Returns an empty */
+ /* Enumeration if the content types are not defined in the portlet */
+ /* descriptor" */
+ TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPES2);
+ /* TODO: implement test */
+ tr82.appendTcDetail("Not implemented.");
+ tr82.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale object */
+ /* representing the preferred Locale for the response" */
+ TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETLOCALE);
+ /* TODO: implement test */
+ tr83.appendTcDetail("Not implemented.");
+ tr83.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getLocales */
+ /* Details: "Method getLocales(): Returns an */
+ /* java.util.Enumeration<java.util.Locale> of the Locales in */
+ /* which the portal will accept content" */
+ TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETLOCALES);
+ /* TODO: implement test */
+ tr84.appendTcDetail("Not implemented.");
+ tr84.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getScheme */
+ /* Details: "Method getScheme(): Returns a String value representing */
+ /* the scheme name for the request" */
+ TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETSCHEME);
+ /* TODO: implement test */
+ tr85.appendTcDetail("Not implemented.");
+ tr85.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getServerName */
+ /* Details: "Method getServerName(): Returns a String value */
+ /* representing the host name for the request" */
+ TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETSERVERNAME);
+ /* TODO: implement test */
+ tr86.appendTcDetail("Not implemented.");
+ tr86.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getServerPort */
+ /* Details: "Method getServerPort(): Returns an int value */
+ /* representing the port number for the request" */
+ TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETSERVERPORT);
+ /* TODO: implement test */
+ tr87.appendTcDetail("Not implemented.");
+ tr87.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getWindowID */
+ /* Details: "Method getWindowID(): Returns a String value */
+ /* representing the portlet window ID" */
+ TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETWINDOWID);
+ /* TODO: implement test */
+ tr88.appendTcDetail("Not implemented.");
+ tr88.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getCookies1 */
+ /* Details: "Method getCookies(): Returns a */
+ /* javax.servlet.http.Cookie[] array containing the cookies for this */
+ /* request" */
+ TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETCOOKIES1);
+ /* TODO: implement test */
+ tr89.appendTcDetail("Not implemented.");
+ tr89.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getCookies2 */
+ /* Details: "Method getCookies(): Returns null if no cookies are */
+ /* present" */
+ TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETCOOKIES2);
+ /* TODO: implement test */
+ tr90.appendTcDetail("Not implemented.");
+ tr90.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap1 */
+ /* Details: "Method getPrivateParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the private parameter names and values if available" */
+ TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPRIVATEPARAMETERMAP1);
+ /* TODO: implement test */
+ tr91.appendTcDetail("Not implemented.");
+ tr91.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap2 */
+ /* Details: "Method getPrivateParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPRIVATEPARAMETERMAP2);
+ /* TODO: implement test */
+ tr92.appendTcDetail("Not implemented.");
+ tr92.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap3 */
+ /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
+ /* no private parameters exist" */
+ TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPRIVATEPARAMETERMAP3);
+ /* TODO: implement test */
+ tr93.appendTcDetail("Not implemented.");
+ tr93.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap1 */
+ /* Details: "Method getPublicParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the public parameter names and values if available" */
+ TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPUBLICPARAMETERMAP1);
+ /* TODO: implement test */
+ tr94.appendTcDetail("Not implemented.");
+ tr94.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap2 */
+ /* Details: "Method getPublicParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPUBLICPARAMETERMAP2);
+ /* TODO: implement test */
+ tr95.appendTcDetail("Not implemented.");
+ tr95.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap3 */
+ /* Details: "Method getPublicParameterMap(): Returns an empty map if */
+ /* no public parameters exist" */
+ TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_GETPUBLICPARAMETERMAP3);
+ /* TODO: implement test */
+ tr96.appendTcDetail("Not implemented.");
+ tr96.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiResource_exists */
+ /* Details: "Method exists(): The P3PUserInfos exist as a public */
+ /* static enum" */
+ TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRESOURCE_EXISTS);
+ /* TODO: implement test */
+ tr97.appendTcDetail("Not implemented.");
+ tr97.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"RequestTests_PortletRequest_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"RequestTests_PortletRequest_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
[62/63] [abbrv] Updated the assertion CSV files in the doc-files
directory
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d6d7d72c/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocAssertions.csv
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocAssertions.csv b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocAssertions.csv
index 960ac38..067d64a 100644
--- a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocAssertions.csv
+++ b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocAssertions.csv
@@ -1,2017 +1,1641 @@
-Class;Method;Name;Test;Description
-Filter Tests;;;;
-FilterChain; doFilter; invokeActionFilter;true;Invoking doFilter(ActionRequest, ActionResponse) causes next filter to be invoked
-FilterChain; doFilter; invokeActionFilter2;true;Invoking doFilter(ActionRequest, ActionResponse) causes portlet action method to be invoked
-FilterChain; doFilter; invokeActionException;true;Invoking doFilter(ActionRequest, ActionResponse) throws PortletException
-FilterChain; doFilter; invokeActionException2;true;Invoking doFilter(ActionRequest, ActionResponse) throws IOException
-FilterChain; doFilter; invokeEventFilter;true;Invoking doFilter(EventRequest, EventResponse) causes next filter to be invoked
-FilterChain; doFilter; invokeEventFilter2;true;Invoking doFilter(EventRequest, EventResponse) causes portlet Event method to be invoked
-FilterChain; doFilter; invokeEventException;true;Invoking doFilter(EventRequest, EventResponse) throws PortletException
-FilterChain; doFilter; invokeEventException2;true;Invoking doFilter(EventRequest, EventResponse) throws IOException
-FilterChain; doFilter; invokeRenderFilter;true;Invoking doFilter(RenderRequest, RenderResponse) causes next filter to be invoked
-FilterChain; doFilter; invokeRenderFilter2;true;Invoking doFilter(RenderRequest, RenderResponse) causes portlet Render method to be invoked
-FilterChain; doFilter; invokeRenderException;true;Invoking doFilter(RenderRequest, RenderResponse) throws PortletException
-FilterChain; doFilter; invokeRenderException2;true;Invoking doFilter(RenderRequest, RenderResponse) throws IOException
-FilterChain; doFilter; invokeResourceFilter;true;Invoking doFilter(ResourceRequest, ResourceResponse) causes next filter to be invoked
-FilterChain; doFilter; invokeResourceFilter2;true;Invoking doFilter(ResourceRequest, ResourceResponse) causes portlet Resource method to be invoked
-FilterChain; doFilter; invokeResourceException;true;Invoking doFilter(ResourceRequest, ResourceResponse) throws PortletException
-FilterChain; doFilter; invokeResourceException2;true;Invoking doFilter(ResourceRequest, ResourceResponse) throws IOException
-FilterChain_SIG; doFilter; hasDoFilter;true;Has a doFilter(ActionRequest, ActionResponse) throws java.io.IOException, PortletException method
-FilterChain_SIG; doFilter; hasDoFilterReturns;true;Method doFilter(ActionRequest, ActionResponse) returns void
-FilterChain_SIG; doFilter; hasDoFilterA;true;Has a doFilter(EventRequest, EventResponse) throws java.io.IOException, PortletException method
-FilterChain_SIG; doFilter; hasDoFilterReturnsA;true;Method doFilter(EventRequest, EventResponse) returns void
-FilterChain_SIG; doFilter; hasDoFilterB;true;Has a doFilter(RenderRequest, RenderResponse) throws java.io.IOException, PortletException method
-FilterChain_SIG; doFilter; hasDoFilterReturnsB;true;Method doFilter(RenderRequest, RenderResponse) returns void
-FilterChain_SIG; doFilter; hasDoFilterC;true;Has a doFilter(ResourceRequest, ResourceResponse) throws java.io.IOException, PortletException method
-FilterChain_SIG; doFilter; hasDoFilterReturnsC;true;Method doFilter(ResourceRequest, ResourceResponse) returns void
-FilterConfig; getFilterName; getFilterName;true;getFilterName method returns filter name as defined in deployment descriptor
-FilterConfig; getPortletContext; getPortletContext;true;Returns reference to PortletContext object
-FilterConfig; getInitParameter; getInitParameter1;true;Returns null if initialization parameter does not exist
-FilterConfig; getInitParameter; getInitParameter2;true;Returns value of specified initialization parameter
-FilterConfig; getInitParameterNames; getInitParameterNames1;true;Returns empty Enumeration if no parameters defined
-FilterConfig; getInitParameterNames; getInitParameterNames2;true;Returns an Enumeration of initialization parameters defined in deployment descriptor
-FilterConfig_SIG; getFilterName; hasGetFilterName;true;Has a getFilterName() method
-FilterConfig_SIG; getFilterName; hasGetFilterNameReturns;true;Method getFilterName() returns String
-FilterConfig_SIG; getPortletContext; hasGetPortletContext;true;Has a getPortletContext() method
-FilterConfig_SIG; getPortletContext; hasGetPortletContextReturns;true;Method getPortletContext() returns PortletContext
-FilterConfig_SIG; getInitParameter; hasGetInitParameter;true;Has a getInitParameter(String) method
-FilterConfig_SIG; getInitParameter; hasGetInitParameterReturns;true;Method getInitParameter(String) returns String
-FilterConfig_SIG; getInitParameterNames; hasGetInitParameterNames;true;Has a getInitParameterNames() method
-FilterConfig_SIG; getInitParameterNames; hasGetInitParameterNamesReturns;true;Method getInitParameterNames() returns java.util.Enumeration
-PortletFilter; init; initAction1;true;The init(FilterConfig) method is called when an ActionFilter is configured
-PortletFilter; init; initAction2;true;The init(FilterConfig) method for an ActionFilter is passed a FilterConfig object
-PortletFilter; init; initAction3;true;If the init(FilterConfig) method for an ActionFilter throws a PortletException, the filter is not placed in service
-PortletFilter; destroy; destroyAction1;?;The destroy() method is called when an ActionFilter is taken out of service
-PortletFilter; destroy; destroyAction2;?;After the destroy() method for an ActionFilter is called, no other filter method is called
-PortletFilter; init; initEvent1;true;The init(FilterConfig) method is called when an EventFilter is configured
-PortletFilter; init; initEvent2;true;The init(FilterConfig) method for an EventFilter is passed a FilterConfig object
-PortletFilter; init; initEvent3;true;If the init(FilterConfig) method for an EventFilter throws a PortletException, the filter is not placed in service
-PortletFilter; destroy; destroyEvent1;?;The destroy() method is called when an EventFilter is taken out of service
-PortletFilter; destroy; destroyEvent2;?;After the destroy() method for an EventFilter is called, no other filter method is called
-PortletFilter; init; initRender1;true;The init(FilterConfig) method is called when an RenderFilter is configured
-PortletFilter; init; initRender2;true;The init(FilterConfig) method for an RenderFilter is passed a FilterConfig object
-PortletFilter; init; initRender3;true;If the init(FilterConfig) method for an RenderFilter throws a PortletException, the filter is not placed in service
-PortletFilter; destroy; destroyRender1;?;The destroy() method is called when an RenderFilter is taken out of service
-PortletFilter; destroy; destroyRender2;?;After the destroy() method for an RenderFilter is called, no other filter method is called
-PortletFilter; init; initResource1;true;The init(FilterConfig) method is called when an ResourceFilter is configured
-PortletFilter; init; initResource2;true;The init(FilterConfig) method for an ResourceFilter is passed a FilterConfig object
-PortletFilter; init; initResource3;true;If the init(FilterConfig) method for an ResourceFilter throws a PortletException, the filter is not placed in service
-PortletFilter; destroy; destroyResource1;?;The destroy() method is called when an ResourceFilter is taken out of service
-PortletFilter; destroy; destroyResource2;?;After the destroy() method for an ResourceFilter is called, no other filter method is called
-PortletFilter_SIG; init; hasInit;true;Has a init(FilterConfig) throws PortletException method
-PortletFilter_SIG; init; hasInitReturns;true;Method init(FilterConfig) returns void
-PortletFilter_SIG; destroy; hasDestroy;true;Has a destroy() method
-PortletFilter_SIG; destroy; hasDestroyReturns;true;Method destroy() returns void
-ActionFilter;; canBeConfigured1;true;An ActionFilter can be configured in the portlet descriptor
-ActionFilter;; canBeConfigured2;true;Multiple ActionFilter classes can be configured in the portlet descriptor
-ActionFilter;doFilter; doFilterIsCalled;true;The doFilter(ActionRequest, ActionResponse, FilterChain) method is called before the processAction method for the portlet
-ActionFilter;doFilter; doFilterProcessAction1;true;After the method has sucessfully completed and invokes the next filter, the processActionMethod is called
-ActionFilter;doFilter; doFilterProcessAction2;true;After the method has sucessfully completed and invokes the next filter, the next filter in the chain is called if multiple filters are defined
-ActionFilter;doFilter; doFilterBlock;true;If the method does not invoke the next filter, processAction is not called
-ActionFilter;doFilter; doFilterException1;true;If the method throws an UnavailableException, processAction is not called
-ActionFilter;doFilter; doFilterException2;true;If the method throws an UnavailableException, no further filter is called
-ActionFilter;doFilter; doFilterExamine;true;After the next filter has been successfully invoked, the ActionResponse may be examined
-ActionFilter_SIG; ; implementsPortletFilter;true;Implements PortletFilter
-ActionFilter_SIG; doFilter; hasDoFilter;true;Has a doFilter(ActionRequest, ActionResponse, FilterChain) throws java.io.IOException, PortletException method
-ActionFilter_SIG; doFilter; hasDoFilterReturns;true;Method doFilter(ActionRequest, ActionResponse, FilterChain) returns void
-EventFilter;; canBeConfigured1;true;An EventFilter can be configured in the portlet descriptor
-EventFilter;; canBeConfigured2;true;Multiple EventFilter classes can be configured in the portlet descriptor
-EventFilter;doFilter; doFilterIsCalled;true;The doFilter(EventRequest, EventResponse, FilterChain) method is called before the processEvent method for the portlet
-EventFilter;doFilter; doFilterProcessEvent1;true;After the method has sucessfully completed and invokes the next filter, the processEventMethod is called
-EventFilter;doFilter; doFilterProcessEvent2;true;After the method has sucessfully completed and invokes the next filter, the next filter in the chain is called if multiple filters are defined
-EventFilter;doFilter; doFilterBlock;true;If the method does not invoke the next filter, processEvent is not called
-EventFilter;doFilter; doFilterException1;true;If the method throws an UnavailableException, processEvent is not called
-EventFilter;doFilter; doFilterException2;true;If the method throws an UnavailableException, no further filter is called
-EventFilter;doFilter; doFilterExamine;true;After the next filter has been successfully invoked, the EventResponse may be examined
-EventFilter_SIG; ; implementsPortletFilter;true;Implements PortletFilter
-EventFilter_SIG; doFilter; hasDoFilter;true;Has a doFilter(EventRequest, EventResponse, FilterChain) throws java.io.IOException, PortletException method
-EventFilter_SIG; doFilter; hasDoFilterReturns;true;Method doFilter(EventRequest, EventResponse, FilterChain) returns void
-RenderFilter;; canBeConfigured1;true;An RenderFilter can be configured in the portlet descriptor
-RenderFilter;; canBeConfigured2;true;Multiple RenderFilter classes can be configured in the portlet descriptor
-RenderFilter;doFilter; doFilterIsCalled;true;The doFilter(RenderRequest, RenderResponse, FilterChain) method is called before the processRender method for the portlet
-RenderFilter;doFilter; doFilterProcessRender1;true;After the method has sucessfully completed and invokes the next filter, the processRenderMethod is called
-RenderFilter;doFilter; doFilterProcessRender2;true;After the method has sucessfully completed and invokes the next filter, the next filter in the chain is called if multiple filters are defined
-RenderFilter;doFilter; doFilterBlock;true;If the method does not invoke the next filter, processRender is not called
-RenderFilter;doFilter; doFilterException1;true;If the method throws an UnavailableException, processRender is not called
-RenderFilter;doFilter; doFilterException2;true;If the method throws an UnavailableException, no further filter is called
-RenderFilter;doFilter; doFilterExamine;true;After the next filter has been successfully invoked, the RenderResponse may be examined
-RenderFilter_SIG; ; implementsPortletFilter;true;Implements PortletFilter
-RenderFilter_SIG; doFilter; hasDoFilter;true;Has a doFilter(RenderRequest, RenderResponse, FilterChain) throws java.io.IOException, PortletException method
-RenderFilter_SIG; doFilter; hasDoFilterReturns;true;Method doFilter(RenderRequest, RenderResponse, FilterChain) returns void
-ResourceFilter;; canBeConfigured1;true;An ResourceFilter can be configured in the portlet descriptor
-ResourceFilter;; canBeConfigured2;true;Multiple ResourceFilter classes can be configured in the portlet descriptor
-ResourceFilter;doFilter; doFilterIsCalled;true;The doFilter(ResourceRequest, ResourceResponse, FilterChain) method is called before the processResource method for the portlet
-ResourceFilter;doFilter; doFilterProcessResource1;true;After the method has sucessfully completed and invokes the next filter, the processResourceMethod is called
-ResourceFilter;doFilter; doFilterProcessResource2;true;After the method has sucessfully completed and invokes the next filter, the next filter in the chain is called if multiple filters are defined
-ResourceFilter;doFilter; doFilterBlock;true;If the method does not invoke the next filter, processResource is not called
-ResourceFilter;doFilter; doFilterException1;true;If the method throws an UnavailableException, processResource is not called
-ResourceFilter;doFilter; doFilterException2;true;If the method throws an UnavailableException, no further filter is called
-ResourceFilter;doFilter; doFilterExamine;true;After the next filter has been successfully invoked, the ResourceResponse may be examined
-ResourceFilter_SIG; ; implementsPortletFilter;true;Implements PortletFilter
-ResourceFilter_SIG; doFilter; hasDoFilter;true;Has a doFilter(ResourceRequest, ResourceResponse, FilterChain) throws java.io.IOException, PortletException method
-ResourceFilter_SIG; doFilter; hasDoFilterReturns;true;Method doFilter(ResourceRequest, ResourceResponse, FilterChain) returns void
-Wrapper Tests;;;;
-ActionRequestWrapper; getCharacterEncoding; getCharacterEncoding;true;Calls wrapped method
-ActionRequestWrapper; getContentLength; getContentLength;true;Calls wrapped method
-ActionRequestWrapper; getContentType; getContentType;true;Calls wrapped method
-ActionRequestWrapper; getPortletInputStream; getPortletInputStream;true;Calls wrapped method
-ActionRequestWrapper; getReader; getReader;true;Calls wrapped method
-ActionRequestWrapper; setCharacterEncoding; setCharacterEncoding;true;Calls wrapped method
-ActionRequestWrapper; getRequest; getRequest;true;Returns wrapped ActionRequest object
-ActionRequestWrapper; setRequest; setRequest;true;Allows wrapped ActionRequest object to be set
-ActionRequestWrapper; getMethod; getMethod;true;Calls wrapped method
-ActionRequestWrapper_SIG; ; extendsPortletRequestWrapper;true;Extends PortletRequestWrapper
-ActionRequestWrapper_SIG; ; implementsActionRequest;true;Implements ActionRequest
-ActionRequestWrapper_SIG; constructor; constructor;true;Provides constructor ActionRequestWrapper(ActionRequest)
-ActionRequestWrapper_SIG; getCharacterEncoding; hasGetCharacterEncoding;true;Has a getCharacterEncoding() method
-ActionRequestWrapper_SIG; getCharacterEncoding; hasGetCharacterEncodingReturns;true;Method getCharacterEncoding() returns String
-ActionRequestWrapper_SIG; getContentLength; hasGetContentLength;true;Has a getContentLength() method
-ActionRequestWrapper_SIG; getContentLength; hasGetContentLengthReturns;true;Method getContentLength() returns int
-ActionRequestWrapper_SIG; getContentType; hasGetContentType;true;Has a getContentType() method
-ActionRequestWrapper_SIG; getContentType; hasGetContentTypeReturns;true;Method getContentType() returns String
-ActionRequestWrapper_SIG; getPortletInputStream; hasGetPortletInputStream;true;Has a getPortletInputStream() throws java.io.IOException method
-ActionRequestWrapper_SIG; getPortletInputStream; hasGetPortletInputStreamReturns;true;Method getPortletInputStream() returns java.io.InputStream
-ActionRequestWrapper_SIG; getReader; hasGetReader;true;Has a getReader() throws java.io.UnsupportedEncodingException, java.io.IOException method
-ActionRequestWrapper_SIG; getReader; hasGetReaderReturns;true;Method getReader() returns java.io.BufferedReader
-ActionRequestWrapper_SIG; setCharacterEncoding; hasSetCharacterEncoding;true;Has a setCharacterEncoding(String) throws java.io.UnsupportedEncodingException method
-ActionRequestWrapper_SIG; setCharacterEncoding; hasSetCharacterEncodingReturns;true;Method setCharacterEncoding(String) returns void
-ActionRequestWrapper_SIG; getRequest; hasGetRequest;true;Has a getRequest() method
-ActionRequestWrapper_SIG; getRequest; hasGetRequestReturns;true;Method getRequest() returns ActionRequest
-ActionRequestWrapper_SIG; setRequest; hasSetRequest;true;Has a setRequest(ActionRequest) method
-ActionRequestWrapper_SIG; setRequest; hasSetRequestReturns;true;Method setRequest(ActionRequest) returns void
-ActionRequestWrapper_SIG; getMethod; hasGetMethod;true;Has a getMethod() method
-ActionRequestWrapper_SIG; getMethod; hasGetMethodReturns;true;Method getMethod() returns String
-ActionRequestWrapper_SIG; getRequest; hasGetRequestA;true;Has a getRequest() method
-ActionRequestWrapper_SIG; getRequest; hasGetRequestReturnsA;true;Method getRequest() returns PortletRequest
-ActionResponseWrapper; sendRedirect; sendRedirectA;true;Calls wrapped method
-ActionResponseWrapper; sendRedirect; sendRedirectB;true;Calls wrapped method
-ActionResponseWrapper; setEvent; setEventA;true;Calls wrapped method
-ActionResponseWrapper; setEvent; setEventB;true;Calls wrapped method
-ActionResponseWrapper; setPortletMode; setPortletMode;true;Calls wrapped method
-ActionResponseWrapper; setRenderParameter; setRenderParameterA;true;Calls wrapped method
-ActionResponseWrapper; setRenderParameter; setRenderParameterB;true;Calls wrapped method
-ActionResponseWrapper; setRenderParameters; setRenderParameters;true;Calls wrapped method
-ActionResponseWrapper; setWindowState; setWindowState;true;Calls wrapped method
-ActionResponseWrapper; getResponse; getResponse;true;Returns wrapped ActionResponse object
-ActionResponseWrapper; setResponse; setResponse;true;Allows wrapped ActionResponse object to be set
-ActionResponseWrapper; getPortletMode; getPortletMode;true;Calls wrapped method
-ActionResponseWrapper; getRenderParameterMap; getRenderParameterMap1;true;Calls wrapped method
-ActionResponseWrapper; getRenderParameterMap; getRenderParameterMap2;true;Returns java.util.Map<java.lang.String,java.lang.String[]> object
-ActionResponseWrapper; getWindowState; getWindowState;true;Calls wrapped method
-ActionResponseWrapper; removePublicRenderParameter; removePublicRenderParameter;true;Calls wrapped method
-ActionResponseWrapper_SIG; ; extendsPortletResponseWrapper;true;Extends PortletResponseWrapper
-ActionResponseWrapper_SIG; ; implementsActionResponse;true;Implements ActionResponse
-ActionResponseWrapper_SIG; constructor; constructor;true;Provides constructor ActionResponseWrapper(ActionResponse)
-ActionResponseWrapper_SIG; sendRedirect; hasSendRedirect;true;Has a sendRedirect(String) throws java.io.IOException method
-ActionResponseWrapper_SIG; sendRedirect; hasSendRedirectReturns;true;Method sendRedirect(String) returns void
-ActionResponseWrapper_SIG; sendRedirect; hasSendRedirectA;true;Has a sendRedirect(String, String) throws java.io.IOException method
-ActionResponseWrapper_SIG; sendRedirect; hasSendRedirectReturnsA;true;Method sendRedirect(String, String) returns void
-ActionResponseWrapper_SIG; setEvent; hasSetEvent;true;Has a setEvent(javax.xml.namespace.QName, java.io.Serializable) method
-ActionResponseWrapper_SIG; setEvent; hasSetEventReturns;true;Method setEvent(javax.xml.namespace.QName, java.io.Serializable) returns void
-ActionResponseWrapper_SIG; setPortletMode; hasSetPortletMode;true;Has a setPortletMode(PortletMode) throws PortletModeException method
-ActionResponseWrapper_SIG; setPortletMode; hasSetPortletModeReturns;true;Method setPortletMode(PortletMode) returns void
-ActionResponseWrapper_SIG; setRenderParameter; hasSetRenderParameter;true;Has a setRenderParameter(String, String) method
-ActionResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterReturns;true;Method setRenderParameter(String, String) returns void
-ActionResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterA;true;Has a setRenderParameter(String, String[]) method
-ActionResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterReturnsA;true;Method setRenderParameter(String, String[]) returns void
-ActionResponseWrapper_SIG; setRenderParameters; hasSetRenderParameters;true;Has a setRenderParameters(java.util.Map) method
-ActionResponseWrapper_SIG; setRenderParameters; hasSetRenderParametersReturns;true;Method setRenderParameters(java.util.Map) returns void
-ActionResponseWrapper_SIG; setWindowState; hasSetWindowState;true;Has a setWindowState(WindowState) throws WindowStateException method
-ActionResponseWrapper_SIG; setWindowState; hasSetWindowStateReturns;true;Method setWindowState(WindowState) returns void
-ActionResponseWrapper_SIG; getResponse; hasGetResponse;true;Has a getResponse() method
-ActionResponseWrapper_SIG; getResponse; hasGetResponseReturns;true;Method getResponse() returns ActionResponse
-ActionResponseWrapper_SIG; setResponse; hasSetResponse;true;Has a setResponse(ActionResponse) method
-ActionResponseWrapper_SIG; setResponse; hasSetResponseReturns;true;Method setResponse(ActionResponse) returns void
-ActionResponseWrapper_SIG; getPortletMode; hasGetPortletMode;true;Has a getPortletMode() method
-ActionResponseWrapper_SIG; getPortletMode; hasGetPortletModeReturns;true;Method getPortletMode() returns PortletMode
-ActionResponseWrapper_SIG; getRenderParameterMap; hasGetRenderParameterMap;true;Has a getRenderParameterMap() method
-ActionResponseWrapper_SIG; getRenderParameterMap; hasGetRenderParameterMapReturns;true;Method getRenderParameterMap() returns java.util.Map
-ActionResponseWrapper_SIG; getWindowState; hasGetWindowState;true;Has a getWindowState() method
-ActionResponseWrapper_SIG; getWindowState; hasGetWindowStateReturns;true;Method getWindowState() returns WindowState
-ActionResponseWrapper_SIG; setEvent; hasSetEventA;true;Has a setEvent(String, java.io.Serializable) method
-ActionResponseWrapper_SIG; setEvent; hasSetEventReturnsA;true;Method setEvent(String, java.io.Serializable) returns void
-ActionResponseWrapper_SIG; removePublicRenderParameter; hasRemovePublicRenderParameter;true;Has a removePublicRenderParameter(String) method
-ActionResponseWrapper_SIG; removePublicRenderParameter; hasRemovePublicRenderParameterReturns;true;Method removePublicRenderParameter(String) returns void
-ActionResponseWrapper_SIG; getResponse; hasGetResponseA;true;Has a getResponse() method
-ActionResponseWrapper_SIG; getResponse; hasGetResponseReturnsA;true;Method getResponse() returns PortletResponse
-EventRequestWrapper; getRequest; getRequest;true;Returns wrapped EventRequest object
-EventRequestWrapper; setRequest; setRequest;true;Allows wrapped EventRequest object to be set
-EventRequestWrapper; getEvent; getEvent1;true;Calls wrapped method
-EventRequestWrapper; getEvent; getEvent2;true;Returns Event object
-EventRequestWrapper; getMethod; getMethod;true;Calls wrapped method
-EventRequestWrapper_SIG; ; extendsPortletRequestWrapper;true;Extends PortletRequestWrapper
-EventRequestWrapper_SIG; ; implementsEventRequest;true;Implements EventRequest
-EventRequestWrapper_SIG; constructor; constructor;true;Provides constructor EventRequestWrapper(EventRequest)
-EventRequestWrapper_SIG; getRequest; hasGetRequest;true;Has a getRequest() method
-EventRequestWrapper_SIG; getRequest; hasGetRequestReturns;true;Method getRequest() returns EventRequest
-EventRequestWrapper_SIG; setRequest; hasSetRequest;true;Has a setRequest(EventRequest) method
-EventRequestWrapper_SIG; setRequest; hasSetRequestReturns;true;Method setRequest(EventRequest) returns void
-EventRequestWrapper_SIG; getEvent; hasGetEvent;true;Has a getEvent() method
-EventRequestWrapper_SIG; getEvent; hasGetEventReturns;true;Method getEvent() returns Event
-EventRequestWrapper_SIG; getMethod; hasGetMethod;true;Has a getMethod() method
-EventRequestWrapper_SIG; getMethod; hasGetMethodReturns;true;Method getMethod() returns String
-EventRequestWrapper_SIG; getRequest; hasGetRequestA;true;Has a getRequest() method
-EventRequestWrapper_SIG; getRequest; hasGetRequestReturnsA;true;Method getRequest() returns PortletRequest
-EventResponseWrapper; setEvent; setEventA;true;Calls wrapped method
-EventResponseWrapper; setEvent; setEventB;true;Calls wrapped method
-EventResponseWrapper; setPortletMode; setPortletMode;true;Calls wrapped method
-EventResponseWrapper; setRenderParameter; setRenderParameterA;true;Calls wrapped method
-EventResponseWrapper; setRenderParameter; setRenderParameterB;true;Calls wrapped method
-EventResponseWrapper; setRenderParameters; setRenderParametersA;true;Calls wrapped method
-EventResponseWrapper; setRenderParameters; setRenderParametersB;true;Calls wrapped method
-EventResponseWrapper; setWindowState; setWindowState;true;Calls wrapped method
-EventResponseWrapper; getResponse; getResponse;true;Returns wrapped EventResponse obect
-EventResponseWrapper; setResponse; setResponse;true;Allows wrapped EventResponse object to be set
-EventResponseWrapper; getPortletMode; getPortletMode;true;Calls wrapped method
-EventResponseWrapper; getRenderParameterMap; getRenderParameterMap1;true;Calls wrapped method
-EventResponseWrapper; getRenderParameterMap; getRenderParameterMap2;true;Returns java.util.Map<java.lang.String,java.lang.String[]> object
-EventResponseWrapper; getWindowState; getWindowState;true;Calls wrapped method
-EventResponseWrapper; removePublicRenderParameter; removePublicRenderParameter;true;Calls wrapped method
-EventResponseWrapper_SIG; ; extendsPortletResponseWrapper;true;Extends PortletResponseWrapper
-EventResponseWrapper_SIG; ; implementsEventResponse;true;Implements EventResponse
-EventResponseWrapper_SIG; constructor; constructor;true;Provides constructor EventResponseWrapper(EventResponse)
-EventResponseWrapper_SIG; setEvent; hasSetEvent;true;Has a setEvent(javax.xml.namespace.QName, java.io.Serializable) method
-EventResponseWrapper_SIG; setEvent; hasSetEventReturns;true;Method setEvent(javax.xml.namespace.QName, java.io.Serializable) returns void
-EventResponseWrapper_SIG; setPortletMode; hasSetPortletMode;true;Has a setPortletMode(PortletMode) throws PortletModeException method
-EventResponseWrapper_SIG; setPortletMode; hasSetPortletModeReturns;true;Method setPortletMode(PortletMode) returns void
-EventResponseWrapper_SIG; setRenderParameter; hasSetRenderParameter;true;Has a setRenderParameter(String, String) method
-EventResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterReturns;true;Method setRenderParameter(String, String) returns void
-EventResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterA;true;Has a setRenderParameter(String, String[]) method
-EventResponseWrapper_SIG; setRenderParameter; hasSetRenderParameterReturnsA;true;Method setRenderParameter(String, String[]) returns void
-EventResponseWrapper_SIG; setRenderParameters; hasSetRenderParameters;true;Has a setRenderParameters(java.util.Map) method
-EventResponseWrapper_SIG; setRenderParameters; hasSetRenderParametersReturns;true;Method setRenderParameters(java.util.Map) returns void
-EventResponseWrapper_SIG; setWindowState; hasSetWindowState;true;Has a setWindowState(WindowState) throws WindowStateException method
-EventResponseWrapper_SIG; setWindowState; hasSetWindowStateReturns;true;Method setWindowState(WindowState) returns void
-EventResponseWrapper_SIG; getResponse; hasGetResponse;true;Has a getResponse() method
-EventResponseWrapper_SIG; getResponse; hasGetResponseReturns;true;Method getResponse() returns EventResponse
-EventResponseWrapper_SIG; setResponse; hasSetResponse;true;Has a setResponse(EventResponse) method
-EventResponseWrapper_SIG; setResponse; hasSetResponseReturns;true;Method setResponse(EventResponse) returns void
-EventResponseWrapper_SIG; getPortletMode; hasGetPortletMode;true;Has a getPortletMode() method
-EventResponseWrapper_SIG; getPortletMode; hasGetPortletModeReturns;true;Method getPortletMode() returns PortletMode
-EventResponseWrapper_SIG; getRenderParameterMap; hasGetRenderParameterMap;true;Has a getRenderParameterMap() method
-EventResponseWrapper_SIG; getRenderParameterMap; hasGetRenderParameterMapReturns;true;Method getRenderParameterMap() returns java.util.Map
-EventResponseWrapper_SIG; getWindowState; hasGetWindowState;true;Has a getWindowState() method
-EventResponseWrapper_SIG; getWindowState; hasGetWindowStateReturns;true;Method getWindowState() returns WindowState
-EventResponseWrapper_SIG; setRenderParameters; hasSetRenderParametersA;true;Has a setRenderParameters(EventRequest) method
-EventResponseWrapper_SIG; setRenderParameters; hasSetRenderParametersReturnsA;true;Method setRenderParameters(EventRequest) returns void
-EventResponseWrapper_SIG; setEvent; hasSetEventA;true;Has a setEvent(String, java.io.Serializable) method
-EventResponseWrapper_SIG; setEvent; hasSetEventReturnsA;true;Method setEvent(String, java.io.Serializable) returns void
-EventResponseWrapper_SIG; removePublicRenderParameter; hasRemovePublicRenderParameter;true;Has a removePublicRenderParameter(String) method
-EventResponseWrapper_SIG; removePublicRenderParameter; hasRemovePublicRenderParameterReturns;true;Method removePublicRenderParameter(String) returns void
-EventResponseWrapper_SIG; getResponse; hasGetResponseA;true;Has a getResponse() method
-EventResponseWrapper_SIG; getResponse; hasGetResponseReturnsA;true;Method getResponse() returns PortletResponse
-PortletRequestWrapper; getAttribute; getAttribute;true;Calls wrapped method
-PortletRequestWrapper; getAttributeNames; getAttributeNames;true;Calls wrapped method
-PortletRequestWrapper; getAuthType; getAuthType;true;Calls wrapped method
-PortletRequestWrapper; getContextPath; getContextPath;true;Calls wrapped method
-PortletRequestWrapper; getCookies; getCookies;true;Calls wrapped method
-PortletRequestWrapper; getLocale; getLocale;true;Calls wrapped method
-PortletRequestWrapper; getLocales; getLocales;true;Calls wrapped method
-PortletRequestWrapper; getParameter; getParameter;true;Calls wrapped method
-PortletRequestWrapper; getParameterMap; getParameterMap;true;Calls wrapped method
-PortletRequestWrapper; getParameterNames; getParameterNames;true;Calls wrapped method
-PortletRequestWrapper; getParameterValues; getParameterValues;true;Calls wrapped method
-PortletRequestWrapper; getPortalContext; getPortalContext;true;Calls wrapped method
-PortletRequestWrapper; getPortletMode; getPortletMode;true;Calls wrapped method
-PortletRequestWrapper; getPortletSession; getPortletSessionA;true;Calls wrapped method
-PortletRequestWrapper; getPortletSession; getPortletSessionB;true;Calls wrapped method
-PortletRequestWrapper; getPreferences; getPreferences;true;Calls wrapped method
-PortletRequestWrapper; getProperties; getProperties;true;Calls wrapped method
-PortletRequestWrapper; getProperty; getProperty;true;Calls wrapped method
-PortletRequestWrapper; getPropertyNames; getPropertyNames;true;Calls wrapped method
-PortletRequestWrapper; getRemoteUser; getRemoteUser;true;Calls wrapped method
-PortletRequestWrapper; getRequestedSessionId; getRequestedSessionId;true;Calls wrapped method
-PortletRequestWrapper; getResponseContentType; getResponseContentType;true;Calls wrapped method
-PortletRequestWrapper; getResponseContentTypes; getResponseContentTypes;true;Calls wrapped method
-PortletRequestWrapper; getScheme; getScheme;true;Calls wrapped method
-PortletRequestWrapper; getServerName; getServerName;true;Calls wrapped method
-PortletRequestWrapper; getServerPort; getServerPort;true;Calls wrapped method
-PortletRequestWrapper; getUserPrincipal; getUserPrincipal;true;Calls wrapped method
-PortletRequestWrapper; getWindowID; getWindowID;true;Calls wrapped method
-PortletRequestWrapper; getWindowState; getWindowState;true;Calls wrapped method
-PortletRequestWrapper; isPortletModeAllowed; isPortletModeAllowed;true;Calls wrapped method
-PortletRequestWrapper; isRequestedSessionIdValid; isRequestedSessionIdValid;true;Calls wrapped method
-PortletRequestWrapper; isSecure; isSecure;true;Calls wrapped method
-PortletRequestWrapper; isUserInRole; isUserInRole;true;Calls wrapped method
-PortletRequestWrapper; isWindowStateAllowed; isWindowStateAllowed;true;Calls wrapped method
-PortletRequestWrapper; removeAttribute; removeAttribute;true;Calls wrapped method
-PortletRequestWrapper; setAttribute; setAttribute;true;Calls wrapped method
-PortletRequestWrapper; getRequest; getRequest;true;Returns wrapped PortletRequest object
-PortletRequestWrapper; setRequest; setRequest;true;Allows wrapped PortletRequest object to be set
-PortletRequestWrapper; getPrivateParameterMap; getPrivateParameterMap;true;Calls wrapped method
-PortletRequestWrapper; getPublicParameterMap; getPublicParameterMap;true;Calls wrapped method
-PortletRequestWrapper_SIG; ; implementsPortletRequest;true;Implements PortletRequest
-PortletRequestWrapper_SIG; constructor; constructor;true;Provides constructor PortletRequestWrapper(PortletRequest)
-PortletRequestWrapper_SIG; getAttribute; hasGetAttribute;true;Has a getAttribute(String) method
-PortletRequestWrapper_SIG; getAttribute; hasGetAttributeReturns;true;Method getAttribute(String) returns Object
-PortletRequestWrapper_SIG; getAttributeNames; hasGetAttributeNames;true;Has a getAttributeNames() method
-PortletRequestWrapper_SIG; getAttributeNames; hasGetAttributeNamesReturns;true;Method getAttributeNames() returns java.util.Enumeration
-PortletRequestWrapper_SIG; getAuthType; hasGetAuthType;true;Has a getAuthType() method
-PortletRequestWrapper_SIG; getAuthType; hasGetAuthTypeReturns;true;Method getAuthType() returns String
-PortletRequestWrapper_SIG; getContextPath; hasGetContextPath;true;Has a getContextPath() method
-PortletRequestWrapper_SIG; getContextPath; hasGetContextPathReturns;true;Method getContextPath() returns String
-PortletRequestWrapper_SIG; getLocale; hasGetLocale;true;Has a getLocale() method
-PortletRequestWrapper_SIG; getLocale; hasGetLocaleReturns;true;Method getLocale() returns java.util.Locale
-PortletRequestWrapper_SIG; getLocales; hasGetLocales;true;Has a getLocales() method
-PortletRequestWrapper_SIG; getLocales; hasGetLocalesReturns;true;Method getLocales() returns java.util.Enumeration
-PortletRequestWrapper_SIG; getParameter; hasGetParameter;true;Has a getParameter(String) method
-PortletRequestWrapper_SIG; getParameter; hasGetParameterReturns;true;Method getParameter(String) returns String
-PortletRequestWrapper_SIG; getParameterMap; hasGetParameterMap;true;Has a getParameterMap() method
-PortletRequestWrapper_SIG; getParameterMap; hasGetParameterMapReturns;true;Method getParameterMap() returns java.util.Map
-PortletRequestWrapper_SIG; getParameterNames; hasGetParameterNames;true;Has a getParameterNames() method
-PortletRequestWrapper_SIG; getParameterNames; hasGetParameterNamesReturns;true;Method getParameterNames() returns java.util.Enumeration
-PortletRequestWrapper_SIG; getParameterValues; hasGetParameterValues;true;Has a getParameterValues(String) method
-PortletRequestWrapper_SIG; getParameterValues; hasGetParameterValuesReturns;true;Method getParameterValues(String) returns String[]
-PortletRequestWrapper_SIG; getPortalContext; hasGetPortalContext;true;Has a getPortalContext() method
-PortletRequestWrapper_SIG; getPortalContext; hasGetPortalContextReturns;true;Method getPortalContext() returns PortalContext
-PortletRequestWrapper_SIG; getPortletMode; hasGetPortletMode;true;Has a getPortletMode() method
-PortletRequestWrapper_SIG; getPortletMode; hasGetPortletModeReturns;true;Method getPortletMode() returns PortletMode
-PortletRequestWrapper_SIG; getPortletSession; hasGetPortletSession;true;Has a getPortletSession() method
-PortletRequestWrapper_SIG; getPortletSession; hasGetPortletSessionReturns;true;Method getPortletSession() returns PortletSession
-PortletRequestWrapper_SIG; getPortletSession; hasGetPortletSessionA;true;Has a getPortletSession(boolean) method
-PortletRequestWrapper_SIG; getPortletSession; hasGetPortletSessionReturnsA;true;Method getPortletSession(boolean) returns PortletSession
-PortletRequestWrapper_SIG; getPreferences; hasGetPreferences;true;Has a getPreferences() method
-PortletRequestWrapper_SIG; getPreferences; hasGetPreferencesReturns;true;Method getPreferences() returns PortletPreferences
-PortletRequestWrapper_SIG; getProperties; hasGetProperties;true;Has a getProperties(String) method
-PortletRequestWrapper_SIG; getProperties; hasGetPropertiesReturns;true;Method getProperties(String) returns java.util.Enumeration
-PortletRequestWrapper_SIG; getProperty; hasGetProperty;true;Has a getProperty(String) method
-PortletRequestWrapper_SIG; getProperty; hasGetPropertyReturns;true;Method getProperty(String) returns String
-PortletRequestWrapper_SIG; getPropertyNames; hasGetPropertyNames;true;Has a getPropertyNames() method
-PortletRequestWrapper_SIG; getPropertyNames; hasGetPropertyNamesReturns;true;Method getPropertyNames() returns java.util.Enumeration
-PortletRequestWrapper_SIG; getRemoteUser; hasGetRemoteUser;true;Has a getRemoteUser() method
-PortletRequestWrapper_SIG; getRemoteUser; hasGetRemoteUserReturns;true;Method getRemoteUser() returns String
-PortletRequestWrapper_SIG; getRequestedSessionId; hasGetRequestedSessionId;true;Has a getRequestedSessionId() method
-PortletRequestWrapper_SIG; getRequestedSessionId; hasGetRequestedSessionIdReturns;true;Method getRequestedSessionId() returns String
-PortletRequestWrapper_SIG; getResponseContentType; hasGetResponseContentType;true;Has a getResponseContentType() method
-PortletRequestWrapper_SIG; getResponseContentType; hasGetResponseContentTypeReturns;true;Method getResponseContentType() returns String
-PortletRequestWrapper_SIG; getResponseContentTypes; hasGetResponseContentTypes;true;Has a getResponseContentTypes() method
-PortletRequestWrapper_SIG; getResponseContentTypes; hasGetResponseContentTypesReturns;true;Method getResponseContentTypes() returns java.util.Enumeration
-PortletRequestWrapper_SIG; getScheme; hasGetScheme;true;Has a getScheme() method
-PortletRequestWrapper_SIG; getScheme; hasGetSchemeReturns;true;Method getScheme() returns String
-PortletRequestWrapper_SIG; getServerName; hasGetServerName;true;Has a getServerName() method
-PortletRequestWrapper_SIG; getServerName; hasGetServerNameReturns;true;Method getServerName() returns String
-PortletRequestWrapper_SIG; getServerPort; hasGetServerPort;true;Has a getServerPort() method
-PortletRequestWrapper_SIG; getServerPort; hasGetServerPortReturns;true;Method getServerPort() returns int
-PortletRequestWrapper_SIG; getUserPrincipal; hasGetUserPrincipal;true;Has a getUserPrincipal() method
-PortletRequestWrapper_SIG; getUserPrincipal; hasGetUserPrincipalReturns;true;Method getUserPrincipal() returns java.security.Principal
-PortletRequestWrapper_SIG; getWindowID; hasGetWindowID;true;Has a getWindowID() method
-PortletRequestWrapper_SIG; getWindowID; hasGetWindowIDReturns;true;Method getWindowID() returns String
-PortletRequestWrapper_SIG; getWindowState; hasGetWindowState;true;Has a getWindowState() method
-PortletRequestWrapper_SIG; getWindowState; hasGetWindowStateReturns;true;Method getWindowState() returns WindowState
-PortletRequestWrapper_SIG; isPortletModeAllowed; hasIsPortletModeAllowed;true;Has a isPortletModeAllowed(PortletMode) method
-PortletRequestWrapper_SIG; isPortletModeAllowed; hasIsPortletModeAllowedReturns;true;Method isPortletModeAllowed(PortletMode) returns boolean
-PortletRequestWrapper_SIG; isRequestedSessionIdValid; hasIsRequestedSessionIdValid;true;Has a isRequestedSessionIdValid() method
-PortletRequestWrapper_SIG; isRequestedSessionIdValid; hasIsRequestedSessionIdValidReturns;true;Method isRequestedSessionIdValid() returns boolean
-PortletRequestWrapper_SIG; isSecure; hasIsSecure;true;Has a isSecure() method
-PortletRequestWrapper_SIG; isSecure; hasIsSecureReturns;true;Method isSecure() returns boolean
-PortletRequestWrapper_SIG; isUserInRole; hasIsUserInRole;true;Has a isUserInRole(String) method
-PortletRequestWrapper_SIG; isUserInRole; hasIsUserInRoleReturns;true;Method isUserInRole(String) returns boolean
-PortletRequestWrapper_SIG; isWindowStateAllowed; hasIsWindowStateAllowed;true;Has a isWindowStateAllowed(WindowState) method
-PortletRequestWrapper_SIG; isWindowStateAllowed; hasIsWindowStateAllowedReturns;true;Method isWindowStateAllowed(WindowState) returns boolean
-PortletRequestWrapper_SIG; removeAttribute; hasRemoveAttribute;true;Has a removeAttribute(String) method
-PortletRequestWrapper_SIG; removeAttribute; hasRemoveAttributeReturns;true;Method removeAttribute(String) returns void
-PortletRequestWrapper_SIG; setAttribute; hasSetAttribute;true;Has a setAttribute(String, Object) method
-PortletRequestWrapper_SIG; setAttribute; hasSetAttributeReturns;true;Method setAttribute(String, Object) returns void
-PortletRequestWrapper_SIG; getRequest; hasGetRequest;true;Has a getRequest() method
-PortletRequestWrapper_SIG; getRequest; hasGetRequestReturns;true;Method getRequest() returns PortletRequest
-PortletRequestWrapper_SIG; setRequest; hasSetRequest;true;Has a setRequest(PortletRequest) method
-PortletRequestWrapper_SIG; setRequest; hasSetRequestReturns;true;Method setRequest(PortletRequest) returns void
-PortletRequestWrapper_SIG; getCookies; hasGetCookies;true;Has a getCookies() method
-PortletRequestWrapper_SIG; getCookies; hasGetCookiesReturns;true;Method getCookies() returns javax.servlet.http.Cookie[]
-PortletRequestWrapper_SIG; getPrivateParameterMap; hasGetPrivateParameterMap;true;Has a getPrivateParameterMap() method
-PortletRequestWrapper_SIG; getPrivateParameterMap; hasGetPrivateParameterMapReturns;true;Method getPrivateParameterMap() returns java.util.Map
-PortletRequestWrapper_SIG; getPublicParameterMap; hasGetPublicParameterMap;true;Has a getPublicParameterMap() method
-PortletRequestWrapper_SIG; getPublicParameterMap; hasGetPublicParameterMapReturns;true;Method getPublicParameterMap() returns java.util.Map
-PortletResponseWrapper; addProperty; addPropertyA;true;Calls wrapped method
-PortletResponseWrapper; addProperty; addPropertyB;true;Calls wrapped method
-PortletResponseWrapper; addProperty; addPropertyC;true;Calls wrapped method
-PortletResponseWrapper; encodeURL; encodeURL;true;Calls wrapped method
-PortletResponseWrapper; getNamespace; getNamespace;true;Calls wrapped method
-PortletResponseWrapper; setProperty; setProperty;true;Calls wrapped method
-PortletResponseWrapper; getResponse; getResponse;true;Returns wrapped PortletResponse object
-PortletResponseWrapper; setResponse; setResponse;true;Allows wrapped PortletResponse object to be set
-PortletResponseWrapper; createElement; createElement;true;Calls wrapped method
-PortletResponseWrapper_SIG; ; implementsPortletResponse;true;Implements PortletResponse
-PortletResponseWrapper_SIG; constructor; constructor;true;Provides constructor PortletResponseWrapper(PortletResponse)
-PortletResponseWrapper_SIG; addProperty; hasAddProperty;true;Has a addProperty(String, String) method
-PortletResponseWrapper_SIG; addProperty; hasAddPropertyReturns;true;Method addProperty(String, String) returns void
-PortletResponseWrapper_SIG; encodeURL; hasEncodeURL;true;Has a encodeURL(String) method
-PortletResponseWrapper_SIG; encodeURL; hasEncodeURLReturns;true;Method encodeURL(String) returns String
-PortletResponseWrapper_SIG; getNamespace; hasGetNamespace;true;Has a getNamespace() method
-PortletResponseWrapper_SIG; getNamespace; hasGetNamespaceReturns;true;Method getNamespace() returns String
-PortletResponseWrapper_SIG; setProperty; hasSetProperty;true;Has a setProperty(String, String) method
-PortletResponseWrapper_SIG; setProperty; hasSetPropertyReturns;true;Method setProperty(String, String) returns void
-PortletResponseWrapper_SIG; getResponse; hasGetResponse;true;Has a getResponse() method
-PortletResponseWrapper_SIG; getResponse; hasGetResponseReturns;true;Method getResponse() returns PortletResponse
-PortletResponseWrapper_SIG; setResponse; hasSetResponse;true;Has a setResponse(PortletResponse) method
-PortletResponseWrapper_SIG; setResponse; hasSetResponseReturns;true;Method setResponse(PortletResponse) returns void
-PortletResponseWrapper_SIG; addProperty; hasAddPropertyA;true;Has a addProperty(String, org.w3c.dom.Element) method
-PortletResponseWrapper_SIG; addProperty; hasAddPropertyReturnsA;true;Method addProperty(String, org.w3c.dom.Element) returns void
-PortletResponseWrapper_SIG; createElement; hasCreateElement;true;Has a createElement(String) method
-PortletResponseWrapper_SIG; createElement; hasCreateElementReturns;true;Method createElement(String) returns org.w3c.dom.Element
-PortletResponseWrapper_SIG; addProperty; hasAddPropertyB;true;Has a addProperty(javax.servlet.http.Cookie) method
-PortletResponseWrapper_SIG; addProperty; hasAddPropertyReturnsB;true;Method addProperty(javax.servlet.http.Cookie) returns void
-RenderRequestWrapper; getRequest; getRequest;true;Returns wrapped RenderRequest object
-RenderRequestWrapper; setRequest; setRequest;true;Allows wrapped RenderRequest object to be set
-RenderRequestWrapper; getETag; getETag;true;Calls wrapped method
-RenderRequestWrapper_SIG; ; extendsPortletRequestWrapper;true;Extends PortletRequestWrapper
-RenderRequestWrapper_SIG; ; implementsRenderRequest;true;Implements RenderRequest
-RenderRequestWrapper_SIG; constructor; constructor;true;Provides constructor RenderRequestWrapper(RenderRequest)
-RenderRequestWrapper_SIG; getRequest; hasGetRequest;true;Has a getRequest() method
-RenderRequestWrapper_SIG; getRequest; hasGetRequestReturns;true;Method getRequest() returns RenderRequest
-RenderRequestWrapper_SIG; setRequest; hasSetRequest;true;Has a setRequest(RenderRequest) method
-RenderRequestWrapper_SIG; setRequest; hasSetRequestReturns;true;Method setRequest(RenderRequest) returns void
-RenderRequestWrapper_SIG; getETag; hasGetETag;true;Has a getETag() method
-RenderRequestWrapper_SIG; getETag; hasGetETagReturns;true;Method getETag() returns String
-RenderRequestWrapper_SIG; getRequest; hasGetRequestA;true;Has a getRequest() method
-RenderRequestWrapper_SIG; getRequest; hasGetRequestReturnsA;true;Method getRequest() returns PortletRequest
-RenderResponseWrapper; flushBuffer; flushBuffer;true;Calls wrapped method
-RenderResponseWrapper; getBufferSize; getBufferSize;true;Calls wrapped method
-RenderResponseWrapper; getCharacterEncoding; getCharacterEncoding;true;Calls wrapped method
-RenderResponseWrapper; getContentType; getContentType;true;Calls wrapped method
-RenderResponseWrapper; getLocale; getLocale;true;Calls wrapped method
-RenderResponseWrapper; getPortletOutputStream; getPortletOutputStream;true;Calls wrapped method
-RenderResponseWrapper; getWriter; getWriter;true;Calls wrapped method
-RenderResponseWrapper; isCommitted; isCommitted;true;Calls wrapped method
-RenderResponseWrapper; reset; reset;true;Calls wrapped method
-RenderResponseWrapper; resetBuffer; resetBuffer;true;Calls wrapped method
-RenderResponseWrapper; setBufferSize; setBufferSize;true;Calls wrapped method
-RenderResponseWrapper; setContentType; setContentType;true;Calls wrapped method
-RenderResponseWrapper; setTitle; setTitle;true;Calls wrapped method
-RenderResponseWrapper; getCacheControl; getCacheControl;true;Calls wrapped method
-RenderResponseWrapper; setNextPossiblePortletModes; setNextPossiblePortletModes;true;Calls wrapped method
-RenderResponseWrapper; getResponse; getResponse;true;Calls wrapped method
-RenderResponseWrapper; setResponse; setResponse;true;Calls wrapped method
-RenderResponseWrapper; createActionURL; createActionURL;true;Calls wrapped method
-RenderResponseWrapper; createRenderURL; createRenderURL;true;Calls wrapped method
-RenderResponseWrapper; createResourceURL; createResourceURL;true;Calls wrapped method
-RenderResponseWrapper_SIG; ; extendsPortletResponseWrapper;true;Extends PortletResponseWrapper
-RenderResponseWrapper_SIG; ; implementsRenderResponse;true;Implements RenderResponse
-RenderResponseWrapper_SIG; constructor; constructor;true;Provides constructor RenderResponseWrapper(RenderResponse)
-RenderResponseWrapper_SIG; flushBuffer; hasFlushBuffer;true;Has a flushBuffer() throws java.io.IOException method
-RenderResponseWrapper_SIG; flushBuffer; hasFlushBufferReturns;true;Method flushBuffer() returns void
-RenderResponseWrapper_SIG; getBufferSize; hasGetBufferSize;true;Has a getBufferSize() method
-RenderResponseWrapper_SIG; getBufferSize; hasGetBufferSizeReturns;true;Method getBufferSize() returns int
-RenderResponseWrapper_SIG; getCharacterEncoding; hasGetCharacterEncoding;true;Has a getCharacterEncoding() method
-RenderResponseWrapper_SIG; getCharacterEncoding; hasGetCharacterEncodingReturns;true;Method getCharacterEncoding() returns String
-RenderResponseWrapper_SIG; getContentType; hasGetContentType;true;Has a getContentType() method
-RenderResponseWrapper_SIG; getContentType; hasGetContentTypeReturns;true;Method getContentType() returns String
-RenderResponseWrapper_SIG; getLocale; hasGetLocale;true;Has a getLocale() method
-RenderResponseWrapper_SIG; getLocale; hasGetLocaleReturns;true;Method getLocale() returns java.util.Locale
-RenderResponseWrapper_SIG; getPortletOutputStream; hasGetPortletOutputStream;true;Has a getPortletOutputStream() throws java.io.IOException method
-RenderResponseWrapper_SIG; getPortletOutputStream; hasGetPortletOutputStreamReturns;true;Method getPortletOutputStream() returns java.io.OutputStream
-RenderResponseWrapper_SIG; getWriter; hasGetWriter;true;Has a getWriter() throws java.io.IOException method
-RenderResponseWrapper_SIG; getWriter; hasGetWriterReturns;true;Method getWriter() returns java.io.PrintWriter
-RenderResponseWrapper_SIG; isCommitted; hasIsCommitted;true;Has a isCommitted() method
-RenderResponseWrapper_SIG; isCommitted; hasIsCommittedReturns;true;Method isCommitted() returns boolean
-RenderResponseWrapper_SIG; reset; hasReset;true;Has a reset() method
-RenderResponseWrapper_SIG; reset; hasResetReturns;true;Method reset() returns void
-RenderResponseWrapper_SIG; resetBuffer; hasResetBuffer;true;Has a resetBuffer() method
-RenderResponseWrapper_SIG; resetBuffer; hasResetBufferReturns;true;Method resetBuffer() returns void
-RenderResponseWrapper_SIG; setBufferSize; hasSetBufferSize;true;Has a setBufferSize(int) method
-RenderResponseWrapper_SIG; setBufferSize; hasSetBufferSizeReturns;true;Method setBufferSize(int) returns void
-RenderResponseWrapper_SIG; setContentType; hasSetContentType;true;Has a setContentType(String) method
-RenderResponseWrapper_SIG; setContentType; hasSetContentTypeReturns;true;Method setContentType(String) returns void
-RenderResponseWrapper_SIG; setTitle; hasSetTitle;true;Has a setTitle(String) method
-RenderResponseWrapper_SIG; setTitle; hasSetTitleReturns;true;Method setTitle(String) returns void
-RenderResponseWrapper_SIG; getCacheControl; hasGetCacheControl;true;Has a getCacheControl() method
-RenderResponseWrapper_SIG; getCacheControl; hasGetCacheControlReturns;true;Method getCacheControl() returns CacheControl
-RenderResponseWrapper_SIG; setNextPossiblePortletModes; hasSetNextPossiblePortletModes;true;Has a setNextPossiblePortletModes(java.util.Collection) method
-RenderResponseWrapper_SIG; setNextPossiblePortletModes; hasSetNextPossiblePortletModesReturns;true;Method setNextPossiblePortletModes(java.util.Collection) returns void
-RenderResponseWrapper_SIG; getResponse; hasGetResponse;true;Has a getResponse() method
-RenderResponseWrapper_SIG; getResponse; hasGetResponseReturns;true;Method getResponse() returns RenderResponse
-RenderResponseWrapper_SIG; setResponse; hasSetResponse;true;Has a setResponse(RenderResponse) method
-RenderResponseWrapper_SIG; setResponse; hasSetResponseReturns;true;Method setResponse(RenderResponse) returns void
-RenderResponseWrapper_SIG; createActionURL; hasCreateActionURL;true;Has a createActionURL() throws IllegalStateException method
-RenderResponseWrapper_SIG; createActionURL; hasCreateActionURLReturns;true;Method createActionURL() returns PortletURL
-RenderResponseWrapper_SIG; createRenderURL; hasCreateRenderURL;true;Has a createRenderURL() throws IllegalStateException method
-RenderResponseWrapper_SIG; createRenderURL; hasCreateRenderURLReturns;true;Method createRenderURL() returns PortletURL
-RenderResponseWrapper_SIG; createResourceURL; hasCreateResourceURL;true;Has a createResourceURL() throws IllegalStateException method
-RenderResponseWrapper_SIG; createResourceURL; hasCreateResourceURLReturns;true;Method createResourceURL() returns ResourceURL
-RenderResponseWrapper_SIG; getResponse; hasGetResponseA;true;Has a getResponse() method
-RenderResponseWrapper_SIG; getResponse; hasGetResponseReturnsA;true;Method getResponse() returns PortletResponse
-ResourceRequestWrapper; getPortletInputStream; getPortletInputStream;true;Calls wrapped method
-ResourceRequestWrapper; getReader; getReader;true;Calls wrapped method
-ResourceRequestWrapper; setCharacterEncoding; setCharacterEncoding;true;Calls wrapped method
-ResourceRequestWrapper; getRequest; getRequest;true;Returns wrapped ResourceRequest object
-ResourceRequestWrapper; setRequest; setRequest;true;Allows wrapped ResourceRequest object to be set
-ResourceRequestWrapper; getCharacterEncoding; getCharacterEncoding;true;Calls wrapped method
-ResourceRequestWrapper; getContentLength; getContentLength;true;Calls wrapped method
-ResourceRequestWrapper; getContentType; getContentType;true;Calls wrapped method
-ResourceRequestWrapper; getETag; getETag;true;Calls wrapped method
-ResourceRequestWrapper; getMethod; getMethod;true;Calls wrapped method
-ResourceRequestWrapper; getResourceID; getResourceID;true;Calls wrapped method
-ResourceRequestWrapper; getPrivateRenderParameterMap; getPrivateRenderParameterMap;true;Calls wrapped method
-ResourceRequestWrapper; getCacheability; getCacheability;true;Calls wrapped method
-ResourceRequestWrapper_SIG; ; extendsPortletRequestWrapper;true;Extends PortletRequestWrapper
-ResourceRequestWrapper_SIG; ; implementsResourceRequest;true;Implements ResourceRequest
-ResourceRequestWrapper_SIG; constructor; constructor;true;Provides constructor ResourceRequestWrapper(ResourceRequest)
-ResourceRequestWrapper_SIG; getPortletInputStream; hasGetPortletInputStream;true;Has a getPortletInputStream() throws java.io.IOException method
-ResourceRequestWrapper_SIG; getPortletInputStream; hasGetPortletInputStreamReturns;true;Method getPortletInputStream() returns java.io.InputStream
-ResourceRequestWrapper_SIG; getReader; hasGetReader;true;Has a getReader() throws java.io.UnsupportedEncodingException, java.io.IOException method
-ResourceRequestWrapper_SIG; getReader; hasGetReaderReturns;true;Method getReader() returns java.io.BufferedReader
-ResourceRequestWrapper_SIG; setCharacterEncoding; hasSetCharacterEncoding;true;Has a setCharacterEncoding(String) throws java.io.UnsupportedEncodingException method
-ResourceRequestWrapper_SIG; setCharacterEncoding; hasSetCharacterEncodingReturns;true;Method setCharacterEncoding(String) returns void
-ResourceRequestWrapper_SIG; getRequest; hasGetRequest;true;Has a getRequest() method
-ResourceRequestWrapper_SIG; getRequest; hasGetRequestReturns;true;Method getRequest() returns ResourceRequest
-ResourceRequestWrapper_SIG; setRequest; hasSetRequest;true;Has a setRequest(ResourceRequest) method
-ResourceRequestWrapper_SIG; setRequest; hasSetRequestReturns;true;Method setRequest(ResourceRequest) returns void
-ResourceRequestWrapper_SIG; getCharacterEncoding; hasGetCharacterEncoding;true;Has a getCharacterEncoding() method
-ResourceRequestWrapper_SIG; getCharacterEncoding; hasGetCharacterEncodingReturns;true;Method getCharacterEncoding() returns String
-ResourceRequestWrapper_SIG; getContentLength; hasGetContentLength;true;Has a getContentLength() method
-ResourceRequestWrapper_SIG; getContentLength; hasGetContentLengthReturns;true;Method getContentLength() returns int
-ResourceRequestWrapper_SIG; getContentType; hasGetContentType;true;Has a getContentType() method
-ResourceRequestWrapper_SIG; getContentType; hasGetContentTypeReturns;true;Method getContentType() returns String
-ResourceRequestWrapper_SIG; getETag; hasGetETag;true;Has a getETag() method
-ResourceRequestWrapper_SIG; getETag; hasGetETagReturns;true;Method getETag() returns String
-ResourceRequestWrapper_SIG; getMethod; hasGetMethod;true;Has a getMethod() method
-ResourceRequestWrapper_SIG; getMethod; hasGetMethodReturns;true;Method getMethod() returns String
-ResourceRequestWrapper_SIG; getResourceID; hasGetResourceID;true;Has a getResourceID() method
-ResourceRequestWrapper_SIG; getResourceID; hasGetResourceIDReturns;true;Method getResourceID() returns String
-ResourceRequestWrapper_SIG; getPrivateRenderParameterMap; hasGetPrivateRenderParameterMap;true;Has a getPrivateRenderParameterMap() method
-ResourceRequestWrapper_SIG; getPrivateRenderParameterMap; hasGetPrivateRenderParameterMapReturns;true;Method getPrivateRenderParameterMap() returns java.util.Map
-ResourceRequestWrapper_SIG; getCacheability; hasGetCacheability;true;Has a getCacheability() method
-ResourceRequestWrapper_SIG; getCacheability; hasGetCacheabilityReturns;true;Method getCacheability() returns String
-ResourceRequestWrapper_SIG; getRequest; hasGetRequestA;true;Has a getRequest() method
-ResourceRequestWrapper_SIG; getRequest; hasGetRequestReturnsA;true;Method getRequest() returns PortletRequest
-ResourceResponseWrapper; flushBuffer; flushBuffer;true;Calls wrapped method
-ResourceResponseWrapper; getBufferSize; getBufferSize;true;Calls wrapped method
-ResourceResponseWrapper; getCharacterEncoding; getCharacterEncoding;true;Calls wrapped method
-ResourceResponseWrapper; getContentType; getContentType;true;Calls wrapped method
-ResourceResponseWrapper; getLocale; getLocale;true;Calls wrapped method
-ResourceResponseWrapper; getPortletOutputStream; getPortletOutputStream;true;Calls wrapped method
-ResourceResponseWrapper; getWriter; getWriter;true;Calls wrapped method
-ResourceResponseWrapper; isCommitted; isCommitted;true;Calls wrapped method
-ResourceResponseWrapper; reset; reset;true;Calls wrapped method
-ResourceResponseWrapper; resetBuffer; resetBuffer;true;Calls wrapped method
-ResourceResponseWrapper; setBufferSize; setBufferSize;true;Calls wrapped method
-ResourceResponseWrapper; setContentType; setContentType;true;Calls wrapped method
-ResourceResponseWrapper; getCacheControl; getCacheControl;true;Calls wrapped method
-ResourceResponseWrapper; setCharacterEncoding; setCharacterEncoding;true;Calls wrapped method
-ResourceResponseWrapper; setLocale; setLocale;true;Calls wrapped method
-ResourceResponseWrapper; setContentLength; setContentLength;true;Calls wrapped method
-ResourceResponseWrapper; getResponse; getResponse;true;Returns wrapped RespurceResponse object
-ResourceResponseWrapper; setResponse; setResponse;true;Allows wrapped ResourceResponse object to be set
-ResourceResponseWrapper; createActionURL; createActionURL;true;Calls wrapped method
-ResourceResponseWrapper; createRenderURL; createRenderURL;true;Calls wrapped method
-ResourceResponseWrapper; createResourceURL; createResourceURL;true;Calls wrapped method
-ResourceResponseWrapper_SIG; ; extendsPortletResponseWrapper;true;Extends PortletResponseWrapper
-ResourceResponseWrapper_SIG; ; implementsResourceResponse;true;Implements ResourceResponse
-ResourceResponseWrapper_SIG; constructor; constructor;true;Provides constructor ResourceResponseWrapper(ResourceResponse)
-ResourceResponseWrapper_SIG; flushBuffer; hasFlushBuffer;true;Has a flushBuffer() throws java.io.IOException method
-ResourceResponseWrapper_SIG; flushBuffer; hasFlushBufferReturns;true;Method flushBuffer() returns void
-ResourceResponseWrapper_SIG; getBufferSize; hasGetBufferSize;true;Has a getBufferSize() method
-ResourceResponseWrapper_SIG; getBufferSize; hasGetBufferSizeReturns;true;Method getBufferSize() returns int
-ResourceResponseWrapper_SIG; getCharacterEncoding; hasGetCharacterEncoding;true;Has a getCharacterEncoding() method
-ResourceResponseWrapper_SIG; getCharacterEncoding; hasGetCharacterEncodingReturns;true;Method getCharacterEncoding() returns String
-ResourceResponseWrapper_SIG; getContentType; hasGetContentType;true;Has a getContentType() method
-ResourceResponseWrapper_SIG; getContentType; hasGetContentTypeReturns;true;Method getContentType() returns String
-ResourceResponseWrapper_SIG; getLocale; hasGetLocale;true;Has a getLocale() method
-ResourceResponseWrapper_SIG; getLocale; hasGetLocaleReturns;true;Method getLocale() returns java.util.Locale
-ResourceResponseWrapper_SIG; getPortletOutputStream; hasGetPortletOutputStream;true;Has a getPortletOutputStream() throws java.io.IOException method
-ResourceResponseWrapper_SIG; getPortletOutputStream; hasGetPortletOutputStreamReturns;true;Method getPortletOutputStream() returns java.io.OutputStream
-ResourceResponseWrapper_SIG; getWriter; hasGetWriter;true;Has a getWriter() throws java.io.IOException method
-ResourceResponseWrapper_SIG; getWriter; hasGetWriterReturns;true;Method getWriter() returns java.io.PrintWriter
-ResourceResponseWrapper_SIG; isCommitted; hasIsCommitted;true;Has a isCommitted() method
-ResourceResponseWrapper_SIG; isCommitted; hasIsCommittedReturns;true;Method isCommitted() returns boolean
-ResourceResponseWrapper_SIG; reset; hasReset;true;Has a reset() method
-ResourceResponseWrapper_SIG; reset; hasResetReturns;true;Method reset() returns void
-ResourceResponseWrapper_SIG; resetBuffer; hasResetBuffer;true;Has a resetBuffer() method
-ResourceResponseWrapper_SIG; resetBuffer; hasResetBufferReturns;true;Method resetBuffer() returns void
-ResourceResponseWrapper_SIG; setBufferSize; hasSetBufferSize;true;Has a setBufferSize(int) method
-ResourceResponseWrapper_SIG; setBufferSize; hasSetBufferSizeReturns;true;Method setBufferSize(int) returns void
-ResourceResponseWrapper_SIG; setContentType; hasSetContentType;true;Has a setContentType(String) method
-ResourceResponseWrapper_SIG; setContentType; hasSetContentTypeReturns;true;Method setContentType(String) returns void
-ResourceResponseWrapper_SIG; getCacheControl; hasGetCacheControl;true;Has a getCacheControl() method
-ResourceResponseWrapper_SIG; getCacheControl; hasGetCacheControlReturns;true;Method getCacheControl() returns CacheControl
-ResourceResponseWrapper_SIG; setCharacterEncoding; hasSetCharacterEncoding;true;Has a setCharacterEncoding(String) method
-ResourceResponseWrapper_SIG; setCharacterEncoding; hasSetCharacterEncodingReturns;true;Method setCharacterEncoding(String) returns void
-ResourceResponseWrapper_SIG; setLocale; hasSetLocale;true;Has a setLocale(java.util.Locale) method
-ResourceResponseWrapper_SIG; setLocale; hasSetLocaleReturns;true;Method setLocale(java.util.Locale) returns void
-ResourceResponseWrapper_SIG; setContentLength; hasSetContentLength;true;Has a setContentLength(int) method
-ResourceResponseWrapper_SIG; setContentLength; hasSetContentLengthReturns;true;Method setContentLength(int) returns void
-ResourceResponseWrapper_SIG; getResponse; hasGetResponse;true;Has a getResponse() method
-ResourceResponseWrapper_SIG; getResponse; hasGetResponseReturns;true;Method getResponse() returns ResourceResponse
-ResourceResponseWrapper_SIG; setResponse; hasSetResponse;true;Has a setResponse(ResourceResponse) method
-ResourceResponseWrapper_SIG; setResponse; hasSetResponseReturns;true;Method setResponse(ResourceResponse) returns void
-ResourceResponseWrapper_SIG; createActionURL; hasCreateActionURL;true;Has a createActionURL() throws IllegalStateException method
-ResourceResponseWrapper_SIG; createActionURL; hasCreateActionURLReturns;true;Method createActionURL() returns PortletURL
-ResourceResponseWrapper_SIG; createRenderURL; hasCreateRenderURL;true;Has a createRenderURL() throws IllegalStateException method
-ResourceResponseWrapper_SIG; createRenderURL; hasCreateRenderURLReturns;true;Method createRenderURL() returns PortletURL
-ResourceResponseWrapper_SIG; createResourceURL; hasCreateResourceURL;true;Has a createResourceURL() throws IllegalStateException method
-ResourceResponseWrapper_SIG; createResourceURL; hasCreateResourceURLReturns;true;Method createResourceURL() returns ResourceURL
-ResourceResponseWrapper_SIG; getResponse; hasGetResponseA;true;Has a getResponse() method
-ResourceResponseWrapper_SIG; getResponse; hasGetResponseReturnsA;true;Method getResponse() returns PortletResponse
-Request Tests;;;;
-PortletRequest; USER_INFO; fieldUSER_INFO;true;Has String field USER_INFO with value of "javax.portlet.userinfo"
-PortletRequest; CCPP_PROFILE; fieldCCPP_PROFILE;true;Has String field CCPP_PROFILE with value of "javax.portlet.ccpp"
-PortletRequest; BASIC_AUTH; fieldBASIC_AUTH;true;Has String field BASIC_AUTH with value of "BASIC"
-PortletRequest; FORM_AUTH; fieldFORM_AUTH;true;Has String field FORM_AUTH with value of "FORM"
-PortletRequest; CLIENT_CERT_AUTH; fieldCLIENT_CERT_AUTH;true;Has String field CLIENT_CERT_AUTH with value of "CLIENT_CERT"
-PortletRequest; DIGEST_AUTH; fieldDIGEST_AUTH;true;Has String field DIGEST_AUTH with value of "DIGEST"
-PortletRequest; ACTION_PHASE; fieldACTION_PHASE;true;Has String field ACTION_PHASE with value of "ACTION_PHASE"
-PortletRequest; EVENT_PHASE; fieldEVENT_PHASE;true;Has String field EVENT_PHASE with value of "EVENT_PHASE"
-PortletRequest; RENDER_PHASE; fieldRENDER_PHASE;true;Has String field RENDER_PHASE with value of "RENDER_PHASE"
-PortletRequest; RESOURCE_PHASE; fieldRESOURCE_PHASE;true;Has String field RESOURCE_PHASE with value of "RESOURCE_PHASE"
-PortletRequest; LIFECYCLE_PHASE; fieldLIFECYCLE_PHASE;true;Has String field LIFECYCLE_PHASE with value of "javax.portlet.lifecycle_phase"
-PortletRequest; RENDER_PART; fieldRENDER_PART;true;Has String field RENDER_PART with value of "javax.portlet.render_part"
-PortletRequest; RENDER_HEADERS; fieldRENDER_HEADERS;true;Has String field RENDER_HEADERS with value of "RENDER_HEADERS"
-PortletRequest; RENDER_MARKUP; fieldRENDER_MARKUP;true;Has String field RENDER_MARKUP with value of "RENDER_MARKUP"
-PortletRequest; ACTION_SCOPE_ID; fieldACTION_SCOPE_ID;true;Has String field ACTION_SCOPE_ID with value of "javax.portlet.as"
-PortletRequest; isWindowStateAllowed; isWindowStateAllowed1;true;Returns true if the specified WindowState is allowed
-PortletRequest; isWindowStateAllowed; isWindowStateAllowed2;true;Returns false if the specified WindowState is not allowed
-PortletRequest; isPortletModeAllowed; isPortletModeAllowed1;true;Returns true if the specified PortletMode is allowed
-PortletRequest; isPortletModeAllowed; isPortletModeAllowed2;true;Returns false if the specified PortletMode is not allowed
-PortletRequest; getPortletMode; getPortletMode;true;Returns current PortletMode
-PortletRequest; getWindowState; getWindowState;true;Returns current WindowState
-PortletRequest; getPreferences; getPreferences;true;Returns the PortletPreferences object associated with the portlet
-PortletRequest; getPortletSession; getPortletSessionA1;true;Returns current PortletSession if one already exists
-PortletRequest; getPortletSession; getPortletSessionA2;true;Returns new PortletSession if one does not already exist
-PortletRequest; getPortletSession; getPortletSessionB1;true;If input flag is true, returns current PortletSession if one already exists
-PortletRequest; getPortletSession; getPortletSessionB2;true;If input flag is true, returns new PortletSession if one does not already exist
-PortletRequest; getPortletSession; getPortletSessionB3;true;If input flag is false, returns current PortletSession if one already exists
-PortletRequest; getPortletSession; getPortletSessionB4;true;If input flag is false, returns null if one does not already exist
-PortletRequest; getProperty; getProperty1;true;If specified request property exists, returns its value
-PortletRequest; getProperty; getProperty2;true;If specified request property does not exist, returns null
-PortletRequest; getProperty; getProperty3;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getProperties; getProperties1;true;If specified request property exists, returns its values as an Enumeration
-PortletRequest; getProperties; getProperties2;true;If specified request property does not exist, returns an empty Enumeration
-PortletRequest; getProperties; getProperties3;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getPropertyNames; getPropertyNames1;true;Returns an Enumeration of all request property names
-PortletRequest; getPropertyNames; getPropertyNames2;true;Returns an empty Enumeration if there are no request properties defined
-PortletRequest; getPortalContext; getPortalContext;true;Returns the context of the portal
-PortletRequest; getAuthType; getAuthType1;true;Returns a String indicating the authentication type if the request was authenticated
-PortletRequest; getAuthType; getAuthType2;true;Returns null if the request was not authenticated
-PortletRequest; getContextPath; getContextPath1;true;Returns a String representing the context path associated with the portlet
-PortletRequest; getContextPath; getContextPath2;true;Returns an empty String if the portlet is deployed in the default context
-PortletRequest; getContextPath; getContextPath3;true;If the context path is not empty, it must start with "/" and may not end with "/"
-PortletRequest; getRemoteUser; getRemoteUser1;true;Returns a String representing the login of the user if the request is authenticated
-PortletRequest; getRemoteUser; getRemoteUser2;true;Returns null if the request has not been authenticated
-PortletRequest; getUserPrincipal; getUserPrincipal1;true;Returns a java.security.Principal object representing the user if the request has been authenticated
-PortletRequest; getUserPrincipal; getUserPrincipal2;true;Returns null if the request has not been authenticated
-PortletRequest; isUserInRole; isUserInRole1;true;Returns true if the authenticated user is in the specified role
-PortletRequest; isUserInRole; isUserInRole2;true;Returns false if the authenticated user is not in the specified role
-PortletRequest; isUserInRole; isUserInRole3;true;Returns true if the user is not authenticated
-PortletRequest; getAttribute; getAttribute1;true;Returns a java.lang.Object for the specified attribute name
-PortletRequest; getAttribute; getAttribute2;true;Returns null if no attribute with the specified name exists
-PortletRequest; getAttribute; getAttribute3;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getAttributeNames; getAttributeNames1;true;Returns a java.util.Enumeration<java.lang.String> of the available attribute names
-PortletRequest; getAttributeNames; getAttributeNames2;true;Returns an empty Enumeration if there are no attributes available
-PortletRequest; getParameter; getParameter1;true;Returns String value of parameter specified by the name
-PortletRequest; getParameter; getParameter2;true;Returns String value of a public render parameter specified by the name
-PortletRequest; getParameter; getParameter3;true;Returns null if no parameter exists for the specified name
-PortletRequest; getParameter; getParameter4;true;Returns first String value from values array if use with a multivalued parameter
-PortletRequest; getParameter; getParameter5;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getParameterNames; getParameterNames1;true;Returns a java.util.Enumeration<java.lang.String> of the available parameter names
-PortletRequest; getParameterNames; getParameterNames2;true;Returns an empty Enumeration if there are no parameters available
-PortletRequest; getParameterValues; getParameterValues1;true;Returns String[] value of parameter specified by the name
-PortletRequest; getParameterValues; getParameterValues2;true;Returns String[] value of a public render parameter specified by the name
-PortletRequest; getParameterValues; getParameterValues3;true;Returns null if no parameter exists for the specified name
-PortletRequest; getParameterValues; getParameterValues4;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getParameterMap; getParameterMap1;true;Returns an java.util.Map<java.lang.String,java.lang.String[]> object for the parameter names and values if parameters are available
-PortletRequest; getParameterMap; getParameterMap2;true;The returned map contains all public and private parameters for the request
-PortletRequest; getParameterMap; getParameterMap3;true;Returns an empty map if no parameters exist
-PortletRequest; isSecure; isSecure1;true;Returns true if the request was made through a secure channel
-PortletRequest; isSecure; isSecure2;true;Returns false if the request was not made through a secure channel
-PortletRequest; setAttribute; setAttribute1;true;Stores an attribute object under the specified name in the request
-PortletRequest; setAttribute; setAttribute2;true;Removes the attribute by the specified name if the object is null
-PortletRequest; setAttribute; setAttribute3;true;Throws IllegalArgumentException if the name is null
-PortletRequest; removeAttribute; removeAttribute1;true;Removes the attribute specified by the name from the request
-PortletRequest; removeAttribute; removeAttribute2;true;Throws IllegalArgumentException if the name is null
-PortletRequest; getRequestedSessionId; getRequestedSessionId1;true;Returns the session ID indicated in the client request
-PortletRequest; getRequestedSessionId; getRequestedSessionId2;true;Returns null if no session ID was indicated in the client request
-PortletRequest; isRequestedSessionIdValid; isRequestedSessionIdValid1;true;Returns true if the session ID is valid
-PortletRequest; isRequestedSessionIdValid; isRequestedSessionIdValid2;true;Returns false if the session ID is not valid
-PortletRequest; getResponseContentType; getResponseContentType1;true;Returns a String representing the portal preferred content type for the response if the content type is defined in the portlet descriptor
-PortletRequest; getResponseContentType; getResponseContentType2;true;Returns ??? if the content type is not defined in the portlet descriptor
-PortletRequest; getResponseContentTypes; getResponseContentTypes1;true;Returns an java.util.Enumeration<java.lang.String> object representing the portal preferred content types for the response if the content types are defined in the portlet descriptor
-PortletRequest; getResponseContentTypes; getResponseContentTypes2;true;Returns ??? if the content types are not defined in the portlet descriptor
-PortletRequest; getLocale; getLocale;true;Returns an java.util.Locale object representing the preferred Locale for the response
-PortletRequest; getLocales; getLocales;true;Returns an java.util.Enumeration<java.util.Locale> of the Locales in which the portal will accept content
-PortletRequest; getScheme; getScheme;true;Returns a String value representing the scheme name for the request
-PortletRequest; getServerName; getServerName;true;Returns a String value representing the host name for the request
-PortletRequest; getServerPort; getServerPort;true;Returns an int value representing the port number for the request
-PortletRequest; getWindowID; getWindowID;true;Returns a String value representing the portlet window ID
-PortletRequest; getCookies; getCookies1;true;Returns a javax.servlet.http.Cookie[] array containing the cookies for this request
-PortletRequest; getCookies; getCookies2;true;Returns null if no cookies are present
-PortletRequest; getPrivateParameterMap; getPrivateParameterMap1;true;Returns an java.util.Map<java.lang.String,java.lang.String[]> object for the private parameter names and values if available
-PortletRequest; getPrivateParameterMap; getPrivateParameterMap2;true;The returned map is immutable
-PortletRequest; getPrivateParameterMap; getPrivateParameterMap3;true;Returns an empty map if no private parameters exist
-PortletRequest; getPublicParameterMap; getPublicParameterMap1;true;Returns an java.util.Map<java.lang.String,java.lang.String[]> object for the public parameter names and values if available
-PortletRequest; getPublicParameterMap; getPublicParameterMap2;true;The returned map is immutable
-PortletRequest; getPublicParameterMap; getPublicParameterMap3;true;Returns an empty map if no public parameters exist
-PortletRequest_SIG; USER_INFO; fieldUSER_INFO;true;Has String field USER_INFO
-PortletRequest_SIG; CCPP_PROFILE; fieldCCPP_PROFILE;true;Has String field CCPP_PROFILE
-PortletRequest_SIG; BASIC_AUTH; fieldBASIC_AUTH;true;Has String field BASIC_AUTH
-PortletRequest_SIG; FORM_AUTH; fieldFORM_AUTH;true;Has String field FORM_AUTH
-PortletRequest_SIG; CLIENT_CERT_AUTH; fieldCLIENT_CERT_AUTH;true;Has String field CLIENT_CERT_AUTH
-PortletRequest_SIG; DIGEST_AUTH; fieldDIGEST_AUTH;true;Has String field DIGEST_AUTH
-PortletRequest_SIG; ACTION_PHASE; fieldACTION_PHASE;true;Has String field ACTION_PHASE
-PortletRequest_SIG; EVENT_PHASE; fieldEVENT_PHASE;true;Has String field EVENT_PHASE
-PortletRequest_SIG; RENDER_PHASE; fieldRENDER_PHASE;true;Has String field RENDER_PHASE
-PortletRequest_SIG; RESOURCE_PHASE; fieldRESOURCE_PHASE;true;Has String field RESOURCE_PHASE
-PortletRequest_SIG; LIFECYCLE_PHASE; fieldLIFECYCLE_PHASE;true;Has String field LIFECYCLE_PHASE
-PortletRequest_SIG; RENDER_PART; fieldRENDER_PART;true;Has String field RENDER_PART
-PortletRequest_SIG; RENDER_HEADERS; fieldRENDER_HEADERS;true;Has String field RENDER_HEADERS
-PortletRequest_SIG; RENDER_MARKUP; fieldRENDER_MARKUP;true;Has String field RENDER_MARKUP
-PortletRequest_SIG; ACTION_SCOPE_ID; fieldACTION_SCOPE_ID;true;Has String field ACTION_SCOPE_ID
-PortletRequest_SIG; isWindowStateAllowed; hasIsWindowStateAllowed;true;Has a isWindowStateAllowed(WindowState) method
-PortletRequest_SIG; isWindowStateAllowed; hasIsWindowStateAllowedReturns;true;Method isWindowStateAllowed(WindowState) returns boolean
-PortletRequest_SIG; isPortletModeAllowed; hasIsPortletModeAllowed;true;Has a isPortletModeAllowed(PortletMode) method
-PortletRequest_SIG; isPortletModeAllowed; hasIsPortletModeAllowedReturns;true;Method isPortletModeAllowed(PortletMode) returns boolean
-PortletRequest_SIG; getPortletMode; hasGetPortletMode;true;Has a getPortletMode() method
-PortletRequest_SIG; getPortletMode; hasGetPortletModeReturns;true;Method getPortletMode() returns PortletMode
-PortletRequest_SIG; getWindowState; hasGetWindowState;true;Has a getWindowState() method
-PortletRequest_SIG; getWindowState; hasGetWindowStateReturns;true;Method getWindowState() returns WindowState
-PortletRequest_SIG; getPreferences; hasGetPreferences;true;Has a getPreferences() method
-PortletRequest_SIG; getPreferences; hasGetPreferencesReturns;true;Method getPreferences() returns PortletPreferences
-PortletRequest_SIG; getPortletSession; hasGetPortletSession;true;Has a getPortletSession() method
-PortletRequest_SIG; getPortletSession; hasGetPortletSessionReturns;true;Method getPortletSession() returns PortletSession
-PortletRequest_SIG; getPortletSession; hasGetPortletSessionA;true;Has a getPortletSession(boolean) method
-PortletRequest_SIG; getPortletSession; hasGetPortletSessionReturnsA;true;Method getPortletSession(boolean) returns PortletSession
-PortletRequest_SIG; getProperty; hasGetProperty;true;Has a getProperty(String) method
-PortletRequest_SIG; getProperty; hasGetPropertyReturns;true;Method getProperty(String) returns String
-PortletRequest_SIG; getProperties; hasGetProperties;true;Has a getProperties(String) method
-PortletRequest_SIG; getProperties; hasGetPropertiesReturns;true;Method getProperties(String) returns java.util.Enumeration
-PortletRequest_SIG; getPropertyNames; hasGetPropertyNames;true;Has a getPropertyNames() method
-PortletRequest_SIG; getPropertyNames; hasGetPropertyNamesReturns;true;Method getPropertyNames() returns java.util.Enumeration
-PortletRequest_SIG; getPortalContext; hasGetPortalContext;true;Has a getPortalContext() method
-PortletRequest_SIG; getPortalContext; hasGetPortalContextReturns;true;Method getPortalContext() returns PortalContext
-PortletRequest_SIG; getAuthType; hasGetAuthType;true;Has a getAuthType() method
-PortletRequest_SIG; getAuthType; hasGetAuthTypeReturns;true;Method getAuthType() returns String
-PortletRequest_SIG; getContextPath; hasGetContextPath;true;Has a getContextPath() method
-PortletRequest_SIG; getContextPath; hasGetContextPathReturns;true;Method getContextPath() returns String
-PortletRequest_SIG; getRemoteUser; hasGetRemoteUser;true;Has a getRemoteUser() method
-PortletRequest_SIG; getRemoteUser; hasGetRemoteUserReturns;true;Method getRemoteUser() returns String
-PortletRequest_SIG; getUserPrincipal; hasGetUserPrincipal;true;Has a getUserPrincipal() method
-PortletRequest_SIG; getUserPrincipal; hasGetUserPrincipalReturns;true;Method getUserPrincipal() returns java.security.Principal
-PortletRequest_SIG; isUserInRole; hasIsUserInRole;true;Has a isUserInRole(String) method
-PortletRequest_SIG; isUserInRole; hasIsUserInRoleReturns;true;Method isUserInRole(String) returns boolean
-PortletRequest_SIG; getAttribute; hasGetAttribute;true;Has a getAttribute(String) method
-PortletRequest_SIG; getAttribute; hasGetAttributeReturns;true;Method getAttribute(String) returns Object
-PortletRequest_SIG; getAttributeNames; hasGetAttributeNames;true;Has a getAttributeNames() method
-PortletRequest_SIG; getAttributeNames; hasGetAttributeNamesReturns;true;Method getAttributeNames() returns java.util.Enumeration
-PortletRequest_SIG; getParameter; hasGetParameter;true;Has a getParameter(String) method
-PortletRequest_SIG; getParameter; hasGetParameterReturns;true;Method getParameter(String) returns String
-PortletRequest_SIG; getParameterNames; hasGetParameterNames;true;Has a getParameterNames() method
-PortletRequest_SIG; getParameterNames; hasGetParameterNamesReturns;true;Method getParameterNames() returns java.util.Enumeration
-PortletRequest_SIG; getParameterValues; hasGetParameterValues;true;Has a getParameterValues(String) method
-PortletRequest_SIG; getParameterValues; hasGetParameterValuesReturns;true;Method getParameterValues(String) returns String[]
-PortletRequest_SIG; getParameterMap; hasGetParameterMap;true;Has a getParameterMap() method
-PortletRequest_SIG; getParameterMap; hasGetParameterMapReturns;true;Method getParameterMap() returns java.util.Map
-PortletRequest_SIG; isSecure; hasIsSecure;true;Has a isSecure() method
-PortletRequest_SIG; isSecure; hasIsSecureReturns;true;Method isSecure() returns boolean
-PortletRequest_SIG; setAttribute; hasSetAttribute;true;Has a setAttribute(String, Object) method
-PortletRequest_SIG; setAttribute; hasSetAttributeReturns;true;Method setAttribute(String, Object) returns void
-PortletRequest_SIG; removeAttribute; hasRemoveAttribute;true;Has a removeAttribute(String) method
-PortletRequest_SIG; removeAttribute; hasRemoveAttributeReturns;true;Method removeAttribute(String) returns void
-PortletRequest_SIG; getRequestedSessionId; hasGetRequestedSessionId;true;Has a getRequestedSessionId() method
-PortletRequest_SIG; getRequestedSessionId; hasGetRequestedSessionIdReturns;true;Method getRequestedSessionId() returns String
-PortletRequest_SIG; isRequestedSessionIdValid; hasIsRequestedSessionIdValid;true;Has a isRequestedSessionIdValid() method
-PortletRequest_SIG; isRequestedSessionIdValid; hasIsRequestedSessionIdValidReturns;true;Method isRequestedSessionIdValid() returns boolean
-PortletRequest_SIG; getResponseContentType; hasGetResponseContentType;true;Has a getResponseContentType() method
-PortletRequest_SIG; getResponseContentType; hasGetResponseContentTypeReturns;true;Method getResponseContentType() returns String
-PortletRequest_SIG; getResponseContentTypes; hasGetResponseContentTypes;true;Has a getResponseContentTypes() method
-PortletRequest_SIG; getResponseContentTypes; hasGetResponseContentTypesReturns;true;Method getResponseContentTypes() returns java.util.Enumeration
-PortletRequest_SIG; getLocale; hasGetLocale;true;Has a getLocale() method
-PortletRequest_SIG; getLocale; hasGetLocaleReturns;true;Method getLocale() returns java.util.Locale
-PortletRequest_SIG; getLocales; hasGetLocales;true;Has a getLocales() method
-PortletRequest_SIG; getLocales; hasGetLocalesReturns;true;Method getLocales() returns java.util.Enumeration
-PortletRequest_SIG; getScheme; hasGetScheme;true;Has a getScheme() method
-PortletRequest_SIG; getScheme; hasGetSchemeReturns;true;Method getScheme() returns String
-PortletRequest_SIG; getServerName; hasGetServerName;true;Has a getServerName() method
-PortletRequest_SIG; getServerName; hasGetServerNameReturns;true;Method getServerName() returns String
-PortletRequest_SIG; getServerPort; hasGetServerPort;true;Has a getServerPort() method
-PortletRequest_SIG; getServerPort; hasGetServerPortReturns;true;Method getServerPort() returns int
-PortletRequest_SIG; getWindowID; hasGetWindowID;true;Has a getWindowID() method
-PortletRequest_SIG; getWindowID; hasGetWindowIDReturns;true;Method getWindowID() returns String
-PortletRequest_SIG; getCookies; hasGetCookies;true;Has a getCookies() method
-PortletRequest_SIG; getCookies; hasGetCookiesReturns;true;Method getCookies() returns javax.servlet.http.Cookie[]
-PortletRequest_SIG; getPrivateParameterMap; hasGetPrivateParameterMap;true;Has a getPrivateParameterMap() method
-PortletRequest_SIG; getPrivateParameterMap; hasGetPrivateParameterMapReturns;true;Method getPrivateParameterMap() returns java.util.Map
-PortletRequest_SIG; getPublicParameterMap; hasGetPublicParameterMap;true;Has a getPublicParameterMap() method
-PortletRequest_SIG; getPublicParameterMap; hasGetPublicParameterMapReturns;true;Method getPublicParameterMap() returns java.util.Map
-PortletRequest$P3PUserInfos;; exists;true;The P3PUserInfos exist as a public static enum
-PortletRequest$P3PUserInfos_SIG; ; isEnum;true;Is an Enum
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_YMD_YEAR; fieldUSER_BDATE_YMD_YEAR;true;Has PortletRequest$P3PUserInfos field USER_BDATE_YMD_YEAR
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_YMD_MONTH; fieldUSER_BDATE_YMD_MONTH;true;Has PortletRequest$P3PUserInfos field USER_BDATE_YMD_MONTH
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_YMD_DAY; fieldUSER_BDATE_YMD_DAY;true;Has PortletRequest$P3PUserInfos field USER_BDATE_YMD_DAY
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_HMS_HOUR; fieldUSER_BDATE_HMS_HOUR;true;Has PortletRequest$P3PUserInfos field USER_BDATE_HMS_HOUR
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_HMS_MINUTE; fieldUSER_BDATE_HMS_MINUTE;true;Has PortletRequest$P3PUserInfos field USER_BDATE_HMS_MINUTE
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_HMS_SECOND; fieldUSER_BDATE_HMS_SECOND;true;Has PortletRequest$P3PUserInfos field USER_BDATE_HMS_SECOND
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_FRACTIONSECOND; fieldUSER_BDATE_FRACTIONSECOND;true;Has PortletRequest$P3PUserInfos field USER_BDATE_FRACTIONSECOND
-PortletRequest$P3PUserInfos_SIG; USER_BDATE_TIMEZONE; fieldUSER_BDATE_TIMEZONE;true;Has PortletRequest$P3PUserInfos field USER_BDATE_TIMEZONE
-PortletRequest$P3PUserInfos_SIG; USER_GENDER; fieldUSER_GENDER;true;Has PortletRequest$P3PUserInfos field USER_GENDER
-PortletRequest$P3PUserInfos_SIG; USER_EMPLOYER; fieldUSER_EMPLOYER;true;Has PortletRequest$P3PUserInfos field USER_EMPLOYER
-PortletRequest$P3PUserInfos_SIG; USER_DEPARTMENT; fieldUSER_DEPARTMENT;true;Has PortletRequest$P3PUserInfos field USER_DEPARTMENT
-PortletRequest$P3PUserInfos_SIG; USER_JOBTITLE; fieldUSER_JOBTITLE;true;Has PortletRequest$P3PUserInfos field USER_JOBTITLE
-PortletRequest$P3PUserInfos_SIG; USER_NAME_PREFIX; fieldUSER_NAME_PREFIX;true;Has PortletRequest$P3PUserInfos field USER_NAME_PREFIX
-PortletRequest$P3PUserInfos_SIG; USER_NAME_GIVEN; fieldUSER_NAME_GIVEN;true;Has Portle
<TRUNCATED>
[61/63] [abbrv] Updated the assertion CSV files in the doc-files
directory
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d6d7d72c/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocGenerated.csv
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocGenerated.csv b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocGenerated.csv
new file mode 100644
index 0000000..bf16aaf
--- /dev/null
+++ b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286ApidocGenerated.csv
@@ -0,0 +1,1582 @@
+PARMS genManual=true tcDetailsClassName=JSR286SignatureTestCaseDetails singlePage=true
+Sig Tests Action;;;; 150 tests.
+ActionRequest;SIG Action;fieldACTION_NAME;TRUE;ActionRequest has String field ACTION_NAME
+ActionRequest;SIG Action;implementsClientDataRequest;TRUE;ActionRequest implements ClientDataRequest
+ActionResponse;SIG Action;hasSendRedirect;TRUE;ActionResponse has a sendRedirect(String) throws java.io.IOException method
+ActionResponse;SIG Action;hasSendRedirectA;TRUE;ActionResponse has a sendRedirect(String, String) throws java.io.IOException method
+ActionResponse;SIG Action;hasSendRedirectReturns;TRUE;ActionResponse method sendRedirect(String) returns void
+ActionResponse;SIG Action;hasSendRedirectReturnsA;TRUE;ActionResponse method sendRedirect(String, String) returns void
+ActionResponse;SIG Action;implementsStateAwareResponse;TRUE;ActionResponse implements StateAwareResponse
+ClientDataRequest;SIG Action;hasGetCharacterEncoding;TRUE;ActionRequest has a getCharacterEncoding() method
+ClientDataRequest;SIG Action;hasGetCharacterEncodingReturns;TRUE;ActionRequest method getCharacterEncoding() returns String
+ClientDataRequest;SIG Action;hasGetContentLength;TRUE;ActionRequest has a getContentLength() method
+ClientDataRequest;SIG Action;hasGetContentLengthReturns;TRUE;ActionRequest method getContentLength() returns int
+ClientDataRequest;SIG Action;hasGetContentType;TRUE;ActionRequest has a getContentType() method
+ClientDataRequest;SIG Action;hasGetContentTypeReturns;TRUE;ActionRequest method getContentType() returns String
+ClientDataRequest;SIG Action;hasGetMethod;TRUE;ActionRequest has a getMethod() method
+ClientDataRequest;SIG Action;hasGetMethodReturns;TRUE;ActionRequest method getMethod() returns String
+ClientDataRequest;SIG Action;hasGetPortletInputStream;TRUE;ActionRequest has a getPortletInputStream() throws java.io.IOException method
+ClientDataRequest;SIG Action;hasGetPortletInputStreamReturns;TRUE;ActionRequest method getPortletInputStream() returns java.io.InputStream
+ClientDataRequest;SIG Action;hasGetReader;TRUE;ActionRequest has a getReader() throws java.io.UnsupportedEncodingException, java.io.IOException method
+ClientDataRequest;SIG Action;hasGetReaderReturns;TRUE;ActionRequest method getReader() returns java.io.BufferedReader
+ClientDataRequest;SIG Action;hasSetCharacterEncoding;TRUE;ActionRequest has a setCharacterEncoding(String) throws java.io.UnsupportedEncodingException method
+ClientDataRequest;SIG Action;hasSetCharacterEncodingReturns;TRUE;ActionRequest method setCharacterEncoding(String) returns void
+ClientDataRequest;SIG Action;implementsPortletRequest;TRUE;ActionRequest implements PortletRequest
+PortletRequest;SIG Action;fieldACTION_PHASE;TRUE;ActionRequest has String field ACTION_PHASE
+PortletRequest;SIG Action;fieldACTION_SCOPE_ID;TRUE;ActionRequest has String field ACTION_SCOPE_ID
+PortletRequest;SIG Action;fieldBASIC_AUTH;TRUE;ActionRequest has String field BASIC_AUTH
+PortletRequest;SIG Action;fieldCCPP_PROFILE;TRUE;ActionRequest has String field CCPP_PROFILE
+PortletRequest;SIG Action;fieldCLIENT_CERT_AUTH;TRUE;ActionRequest has String field CLIENT_CERT_AUTH
+PortletRequest;SIG Action;fieldDIGEST_AUTH;TRUE;ActionRequest has String field DIGEST_AUTH
+PortletRequest;SIG Action;fieldEVENT_PHASE;TRUE;ActionRequest has String field EVENT_PHASE
+PortletRequest;SIG Action;fieldFORM_AUTH;TRUE;ActionRequest has String field FORM_AUTH
+PortletRequest;SIG Action;fieldLIFECYCLE_PHASE;TRUE;ActionRequest has String field LIFECYCLE_PHASE
+PortletRequest;SIG Action;fieldRENDER_HEADERS;TRUE;ActionRequest has String field RENDER_HEADERS
+PortletRequest;SIG Action;fieldRENDER_MARKUP;TRUE;ActionRequest has String field RENDER_MARKUP
+PortletRequest;SIG Action;fieldRENDER_PART;TRUE;ActionRequest has String field RENDER_PART
+PortletRequest;SIG Action;fieldRENDER_PHASE;TRUE;ActionRequest has String field RENDER_PHASE
+PortletRequest;SIG Action;fieldRESOURCE_PHASE;TRUE;ActionRequest has String field RESOURCE_PHASE
+PortletRequest;SIG Action;fieldUSER_INFO;TRUE;ActionRequest has String field USER_INFO
+PortletRequest;SIG Action;hasGetAttribute;TRUE;ActionRequest has a getAttribute(String) method
+PortletRequest;SIG Action;hasGetAttributeNames;TRUE;ActionRequest has a getAttributeNames() method
+PortletRequest;SIG Action;hasGetAttributeNamesReturns;TRUE;ActionRequest method getAttributeNames() returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetAttributeReturns;TRUE;ActionRequest method getAttribute(String) returns Object
+PortletRequest;SIG Action;hasGetAuthType;TRUE;ActionRequest has a getAuthType() method
+PortletRequest;SIG Action;hasGetAuthTypeReturns;TRUE;ActionRequest method getAuthType() returns String
+PortletRequest;SIG Action;hasGetContextPath;TRUE;ActionRequest has a getContextPath() method
+PortletRequest;SIG Action;hasGetContextPathReturns;TRUE;ActionRequest method getContextPath() returns String
+PortletRequest;SIG Action;hasGetCookies;TRUE;ActionRequest has a getCookies() method
+PortletRequest;SIG Action;hasGetCookiesReturns;TRUE;ActionRequest method getCookies() returns javax.servlet.http.Cookie[]
+PortletRequest;SIG Action;hasGetLocale;TRUE;ActionRequest has a getLocale() method
+PortletRequest;SIG Action;hasGetLocaleReturns;TRUE;ActionRequest method getLocale() returns java.util.Locale
+PortletRequest;SIG Action;hasGetLocales;TRUE;ActionRequest has a getLocales() method
+PortletRequest;SIG Action;hasGetLocalesReturns;TRUE;ActionRequest method getLocales() returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetParameter;TRUE;ActionRequest has a getParameter(String) method
+PortletRequest;SIG Action;hasGetParameterMap;TRUE;ActionRequest has a getParameterMap() method
+PortletRequest;SIG Action;hasGetParameterMapReturns;TRUE;ActionRequest method getParameterMap() returns java.util.Map
+PortletRequest;SIG Action;hasGetParameterNames;TRUE;ActionRequest has a getParameterNames() method
+PortletRequest;SIG Action;hasGetParameterNamesReturns;TRUE;ActionRequest method getParameterNames() returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetParameterReturns;TRUE;ActionRequest method getParameter(String) returns String
+PortletRequest;SIG Action;hasGetParameterValues;TRUE;ActionRequest has a getParameterValues(String) method
+PortletRequest;SIG Action;hasGetParameterValuesReturns;TRUE;ActionRequest method getParameterValues(String) returns String[]
+PortletRequest;SIG Action;hasGetPortalContext;TRUE;ActionRequest has a getPortalContext() method
+PortletRequest;SIG Action;hasGetPortalContextReturns;TRUE;ActionRequest method getPortalContext() returns PortalContext
+PortletRequest;SIG Action;hasGetPortletMode;TRUE;ActionRequest has a getPortletMode() method
+PortletRequest;SIG Action;hasGetPortletModeReturns;TRUE;ActionRequest method getPortletMode() returns PortletMode
+PortletRequest;SIG Action;hasGetPortletSession;TRUE;ActionRequest has a getPortletSession() method
+PortletRequest;SIG Action;hasGetPortletSessionA;TRUE;ActionRequest has a getPortletSession(boolean) method
+PortletRequest;SIG Action;hasGetPortletSessionReturns;TRUE;ActionRequest method getPortletSession() returns PortletSession
+PortletRequest;SIG Action;hasGetPortletSessionReturnsA;TRUE;ActionRequest method getPortletSession(boolean) returns PortletSession
+PortletRequest;SIG Action;hasGetPreferences;TRUE;ActionRequest has a getPreferences() method
+PortletRequest;SIG Action;hasGetPreferencesReturns;TRUE;ActionRequest method getPreferences() returns PortletPreferences
+PortletRequest;SIG Action;hasGetPrivateParameterMap;TRUE;ActionRequest has a getPrivateParameterMap() method
+PortletRequest;SIG Action;hasGetPrivateParameterMapReturns;TRUE;ActionRequest method getPrivateParameterMap() returns java.util.Map
+PortletRequest;SIG Action;hasGetProperties;TRUE;ActionRequest has a getProperties(String) method
+PortletRequest;SIG Action;hasGetPropertiesReturns;TRUE;ActionRequest method getProperties(String) returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetProperty;TRUE;ActionRequest has a getProperty(String) method
+PortletRequest;SIG Action;hasGetPropertyNames;TRUE;ActionRequest has a getPropertyNames() method
+PortletRequest;SIG Action;hasGetPropertyNamesReturns;TRUE;ActionRequest method getPropertyNames() returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetPropertyReturns;TRUE;ActionRequest method getProperty(String) returns String
+PortletRequest;SIG Action;hasGetPublicParameterMap;TRUE;ActionRequest has a getPublicParameterMap() method
+PortletRequest;SIG Action;hasGetPublicParameterMapReturns;TRUE;ActionRequest method getPublicParameterMap() returns java.util.Map
+PortletRequest;SIG Action;hasGetRemoteUser;TRUE;ActionRequest has a getRemoteUser() method
+PortletRequest;SIG Action;hasGetRemoteUserReturns;TRUE;ActionRequest method getRemoteUser() returns String
+PortletRequest;SIG Action;hasGetRequestedSessionId;TRUE;ActionRequest has a getRequestedSessionId() method
+PortletRequest;SIG Action;hasGetRequestedSessionIdReturns;TRUE;ActionRequest method getRequestedSessionId() returns String
+PortletRequest;SIG Action;hasGetResponseContentType;TRUE;ActionRequest has a getResponseContentType() method
+PortletRequest;SIG Action;hasGetResponseContentTypeReturns;TRUE;ActionRequest method getResponseContentType() returns String
+PortletRequest;SIG Action;hasGetResponseContentTypes;TRUE;ActionRequest has a getResponseContentTypes() method
+PortletRequest;SIG Action;hasGetResponseContentTypesReturns;TRUE;ActionRequest method getResponseContentTypes() returns java.util.Enumeration
+PortletRequest;SIG Action;hasGetScheme;TRUE;ActionRequest has a getScheme() method
+PortletRequest;SIG Action;hasGetSchemeReturns;TRUE;ActionRequest method getScheme() returns String
+PortletRequest;SIG Action;hasGetServerName;TRUE;ActionRequest has a getServerName() method
+PortletRequest;SIG Action;hasGetServerNameReturns;TRUE;ActionRequest method getServerName() returns String
+PortletRequest;SIG Action;hasGetServerPort;TRUE;ActionRequest has a getServerPort() method
+PortletRequest;SIG Action;hasGetServerPortReturns;TRUE;ActionRequest method getServerPort() returns int
+PortletRequest;SIG Action;hasGetUserPrincipal;TRUE;ActionRequest has a getUserPrincipal() method
+PortletRequest;SIG Action;hasGetUserPrincipalReturns;TRUE;ActionRequest method getUserPrincipal() returns java.security.Principal
+PortletRequest;SIG Action;hasGetWindowID;TRUE;ActionRequest has a getWindowID() method
+PortletRequest;SIG Action;hasGetWindowIDReturns;TRUE;ActionRequest method getWindowID() returns String
+PortletRequest;SIG Action;hasGetWindowState;TRUE;ActionRequest has a getWindowState() method
+PortletRequest;SIG Action;hasGetWindowStateReturns;TRUE;ActionRequest method getWindowState() returns WindowState
+PortletRequest;SIG Action;hasIsPortletModeAllowed;TRUE;ActionRequest has a isPortletModeAllowed(PortletMode) method
+PortletRequest;SIG Action;hasIsPortletModeAllowedReturns;TRUE;ActionRequest method isPortletModeAllowed(PortletMode) returns boolean
+PortletRequest;SIG Action;hasIsRequestedSessionIdValid;TRUE;ActionRequest has a isRequestedSessionIdValid() method
+PortletRequest;SIG Action;hasIsRequestedSessionIdValidReturns;TRUE;ActionRequest method isRequestedSessionIdValid() returns boolean
+PortletRequest;SIG Action;hasIsSecure;TRUE;ActionRequest has a isSecure() method
+PortletRequest;SIG Action;hasIsSecureReturns;TRUE;ActionRequest method isSecure() returns boolean
+PortletRequest;SIG Action;hasIsUserInRole;TRUE;ActionRequest has a isUserInRole(String) method
+PortletRequest;SIG Action;hasIsUserInRoleReturns;TRUE;ActionRequest method isUserInRole(String) returns boolean
+PortletRequest;SIG Action;hasIsWindowStateAllowed;TRUE;ActionRequest has a isWindowStateAllowed(WindowState) method
+PortletRequest;SIG Action;hasIsWindowStateAllowedReturns;TRUE;ActionRequest method isWindowStateAllowed(WindowState) returns boolean
+PortletRequest;SIG Action;hasRemoveAttribute;TRUE;ActionRequest has a removeAttribute(String) method
+PortletRequest;SIG Action;hasRemoveAttributeReturns;TRUE;ActionRequest method removeAttribute(String) returns void
+PortletRequest;SIG Action;hasSetAttribute;TRUE;ActionRequest has a setAttribute(String, Object) method
+PortletRequest;SIG Action;hasSetAttributeReturns;TRUE;ActionRequest method setAttribute(String, Object) returns void
+PortletResponse;SIG Action;hasAddProperty;TRUE;ActionResponse has a addProperty(String, String) method
+PortletResponse;SIG Action;hasAddPropertyA;TRUE;ActionResponse has a addProperty(javax.servlet.http.Cookie) method
+PortletResponse;SIG Action;hasAddPropertyB;TRUE;ActionResponse has a addProperty(String, org.w3c.dom.Element) method
+PortletResponse;SIG Action;hasAddPropertyReturns;TRUE;ActionResponse method addProperty(String, String) returns void
+PortletResponse;SIG Action;hasAddPropertyReturnsA;TRUE;ActionResponse method addProperty(javax.servlet.http.Cookie) returns void
+PortletResponse;SIG Action;hasAddPropertyReturnsB;TRUE;ActionResponse method addProperty(String, org.w3c.dom.Element) returns void
+PortletResponse;SIG Action;hasCreateElement;TRUE;ActionResponse has a createElement(String) throws org.w3c.dom.DOMException method
+PortletResponse;SIG Action;hasCreateElementReturns;TRUE;ActionResponse method createElement(String) returns org.w3c.dom.Element
+PortletResponse;SIG Action;hasEncodeURL;TRUE;ActionResponse has a encodeURL(String) method
+PortletResponse;SIG Action;hasEncodeURLReturns;TRUE;ActionResponse method encodeURL(String) returns String
+PortletResponse;SIG Action;hasGetNamespace;TRUE;ActionResponse has a getNamespace() method
+PortletResponse;SIG Action;hasGetNamespaceReturns;TRUE;ActionResponse method getNamespace() returns String
+PortletResponse;SIG Action;hasSetProperty;TRUE;ActionResponse has a setProperty(String, String) method
+PortletResponse;SIG Action;hasSetPropertyReturns;TRUE;ActionResponse method setProperty(String, String) returns void
+StateAwareResponse;SIG Action;hasGetPortletMode;TRUE;ActionResponse has a getPortletMode() method
+StateAwareResponse;SIG Action;hasGetPortletModeReturns;TRUE;ActionResponse method getPortletMode() returns PortletMode
+StateAwareResponse;SIG Action;hasGetRenderParameterMap;TRUE;ActionResponse has a getRenderParameterMap() method
+StateAwareResponse;SIG Action;hasGetRenderParameterMapReturns;TRUE;ActionResponse method getRenderParameterMap() returns java.util.Map
+StateAwareResponse;SIG Action;hasGetWindowState;TRUE;ActionResponse has a getWindowState() method
+StateAwareResponse;SIG Action;hasGetWindowStateReturns;TRUE;ActionResponse method getWindowState() returns WindowState
+StateAwareResponse;SIG Action;hasRemovePublicRenderParameter;TRUE;ActionResponse has a removePublicRenderParameter(String) method
+StateAwareResponse;SIG Action;hasRemovePublicRenderParameterReturns;TRUE;ActionResponse method removePublicRenderParameter(String) returns void
+StateAwareResponse;SIG Action;hasSetEvent;TRUE;ActionResponse has a setEvent(javax.xml.namespace.QName, java.io.Serializable) method
+StateAwareResponse;SIG Action;hasSetEventA;TRUE;ActionResponse has a setEvent(String, java.io.Serializable) method
+StateAwareResponse;SIG Action;hasSetEventReturns;TRUE;ActionResponse method setEvent(javax.xml.namespace.QName, java.io.Serializable) returns void
+StateAwareResponse;SIG Action;hasSetEventReturnsA;TRUE;ActionResponse method setEvent(String, java.io.Serializable) returns void
+StateAwareResponse;SIG Action;hasSetPortletMode;TRUE;ActionResponse has a setPortletMode(PortletMode) throws PortletModeException method
+StateAwareResponse;SIG Action;hasSetPortletModeReturns;TRUE;ActionResponse method setPortletMode(PortletMode) returns void
+StateAwareResponse;SIG Action;hasSetRenderParameter;TRUE;ActionResponse has a setRenderParameter(String, String) method
+StateAwareResponse;SIG Action;hasSetRenderParameterA;TRUE;ActionResponse has a setRenderParameter(String, String[]) method
+StateAwareResponse;SIG Action;hasSetRenderParameterReturns;TRUE;ActionResponse method setRenderParameter(String, String) returns void
+StateAwareResponse;SIG Action;hasSetRenderParameterReturnsA;TRUE;ActionResponse method setRenderParameter(String, String[]) returns void
+StateAwareResponse;SIG Action;hasSetRenderParameters;TRUE;ActionResponse has a setRenderParameters(java.util.Map) method
+StateAwareResponse;SIG Action;hasSetRenderParametersReturns;TRUE;ActionResponse method setRenderParameters(java.util.Map) returns void
+StateAwareResponse;SIG Action;hasSetWindowState;TRUE;ActionResponse has a setWindowState(WindowState) throws WindowStateException method
+StateAwareResponse;SIG Action;hasSetWindowStateReturns;TRUE;ActionResponse method setWindowState(WindowState) returns void
+StateAwareResponse;SIG Action;implementsPortletResponse;TRUE;ActionResponse implements PortletResponse
+Sig Tests Env;;;; 264 tests.
+CacheControl;SIG Render;hasGetETag;TRUE;CacheControl has a getETag() method
+CacheControl;SIG Render;hasGetETagReturns;TRUE;CacheControl method getETag() returns String
+CacheControl;SIG Render;hasGetExpirationTime;TRUE;CacheControl has a getExpirationTime() method
+CacheControl;SIG Render;hasGetExpirationTimeReturns;TRUE;CacheControl method getExpirationTime() returns int
+CacheControl;SIG Render;hasIsPublicScope;TRUE;CacheControl has a isPublicScope() method
+CacheControl;SIG Render;hasIsPublicScopeReturns;TRUE;CacheControl method isPublicScope() returns boolean
+CacheControl;SIG Render;hasSetETag;TRUE;CacheControl has a setETag(String) method
+CacheControl;SIG Render;hasSetETagReturns;TRUE;CacheControl method setETag(String) returns void
+CacheControl;SIG Render;hasSetExpirationTime;TRUE;CacheControl has a setExpirationTime(int) method
+CacheControl;SIG Render;hasSetExpirationTimeReturns;TRUE;CacheControl method setExpirationTime(int) returns void
+CacheControl;SIG Render;hasSetPublicScope;TRUE;CacheControl has a setPublicScope(boolean) method
+CacheControl;SIG Render;hasSetPublicScopeReturns;TRUE;CacheControl method setPublicScope(boolean) returns void
+CacheControl;SIG Render;hasSetUseCachedContent;TRUE;CacheControl has a setUseCachedContent(boolean) method
+CacheControl;SIG Render;hasSetUseCachedContentReturns;TRUE;CacheControl method setUseCachedContent(boolean) returns void
+CacheControl;SIG Render;hasUseCachedContent;TRUE;CacheControl has a useCachedContent() method
+CacheControl;SIG Render;hasUseCachedContentReturns;TRUE;CacheControl method useCachedContent() returns boolean
+EventPortlet;SIG Render;hasProcessEvent;TRUE;EventPortlet has a processEvent(EventRequest, EventResponse) throws PortletException, java.io.IOException method
+EventPortlet;SIG Render;hasProcessEventReturns;TRUE;EventPortlet method processEvent(EventRequest, EventResponse) returns void
+GenericPortlet;SIG Render;constructor;TRUE;GenericPortlet provides constructor GenericPortlet()
+GenericPortlet;SIG Render;hasDestroy;TRUE;GenericPortlet has a destroy() method
+GenericPortlet;SIG Render;hasDestroyReturns;TRUE;GenericPortlet method destroy() returns void
+GenericPortlet;SIG Render;hasDoDispatch;TRUE;GenericPortlet has a doDispatch(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasDoDispatchReturns;TRUE;GenericPortlet method doDispatch(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasDoEdit;TRUE;GenericPortlet has a doEdit(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasDoEditReturns;TRUE;GenericPortlet method doEdit(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasDoHeaders;TRUE;GenericPortlet has a doHeaders(RenderRequest, RenderResponse) method
+GenericPortlet;SIG Render;hasDoHeadersReturns;TRUE;GenericPortlet method doHeaders(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasDoHelp;TRUE;GenericPortlet has a doHelp(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasDoHelpReturns;TRUE;GenericPortlet method doHelp(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasDoView;TRUE;GenericPortlet has a doView(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasDoViewReturns;TRUE;GenericPortlet method doView(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasGetContainerRuntimeOptions;TRUE;GenericPortlet has a getContainerRuntimeOptions() method
+GenericPortlet;SIG Render;hasGetContainerRuntimeOptionsReturns;TRUE;GenericPortlet method getContainerRuntimeOptions() returns java.util.Map
+GenericPortlet;SIG Render;hasGetDefaultNamespace;TRUE;GenericPortlet has a getDefaultNamespace() method
+GenericPortlet;SIG Render;hasGetDefaultNamespaceReturns;TRUE;GenericPortlet method getDefaultNamespace() returns String
+GenericPortlet;SIG Render;hasGetInitParameter;TRUE;GenericPortlet has a getInitParameter(String) method
+GenericPortlet;SIG Render;hasGetInitParameterNames;TRUE;GenericPortlet has a getInitParameterNames() method
+GenericPortlet;SIG Render;hasGetInitParameterNamesReturns;TRUE;GenericPortlet method getInitParameterNames() returns java.util.Enumeration
+GenericPortlet;SIG Render;hasGetInitParameterReturns;TRUE;GenericPortlet method getInitParameter(String) returns String
+GenericPortlet;SIG Render;hasGetNextPossiblePortletModes;TRUE;GenericPortlet has a getNextPossiblePortletModes(RenderRequest) method
+GenericPortlet;SIG Render;hasGetNextPossiblePortletModesReturns;TRUE;GenericPortlet method getNextPossiblePortletModes(RenderRequest) returns java.util.Collection
+GenericPortlet;SIG Render;hasGetPortletConfig;TRUE;GenericPortlet has a getPortletConfig() method
+GenericPortlet;SIG Render;hasGetPortletConfigReturns;TRUE;GenericPortlet method getPortletConfig() returns PortletConfig
+GenericPortlet;SIG Render;hasGetPortletContext;TRUE;GenericPortlet has a getPortletContext() method
+GenericPortlet;SIG Render;hasGetPortletContextReturns;TRUE;GenericPortlet method getPortletContext() returns PortletContext
+GenericPortlet;SIG Render;hasGetPortletName;TRUE;GenericPortlet has a getPortletName() method
+GenericPortlet;SIG Render;hasGetPortletNameReturns;TRUE;GenericPortlet method getPortletName() returns String
+GenericPortlet;SIG Render;hasGetProcessingEventQNames;TRUE;GenericPortlet has a getProcessingEventQNames() method
+GenericPortlet;SIG Render;hasGetProcessingEventQNamesReturns;TRUE;GenericPortlet method getProcessingEventQNames() returns java.util.Enumeration
+GenericPortlet;SIG Render;hasGetPublicRenderParameterNames;TRUE;GenericPortlet has a getPublicRenderParameterNames() method
+GenericPortlet;SIG Render;hasGetPublicRenderParameterNamesReturns;TRUE;GenericPortlet method getPublicRenderParameterNames() returns java.util.Enumeration
+GenericPortlet;SIG Render;hasGetPublishingEventQNames;TRUE;GenericPortlet has a getPublishingEventQNames() method
+GenericPortlet;SIG Render;hasGetPublishingEventQNamesReturns;TRUE;GenericPortlet method getPublishingEventQNames() returns java.util.Enumeration
+GenericPortlet;SIG Render;hasGetResourceBundle;TRUE;GenericPortlet has a getResourceBundle(java.util.Locale) method
+GenericPortlet;SIG Render;hasGetResourceBundleReturns;TRUE;GenericPortlet method getResourceBundle(java.util.Locale) returns java.util.ResourceBundle
+GenericPortlet;SIG Render;hasGetSupportedLocales;TRUE;GenericPortlet has a getSupportedLocales() method
+GenericPortlet;SIG Render;hasGetSupportedLocalesReturns;TRUE;GenericPortlet method getSupportedLocales() returns java.util.Enumeration
+GenericPortlet;SIG Render;hasGetTitle;TRUE;GenericPortlet has a getTitle(RenderRequest) method
+GenericPortlet;SIG Render;hasGetTitleReturns;TRUE;GenericPortlet method getTitle(RenderRequest) returns String
+GenericPortlet;SIG Render;hasInit;TRUE;GenericPortlet has a init(PortletConfig) throws PortletException method
+GenericPortlet;SIG Render;hasInitA;TRUE;GenericPortlet has a init() throws PortletException method
+GenericPortlet;SIG Render;hasInitReturns;TRUE;GenericPortlet method init(PortletConfig) returns void
+GenericPortlet;SIG Render;hasInitReturnsA;TRUE;GenericPortlet method init() returns void
+GenericPortlet;SIG Render;hasProcessAction;TRUE;GenericPortlet has a processAction(ActionRequest, ActionResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasProcessActionReturns;TRUE;GenericPortlet method processAction(ActionRequest, ActionResponse) returns void
+GenericPortlet;SIG Render;hasProcessEvent;TRUE;GenericPortlet has a processEvent(EventRequest, EventResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasProcessEventReturns;TRUE;GenericPortlet method processEvent(EventRequest, EventResponse) returns void
+GenericPortlet;SIG Render;hasRender;TRUE;GenericPortlet has a render(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasRenderReturns;TRUE;GenericPortlet method render(RenderRequest, RenderResponse) returns void
+GenericPortlet;SIG Render;hasServeResource;TRUE;GenericPortlet has a serveResource(ResourceRequest, ResourceResponse) throws PortletException, java.io.IOException method
+GenericPortlet;SIG Render;hasServeResourceReturns;TRUE;GenericPortlet method serveResource(ResourceRequest, ResourceResponse) returns void
+GenericPortlet;SIG Render;implementsEventPortlet;TRUE;GenericPortlet implements EventPortlet
+GenericPortlet;SIG Render;implementsPortlet;TRUE;GenericPortlet implements Portlet
+GenericPortlet;SIG Render;implementsPortletConfig;TRUE;GenericPortlet implements PortletConfig
+GenericPortlet;SIG Render;implementsResourceServingPortlet;TRUE;GenericPortlet implements ResourceServingPortlet
+PortalContext;SIG Render;fieldMARKUP_HEAD_ELEMENT_SUPPORT;TRUE;PortalContext has String field MARKUP_HEAD_ELEMENT_SUPPORT
+PortalContext;SIG Render;hasGetPortalInfo;TRUE;PortalContext has a getPortalInfo() method
+PortalContext;SIG Render;hasGetPortalInfoReturns;TRUE;PortalContext method getPortalInfo() returns String
+PortalContext;SIG Render;hasGetProperty;TRUE;PortalContext has a getProperty(String) method
+PortalContext;SIG Render;hasGetPropertyNames;TRUE;PortalContext has a getPropertyNames() method
+PortalContext;SIG Render;hasGetPropertyNamesReturns;TRUE;PortalContext method getPropertyNames() returns java.util.Enumeration
+PortalContext;SIG Render;hasGetPropertyReturns;TRUE;PortalContext method getProperty(String) returns String
+PortalContext;SIG Render;hasGetSupportedPortletModes;TRUE;PortalContext has a getSupportedPortletModes() method
+PortalContext;SIG Render;hasGetSupportedPortletModesReturns;TRUE;PortalContext method getSupportedPortletModes() returns java.util.Enumeration
+PortalContext;SIG Render;hasGetSupportedWindowStates;TRUE;PortalContext has a getSupportedWindowStates() method
+PortalContext;SIG Render;hasGetSupportedWindowStatesReturns;TRUE;PortalContext method getSupportedWindowStates() returns java.util.Enumeration
+Portlet;SIG Render;hasDestroy;TRUE;Portlet has a destroy() method
+Portlet;SIG Render;hasDestroyReturns;TRUE;Portlet method destroy() returns void
+Portlet;SIG Render;hasInit;TRUE;Portlet has a init(PortletConfig) throws PortletException method
+Portlet;SIG Render;hasInitReturns;TRUE;Portlet method init(PortletConfig) returns void
+Portlet;SIG Render;hasProcessAction;TRUE;Portlet has a processAction(ActionRequest, ActionResponse) throws PortletException, java.io.IOException method
+Portlet;SIG Render;hasProcessActionReturns;TRUE;Portlet method processAction(ActionRequest, ActionResponse) returns void
+Portlet;SIG Render;hasRender;TRUE;Portlet has a render(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+Portlet;SIG Render;hasRenderReturns;TRUE;Portlet method render(RenderRequest, RenderResponse) returns void
+PortletConfig;SIG Render;hasGetContainerRuntimeOptions;TRUE;PortletConfig has a getContainerRuntimeOptions() method
+PortletConfig;SIG Render;hasGetContainerRuntimeOptionsReturns;TRUE;PortletConfig method getContainerRuntimeOptions() returns java.util.Map
+PortletConfig;SIG Render;hasGetDefaultNamespace;TRUE;PortletConfig has a getDefaultNamespace() method
+PortletConfig;SIG Render;hasGetDefaultNamespaceReturns;TRUE;PortletConfig method getDefaultNamespace() returns String
+PortletConfig;SIG Render;hasGetInitParameter;TRUE;PortletConfig has a getInitParameter(String) method
+PortletConfig;SIG Render;hasGetInitParameterNames;TRUE;PortletConfig has a getInitParameterNames() method
+PortletConfig;SIG Render;hasGetInitParameterNamesReturns;TRUE;PortletConfig method getInitParameterNames() returns java.util.Enumeration
+PortletConfig;SIG Render;hasGetInitParameterReturns;TRUE;PortletConfig method getInitParameter(String) returns String
+PortletConfig;SIG Render;hasGetPortletContext;TRUE;PortletConfig has a getPortletContext() method
+PortletConfig;SIG Render;hasGetPortletContextReturns;TRUE;PortletConfig method getPortletContext() returns PortletContext
+PortletConfig;SIG Render;hasGetPortletName;TRUE;PortletConfig has a getPortletName() method
+PortletConfig;SIG Render;hasGetPortletNameReturns;TRUE;PortletConfig method getPortletName() returns String
+PortletConfig;SIG Render;hasGetProcessingEventQNames;TRUE;PortletConfig has a getProcessingEventQNames() method
+PortletConfig;SIG Render;hasGetProcessingEventQNamesReturns;TRUE;PortletConfig method getProcessingEventQNames() returns java.util.Enumeration
+PortletConfig;SIG Render;hasGetPublicRenderParameterNames;TRUE;PortletConfig has a getPublicRenderParameterNames() method
+PortletConfig;SIG Render;hasGetPublicRenderParameterNamesReturns;TRUE;PortletConfig method getPublicRenderParameterNames() returns java.util.Enumeration
+PortletConfig;SIG Render;hasGetPublishingEventQNames;TRUE;PortletConfig has a getPublishingEventQNames() method
+PortletConfig;SIG Render;hasGetPublishingEventQNamesReturns;TRUE;PortletConfig method getPublishingEventQNames() returns java.util.Enumeration
+PortletConfig;SIG Render;hasGetResourceBundle;TRUE;PortletConfig has a getResourceBundle(java.util.Locale) method
+PortletConfig;SIG Render;hasGetResourceBundleReturns;TRUE;PortletConfig method getResourceBundle(java.util.Locale) returns java.util.ResourceBundle
+PortletConfig;SIG Render;hasGetSupportedLocales;TRUE;PortletConfig has a getSupportedLocales() method
+PortletConfig;SIG Render;hasGetSupportedLocalesReturns;TRUE;PortletConfig method getSupportedLocales() returns java.util.Enumeration
+PortletContext;SIG Render;hasGetAttribute;TRUE;PortletContext has a getAttribute(String) method
+PortletContext;SIG Render;hasGetAttributeNames;TRUE;PortletContext has a getAttributeNames() method
+PortletContext;SIG Render;hasGetAttributeNamesReturns;TRUE;PortletContext method getAttributeNames() returns java.util.Enumeration
+PortletContext;SIG Render;hasGetAttributeReturns;TRUE;PortletContext method getAttribute(String) returns Object
+PortletContext;SIG Render;hasGetContainerRuntimeOptions;TRUE;PortletContext has a getContainerRuntimeOptions() method
+PortletContext;SIG Render;hasGetContainerRuntimeOptionsReturns;TRUE;PortletContext method getContainerRuntimeOptions() returns java.util.Enumeration
+PortletContext;SIG Render;hasGetInitParameter;TRUE;PortletContext has a getInitParameter(String) method
+PortletContext;SIG Render;hasGetInitParameterNames;TRUE;PortletContext has a getInitParameterNames() method
+PortletContext;SIG Render;hasGetInitParameterNamesReturns;TRUE;PortletContext method getInitParameterNames() returns java.util.Enumeration
+PortletContext;SIG Render;hasGetInitParameterReturns;TRUE;PortletContext method getInitParameter(String) returns String
+PortletContext;SIG Render;hasGetMajorVersion;TRUE;PortletContext has a getMajorVersion() method
+PortletContext;SIG Render;hasGetMajorVersionReturns;TRUE;PortletContext method getMajorVersion() returns int
+PortletContext;SIG Render;hasGetMimeType;TRUE;PortletContext has a getMimeType(String) method
+PortletContext;SIG Render;hasGetMimeTypeReturns;TRUE;PortletContext method getMimeType(String) returns String
+PortletContext;SIG Render;hasGetMinorVersion;TRUE;PortletContext has a getMinorVersion() method
+PortletContext;SIG Render;hasGetMinorVersionReturns;TRUE;PortletContext method getMinorVersion() returns int
+PortletContext;SIG Render;hasGetNamedDispatcher;TRUE;PortletContext has a getNamedDispatcher(String) method
+PortletContext;SIG Render;hasGetNamedDispatcherReturns;TRUE;PortletContext method getNamedDispatcher(String) returns PortletRequestDispatcher
+PortletContext;SIG Render;hasGetPortletContextName;TRUE;PortletContext has a getPortletContextName() method
+PortletContext;SIG Render;hasGetPortletContextNameReturns;TRUE;PortletContext method getPortletContextName() returns String
+PortletContext;SIG Render;hasGetRealPath;TRUE;PortletContext has a getRealPath(String) method
+PortletContext;SIG Render;hasGetRealPathReturns;TRUE;PortletContext method getRealPath(String) returns String
+PortletContext;SIG Render;hasGetRequestDispatcher;TRUE;PortletContext has a getRequestDispatcher(String) method
+PortletContext;SIG Render;hasGetRequestDispatcherReturns;TRUE;PortletContext method getRequestDispatcher(String) returns PortletRequestDispatcher
+PortletContext;SIG Render;hasGetResource;TRUE;PortletContext has a getResource(String) throws java.net.MalformedURLException method
+PortletContext;SIG Render;hasGetResourceAsStream;TRUE;PortletContext has a getResourceAsStream(String) method
+PortletContext;SIG Render;hasGetResourceAsStreamReturns;TRUE;PortletContext method getResourceAsStream(String) returns java.io.InputStream
+PortletContext;SIG Render;hasGetResourcePaths;TRUE;PortletContext has a getResourcePaths(String) method
+PortletContext;SIG Render;hasGetResourcePathsReturns;TRUE;PortletContext method getResourcePaths(String) returns java.util.Set
+PortletContext;SIG Render;hasGetResourceReturns;TRUE;PortletContext method getResource(String) returns java.net.URL
+PortletContext;SIG Render;hasGetServerInfo;TRUE;PortletContext has a getServerInfo() method
+PortletContext;SIG Render;hasGetServerInfoReturns;TRUE;PortletContext method getServerInfo() returns String
+PortletContext;SIG Render;hasLog;TRUE;PortletContext has a log(String) method
+PortletContext;SIG Render;hasLogA;TRUE;PortletContext has a log(String, Throwable) method
+PortletContext;SIG Render;hasLogReturns;TRUE;PortletContext method log(String) returns void
+PortletContext;SIG Render;hasLogReturnsA;TRUE;PortletContext method log(String, Throwable) returns void
+PortletContext;SIG Render;hasRemoveAttribute;TRUE;PortletContext has a removeAttribute(String) method
+PortletContext;SIG Render;hasRemoveAttributeReturns;TRUE;PortletContext method removeAttribute(String) returns void
+PortletContext;SIG Render;hasSetAttribute;TRUE;PortletContext has a setAttribute(String, Object) method
+PortletContext;SIG Render;hasSetAttributeReturns;TRUE;PortletContext method setAttribute(String, Object) returns void
+PortletMode;SIG Render;constructor;TRUE;PortletMode provides constructor PortletMode(String)
+PortletMode;SIG Render;fieldEDIT;TRUE;PortletMode has PortletMode field EDIT
+PortletMode;SIG Render;fieldHELP;TRUE;PortletMode has PortletMode field HELP
+PortletMode;SIG Render;fieldVIEW;TRUE;PortletMode has PortletMode field VIEW
+PortletMode;SIG Render;hasEquals;TRUE;PortletMode has a equals(Object) method
+PortletMode;SIG Render;hasEqualsReturns;TRUE;PortletMode method equals(Object) returns boolean
+PortletMode;SIG Render;hasHashCode;TRUE;PortletMode has a hashCode() method
+PortletMode;SIG Render;hasHashCodeReturns;TRUE;PortletMode method hashCode() returns int
+PortletMode;SIG Render;hasToString;TRUE;PortletMode has a toString() method
+PortletMode;SIG Render;hasToStringReturns;TRUE;PortletMode method toString() returns String
+PortletPreferences;SIG Render;hasGetMap;TRUE;PortletPreferences has a getMap() method
+PortletPreferences;SIG Render;hasGetMapReturns;TRUE;PortletPreferences method getMap() returns java.util.Map
+PortletPreferences;SIG Render;hasGetNames;TRUE;PortletPreferences has a getNames() method
+PortletPreferences;SIG Render;hasGetNamesReturns;TRUE;PortletPreferences method getNames() returns java.util.Enumeration
+PortletPreferences;SIG Render;hasGetValue;TRUE;PortletPreferences has a getValue(String, String) method
+PortletPreferences;SIG Render;hasGetValueReturns;TRUE;PortletPreferences method getValue(String, String) returns String
+PortletPreferences;SIG Render;hasGetValues;TRUE;PortletPreferences has a getValues(String, String[]) method
+PortletPreferences;SIG Render;hasGetValuesReturns;TRUE;PortletPreferences method getValues(String, String[]) returns String[]
+PortletPreferences;SIG Render;hasIsReadOnly;TRUE;PortletPreferences has a isReadOnly(String) method
+PortletPreferences;SIG Render;hasIsReadOnlyReturns;TRUE;PortletPreferences method isReadOnly(String) returns boolean
+PortletPreferences;SIG Render;hasReset;TRUE;PortletPreferences has a reset(String) throws ReadOnlyException method
+PortletPreferences;SIG Render;hasResetReturns;TRUE;PortletPreferences method reset(String) returns void
+PortletPreferences;SIG Render;hasSetValue;TRUE;PortletPreferences has a setValue(String, String) throws ReadOnlyException method
+PortletPreferences;SIG Render;hasSetValueReturns;TRUE;PortletPreferences method setValue(String, String) returns void
+PortletPreferences;SIG Render;hasSetValues;TRUE;PortletPreferences has a setValues(String, String[]) throws ReadOnlyException method
+PortletPreferences;SIG Render;hasSetValuesReturns;TRUE;PortletPreferences method setValues(String, String[]) returns void
+PortletPreferences;SIG Render;hasStore;TRUE;PortletPreferences has a store() throws java.io.IOException, ValidatorException method
+PortletPreferences;SIG Render;hasStoreReturns;TRUE;PortletPreferences method store() returns void
+PortletRequestDispatcher;SIG Render;hasForward;TRUE;PortletRequestDispatcher has a forward(PortletRequest, PortletResponse) throws PortletException, java.io.IOException method
+PortletRequestDispatcher;SIG Render;hasForwardReturns;TRUE;PortletRequestDispatcher method forward(PortletRequest, PortletResponse) returns void
+PortletRequestDispatcher;SIG Render;hasInclude;TRUE;PortletRequestDispatcher has a include(RenderRequest, RenderResponse) throws PortletException, java.io.IOException method
+PortletRequestDispatcher;SIG Render;hasIncludeA;TRUE;PortletRequestDispatcher has a include(PortletRequest, PortletResponse) throws PortletException, java.io.IOException method
+PortletRequestDispatcher;SIG Render;hasIncludeReturns;TRUE;PortletRequestDispatcher method include(RenderRequest, RenderResponse) returns void
+PortletRequestDispatcher;SIG Render;hasIncludeReturnsA;TRUE;PortletRequestDispatcher method include(PortletRequest, PortletResponse) returns void
+PortletSession;SIG Render;fieldAPPLICATION_SCOPE;TRUE;PortletSession has int field APPLICATION_SCOPE
+PortletSession;SIG Render;fieldPORTLET_SCOPE;TRUE;PortletSession has int field PORTLET_SCOPE
+PortletSession;SIG Render;hasGetAttribute;TRUE;PortletSession has a getAttribute(String) method
+PortletSession;SIG Render;hasGetAttributeA;TRUE;PortletSession has a getAttribute(String, int) method
+PortletSession;SIG Render;hasGetAttributeMap;TRUE;PortletSession has a getAttributeMap() method
+PortletSession;SIG Render;hasGetAttributeMapA;TRUE;PortletSession has a getAttributeMap(int) method
+PortletSession;SIG Render;hasGetAttributeMapReturns;TRUE;PortletSession method getAttributeMap() returns java.util.Map
+PortletSession;SIG Render;hasGetAttributeMapReturnsA;TRUE;PortletSession method getAttributeMap(int) returns java.util.Map
+PortletSession;SIG Render;hasGetAttributeNames;TRUE;PortletSession has a getAttributeNames() method
+PortletSession;SIG Render;hasGetAttributeNamesA;TRUE;PortletSession has a getAttributeNames(int) method
+PortletSession;SIG Render;hasGetAttributeNamesReturns;TRUE;PortletSession method getAttributeNames() returns java.util.Enumeration
+PortletSession;SIG Render;hasGetAttributeNamesReturnsA;TRUE;PortletSession method getAttributeNames(int) returns java.util.Enumeration
+PortletSession;SIG Render;hasGetAttributeReturns;TRUE;PortletSession method getAttribute(String) returns Object
+PortletSession;SIG Render;hasGetAttributeReturnsA;TRUE;PortletSession method getAttribute(String, int) returns Object
+PortletSession;SIG Render;hasGetCreationTime;TRUE;PortletSession has a getCreationTime() method
+PortletSession;SIG Render;hasGetCreationTimeReturns;TRUE;PortletSession method getCreationTime() returns long
+PortletSession;SIG Render;hasGetId;TRUE;PortletSession has a getId() method
+PortletSession;SIG Render;hasGetIdReturns;TRUE;PortletSession method getId() returns String
+PortletSession;SIG Render;hasGetLastAccessedTime;TRUE;PortletSession has a getLastAccessedTime() method
+PortletSession;SIG Render;hasGetLastAccessedTimeReturns;TRUE;PortletSession method getLastAccessedTime() returns long
+PortletSession;SIG Render;hasGetMaxInactiveInterval;TRUE;PortletSession has a getMaxInactiveInterval() method
+PortletSession;SIG Render;hasGetMaxInactiveIntervalReturns;TRUE;PortletSession method getMaxInactiveInterval() returns int
+PortletSession;SIG Render;hasGetPortletContext;TRUE;PortletSession has a getPortletContext() method
+PortletSession;SIG Render;hasGetPortletContextReturns;TRUE;PortletSession method getPortletContext() returns PortletContext
+PortletSession;SIG Render;hasInvalidate;TRUE;PortletSession has a invalidate() method
+PortletSession;SIG Render;hasInvalidateReturns;TRUE;PortletSession method invalidate() returns void
+PortletSession;SIG Render;hasIsNew;TRUE;PortletSession has a isNew() method
+PortletSession;SIG Render;hasIsNewReturns;TRUE;PortletSession method isNew() returns boolean
+PortletSession;SIG Render;hasRemoveAttribute;TRUE;PortletSession has a removeAttribute(String) method
+PortletSession;SIG Render;hasRemoveAttributeA;TRUE;PortletSession has a removeAttribute(String, int) method
+PortletSession;SIG Render;hasRemoveAttributeReturns;TRUE;PortletSession method removeAttribute(String) returns void
+PortletSession;SIG Render;hasRemoveAttributeReturnsA;TRUE;PortletSession method removeAttribute(String, int) returns void
+PortletSession;SIG Render;hasSetAttribute;TRUE;PortletSession has a setAttribute(String, Object) method
+PortletSession;SIG Render;hasSetAttributeA;TRUE;PortletSession has a setAttribute(String, Object, int) method
+PortletSession;SIG Render;hasSetAttributeReturns;TRUE;PortletSession method setAttribute(String, Object) returns void
+PortletSession;SIG Render;hasSetAttributeReturnsA;TRUE;PortletSession method setAttribute(String, Object, int) returns void
+PortletSession;SIG Render;hasSetMaxInactiveInterval;TRUE;PortletSession has a setMaxInactiveInterval(int) method
+PortletSession;SIG Render;hasSetMaxInactiveIntervalReturns;TRUE;PortletSession method setMaxInactiveInterval(int) returns void
+PortletSessionUtil;SIG Render;constructor;TRUE;PortletSessionUtil provides constructor PortletSessionUtil()
+PortletSessionUtil;SIG Render;hasDecodeAttributeName;TRUE;PortletSessionUtil has a decodeAttributeName(String) method
+PortletSessionUtil;SIG Render;hasDecodeAttributeNameReturns;TRUE;PortletSessionUtil method decodeAttributeName(String) returns String
+PortletSessionUtil;SIG Render;hasDecodeScope;TRUE;PortletSessionUtil has a decodeScope(String) method
+PortletSessionUtil;SIG Render;hasDecodeScopeReturns;TRUE;PortletSessionUtil method decodeScope(String) returns int
+PortletURLGenerationListener;SIG Render;hasFilterActionURL;TRUE;PortletURLGenerationListener has a filterActionURL(PortletURL) method
+PortletURLGenerationListener;SIG Render;hasFilterActionURLReturns;TRUE;PortletURLGenerationListener method filterActionURL(PortletURL) returns void
+PortletURLGenerationListener;SIG Render;hasFilterRenderURL;TRUE;PortletURLGenerationListener has a filterRenderURL(PortletURL) method
+PortletURLGenerationListener;SIG Render;hasFilterRenderURLReturns;TRUE;PortletURLGenerationListener method filterRenderURL(PortletURL) returns void
+PortletURLGenerationListener;SIG Render;hasFilterResourceURL;TRUE;PortletURLGenerationListener has a filterResourceURL(ResourceURL) method
+PortletURLGenerationListener;SIG Render;hasFilterResourceURLReturns;TRUE;PortletURLGenerationListener method filterResourceURL(ResourceURL) returns void
+PreferencesValidator;SIG Render;hasValidate;TRUE;PreferencesValidator has a validate(PortletPreferences) throws ValidatorException method
+PreferencesValidator;SIG Render;hasValidateReturns;TRUE;PreferencesValidator method validate(PortletPreferences) returns void
+ProcessAction;SIG Render;hasName;TRUE;ProcessAction has a name() method
+ProcessAction;SIG Render;hasNameReturns;TRUE;ProcessAction method name() returns String
+ProcessAction;SIG Render;isAnnotation;TRUE;ProcessAction is an Annotation
+ProcessEvent;SIG Render;hasName;TRUE;ProcessEvent has a name() method
+ProcessEvent;SIG Render;hasNameReturns;TRUE;ProcessEvent method name() returns String
+ProcessEvent;SIG Render;hasQname;TRUE;ProcessEvent has a qname() method
+ProcessEvent;SIG Render;hasQnameReturns;TRUE;ProcessEvent method qname() returns String
+ProcessEvent;SIG Render;isAnnotation;TRUE;ProcessEvent is an Annotation
+RenderMode;SIG Render;hasName;TRUE;RenderMode has a name() method
+RenderMode;SIG Render;hasNameReturns;TRUE;RenderMode method name() returns String
+RenderMode;SIG Render;isAnnotation;TRUE;RenderMode is an Annotation
+ResourceServingPortlet;SIG Render;hasServeResource;TRUE;ResourceServingPortlet has a serveResource(ResourceRequest, ResourceResponse) throws PortletException, java.io.IOException method
+ResourceServingPortlet;SIG Render;hasServeResourceReturns;TRUE;ResourceServingPortlet method serveResource(ResourceRequest, ResourceResponse) returns void
+WindowState;SIG Render;constructor;TRUE;WindowState provides constructor WindowState(String)
+WindowState;SIG Render;fieldMAXIMIZED;TRUE;WindowState has WindowState field MAXIMIZED
+WindowState;SIG Render;fieldMINIMIZED;TRUE;WindowState has WindowState field MINIMIZED
+WindowState;SIG Render;fieldNORMAL;TRUE;WindowState has WindowState field NORMAL
+WindowState;SIG Render;hasEquals;TRUE;WindowState has a equals(Object) method
+WindowState;SIG Render;hasEqualsReturns;TRUE;WindowState method equals(Object) returns boolean
+WindowState;SIG Render;hasHashCode;TRUE;WindowState has a hashCode() method
+WindowState;SIG Render;hasHashCodeReturns;TRUE;WindowState method hashCode() returns int
+WindowState;SIG Render;hasToString;TRUE;WindowState has a toString() method
+WindowState;SIG Render;hasToStringReturns;TRUE;WindowState method toString() returns String
+Sig Tests Event;;;; 142 tests.
+Event;SIG Event;hasGetName;TRUE;Event has a getName() method
+Event;SIG Event;hasGetNameReturns;TRUE;Event method getName() returns String
+Event;SIG Event;hasGetQName;TRUE;Event has a getQName() method
+Event;SIG Event;hasGetQNameReturns;TRUE;Event method getQName() returns javax.xml.namespace.QName
+Event;SIG Event;hasGetValue;TRUE;Event has a getValue() method
+Event;SIG Event;hasGetValueReturns;TRUE;Event method getValue() returns java.io.Serializable
+EventRequest;SIG Event;hasGetEvent;TRUE;EventRequest has a getEvent() method
+EventRequest;SIG Event;hasGetEventReturns;TRUE;EventRequest method getEvent() returns Event
+EventRequest;SIG Event;hasGetMethod;TRUE;EventRequest has a getMethod() method
+EventRequest;SIG Event;hasGetMethodReturns;TRUE;EventRequest method getMethod() returns String
+EventRequest;SIG Event;implementsPortletRequest;TRUE;EventRequest implements PortletRequest
+EventResponse;SIG Event;hasSetRenderParameters;TRUE;EventResponse has a setRenderParameters(EventRequest) method
+EventResponse;SIG Event;hasSetRenderParametersReturns;TRUE;EventResponse method setRenderParameters(EventRequest) returns void
+EventResponse;SIG Event;implementsStateAwareResponse;TRUE;EventResponse implements StateAwareResponse
+PortletRequest;SIG Event;fieldACTION_PHASE;TRUE;EventRequest has String field ACTION_PHASE
+PortletRequest;SIG Event;fieldACTION_SCOPE_ID;TRUE;EventRequest has String field ACTION_SCOPE_ID
+PortletRequest;SIG Event;fieldBASIC_AUTH;TRUE;EventRequest has String field BASIC_AUTH
+PortletRequest;SIG Event;fieldCCPP_PROFILE;TRUE;EventRequest has String field CCPP_PROFILE
+PortletRequest;SIG Event;fieldCLIENT_CERT_AUTH;TRUE;EventRequest has String field CLIENT_CERT_AUTH
+PortletRequest;SIG Event;fieldDIGEST_AUTH;TRUE;EventRequest has String field DIGEST_AUTH
+PortletRequest;SIG Event;fieldEVENT_PHASE;TRUE;EventRequest has String field EVENT_PHASE
+PortletRequest;SIG Event;fieldFORM_AUTH;TRUE;EventRequest has String field FORM_AUTH
+PortletRequest;SIG Event;fieldLIFECYCLE_PHASE;TRUE;EventRequest has String field LIFECYCLE_PHASE
+PortletRequest;SIG Event;fieldRENDER_HEADERS;TRUE;EventRequest has String field RENDER_HEADERS
+PortletRequest;SIG Event;fieldRENDER_MARKUP;TRUE;EventRequest has String field RENDER_MARKUP
+PortletRequest;SIG Event;fieldRENDER_PART;TRUE;EventRequest has String field RENDER_PART
+PortletRequest;SIG Event;fieldRENDER_PHASE;TRUE;EventRequest has String field RENDER_PHASE
+PortletRequest;SIG Event;fieldRESOURCE_PHASE;TRUE;EventRequest has String field RESOURCE_PHASE
+PortletRequest;SIG Event;fieldUSER_INFO;TRUE;EventRequest has String field USER_INFO
+PortletRequest;SIG Event;hasGetAttribute;TRUE;EventRequest has a getAttribute(String) method
+PortletRequest;SIG Event;hasGetAttributeNames;TRUE;EventRequest has a getAttributeNames() method
+PortletRequest;SIG Event;hasGetAttributeNamesReturns;TRUE;EventRequest method getAttributeNames() returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetAttributeReturns;TRUE;EventRequest method getAttribute(String) returns Object
+PortletRequest;SIG Event;hasGetAuthType;TRUE;EventRequest has a getAuthType() method
+PortletRequest;SIG Event;hasGetAuthTypeReturns;TRUE;EventRequest method getAuthType() returns String
+PortletRequest;SIG Event;hasGetContextPath;TRUE;EventRequest has a getContextPath() method
+PortletRequest;SIG Event;hasGetContextPathReturns;TRUE;EventRequest method getContextPath() returns String
+PortletRequest;SIG Event;hasGetCookies;TRUE;EventRequest has a getCookies() method
+PortletRequest;SIG Event;hasGetCookiesReturns;TRUE;EventRequest method getCookies() returns javax.servlet.http.Cookie[]
+PortletRequest;SIG Event;hasGetLocale;TRUE;EventRequest has a getLocale() method
+PortletRequest;SIG Event;hasGetLocaleReturns;TRUE;EventRequest method getLocale() returns java.util.Locale
+PortletRequest;SIG Event;hasGetLocales;TRUE;EventRequest has a getLocales() method
+PortletRequest;SIG Event;hasGetLocalesReturns;TRUE;EventRequest method getLocales() returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetParameter;TRUE;EventRequest has a getParameter(String) method
+PortletRequest;SIG Event;hasGetParameterMap;TRUE;EventRequest has a getParameterMap() method
+PortletRequest;SIG Event;hasGetParameterMapReturns;TRUE;EventRequest method getParameterMap() returns java.util.Map
+PortletRequest;SIG Event;hasGetParameterNames;TRUE;EventRequest has a getParameterNames() method
+PortletRequest;SIG Event;hasGetParameterNamesReturns;TRUE;EventRequest method getParameterNames() returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetParameterReturns;TRUE;EventRequest method getParameter(String) returns String
+PortletRequest;SIG Event;hasGetParameterValues;TRUE;EventRequest has a getParameterValues(String) method
+PortletRequest;SIG Event;hasGetParameterValuesReturns;TRUE;EventRequest method getParameterValues(String) returns String[]
+PortletRequest;SIG Event;hasGetPortalContext;TRUE;EventRequest has a getPortalContext() method
+PortletRequest;SIG Event;hasGetPortalContextReturns;TRUE;EventRequest method getPortalContext() returns PortalContext
+PortletRequest;SIG Event;hasGetPortletMode;TRUE;EventRequest has a getPortletMode() method
+PortletRequest;SIG Event;hasGetPortletModeReturns;TRUE;EventRequest method getPortletMode() returns PortletMode
+PortletRequest;SIG Event;hasGetPortletSession;TRUE;EventRequest has a getPortletSession() method
+PortletRequest;SIG Event;hasGetPortletSessionA;TRUE;EventRequest has a getPortletSession(boolean) method
+PortletRequest;SIG Event;hasGetPortletSessionReturns;TRUE;EventRequest method getPortletSession() returns PortletSession
+PortletRequest;SIG Event;hasGetPortletSessionReturnsA;TRUE;EventRequest method getPortletSession(boolean) returns PortletSession
+PortletRequest;SIG Event;hasGetPreferences;TRUE;EventRequest has a getPreferences() method
+PortletRequest;SIG Event;hasGetPreferencesReturns;TRUE;EventRequest method getPreferences() returns PortletPreferences
+PortletRequest;SIG Event;hasGetPrivateParameterMap;TRUE;EventRequest has a getPrivateParameterMap() method
+PortletRequest;SIG Event;hasGetPrivateParameterMapReturns;TRUE;EventRequest method getPrivateParameterMap() returns java.util.Map
+PortletRequest;SIG Event;hasGetProperties;TRUE;EventRequest has a getProperties(String) method
+PortletRequest;SIG Event;hasGetPropertiesReturns;TRUE;EventRequest method getProperties(String) returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetProperty;TRUE;EventRequest has a getProperty(String) method
+PortletRequest;SIG Event;hasGetPropertyNames;TRUE;EventRequest has a getPropertyNames() method
+PortletRequest;SIG Event;hasGetPropertyNamesReturns;TRUE;EventRequest method getPropertyNames() returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetPropertyReturns;TRUE;EventRequest method getProperty(String) returns String
+PortletRequest;SIG Event;hasGetPublicParameterMap;TRUE;EventRequest has a getPublicParameterMap() method
+PortletRequest;SIG Event;hasGetPublicParameterMapReturns;TRUE;EventRequest method getPublicParameterMap() returns java.util.Map
+PortletRequest;SIG Event;hasGetRemoteUser;TRUE;EventRequest has a getRemoteUser() method
+PortletRequest;SIG Event;hasGetRemoteUserReturns;TRUE;EventRequest method getRemoteUser() returns String
+PortletRequest;SIG Event;hasGetRequestedSessionId;TRUE;EventRequest has a getRequestedSessionId() method
+PortletRequest;SIG Event;hasGetRequestedSessionIdReturns;TRUE;EventRequest method getRequestedSessionId() returns String
+PortletRequest;SIG Event;hasGetResponseContentType;TRUE;EventRequest has a getResponseContentType() method
+PortletRequest;SIG Event;hasGetResponseContentTypeReturns;TRUE;EventRequest method getResponseContentType() returns String
+PortletRequest;SIG Event;hasGetResponseContentTypes;TRUE;EventRequest has a getResponseContentTypes() method
+PortletRequest;SIG Event;hasGetResponseContentTypesReturns;TRUE;EventRequest method getResponseContentTypes() returns java.util.Enumeration
+PortletRequest;SIG Event;hasGetScheme;TRUE;EventRequest has a getScheme() method
+PortletRequest;SIG Event;hasGetSchemeReturns;TRUE;EventRequest method getScheme() returns String
+PortletRequest;SIG Event;hasGetServerName;TRUE;EventRequest has a getServerName() method
+PortletRequest;SIG Event;hasGetServerNameReturns;TRUE;EventRequest method getServerName() returns String
+PortletRequest;SIG Event;hasGetServerPort;TRUE;EventRequest has a getServerPort() method
+PortletRequest;SIG Event;hasGetServerPortReturns;TRUE;EventRequest method getServerPort() returns int
+PortletRequest;SIG Event;hasGetUserPrincipal;TRUE;EventRequest has a getUserPrincipal() method
+PortletRequest;SIG Event;hasGetUserPrincipalReturns;TRUE;EventRequest method getUserPrincipal() returns java.security.Principal
+PortletRequest;SIG Event;hasGetWindowID;TRUE;EventRequest has a getWindowID() method
+PortletRequest;SIG Event;hasGetWindowIDReturns;TRUE;EventRequest method getWindowID() returns String
+PortletRequest;SIG Event;hasGetWindowState;TRUE;EventRequest has a getWindowState() method
+PortletRequest;SIG Event;hasGetWindowStateReturns;TRUE;EventRequest method getWindowState() returns WindowState
+PortletRequest;SIG Event;hasIsPortletModeAllowed;TRUE;EventRequest has a isPortletModeAllowed(PortletMode) method
+PortletRequest;SIG Event;hasIsPortletModeAllowedReturns;TRUE;EventRequest method isPortletModeAllowed(PortletMode) returns boolean
+PortletRequest;SIG Event;hasIsRequestedSessionIdValid;TRUE;EventRequest has a isRequestedSessionIdValid() method
+PortletRequest;SIG Event;hasIsRequestedSessionIdValidReturns;TRUE;EventRequest method isRequestedSessionIdValid() returns boolean
+PortletRequest;SIG Event;hasIsSecure;TRUE;EventRequest has a isSecure() method
+PortletRequest;SIG Event;hasIsSecureReturns;TRUE;EventRequest method isSecure() returns boolean
+PortletRequest;SIG Event;hasIsUserInRole;TRUE;EventRequest has a isUserInRole(String) method
+PortletRequest;SIG Event;hasIsUserInRoleReturns;TRUE;EventRequest method isUserInRole(String) returns boolean
+PortletRequest;SIG Event;hasIsWindowStateAllowed;TRUE;EventRequest has a isWindowStateAllowed(WindowState) method
+PortletRequest;SIG Event;hasIsWindowStateAllowedReturns;TRUE;EventRequest method isWindowStateAllowed(WindowState) returns boolean
+PortletRequest;SIG Event;hasRemoveAttribute;TRUE;EventRequest has a removeAttribute(String) method
+PortletRequest;SIG Event;hasRemoveAttributeReturns;TRUE;EventRequest method removeAttribute(String) returns void
+PortletRequest;SIG Event;hasSetAttribute;TRUE;EventRequest has a setAttribute(String, Object) method
+PortletRequest;SIG Event;hasSetAttributeReturns;TRUE;EventRequest method setAttribute(String, Object) returns void
+PortletResponse;SIG Event;hasAddProperty;TRUE;EventResponse has a addProperty(String, String) method
+PortletResponse;SIG Event;hasAddPropertyA;TRUE;EventResponse has a addProperty(javax.servlet.http.Cookie) method
+PortletResponse;SIG Event;hasAddPropertyB;TRUE;EventResponse has a addProperty(String, org.w3c.dom.Element) method
+PortletResponse;SIG Event;hasAddPropertyReturns;TRUE;EventResponse method addProperty(String, String) returns void
+PortletResponse;SIG Event;hasAddPropertyReturnsA;TRUE;EventResponse method addProperty(javax.servlet.http.Cookie) returns void
+PortletResponse;SIG Event;hasAddPropertyReturnsB;TRUE;EventResponse method addProperty(String, org.w3c.dom.Element) returns void
+PortletResponse;SIG Event;hasCreateElement;TRUE;EventResponse has a createElement(String) throws org.w3c.dom.DOMException method
+PortletResponse;SIG Event;hasCreateElementReturns;TRUE;EventResponse method createElement(String) returns org.w3c.dom.Element
+PortletResponse;SIG Event;hasEncodeURL;TRUE;EventResponse has a encodeURL(String) method
+PortletResponse;SIG Event;hasEncodeURLReturns;TRUE;EventResponse method encodeURL(String) returns String
+PortletResponse;SIG Event;hasGetNamespace;TRUE;EventResponse has a getNamespace() method
+PortletResponse;SIG Event;hasGetNamespaceReturns;TRUE;EventResponse method getNamespace() returns String
+PortletResponse;SIG Event;hasSetProperty;TRUE;EventResponse has a setProperty(String, String) method
+PortletResponse;SIG Event;hasSetPropertyReturns;TRUE;EventResponse method setProperty(String, String) returns void
+StateAwareResponse;SIG Event;hasGetPortletMode;TRUE;EventResponse has a getPortletMode() method
+StateAwareResponse;SIG Event;hasGetPortletModeReturns;TRUE;EventResponse method getPortletMode() returns PortletMode
+StateAwareResponse;SIG Event;hasGetRenderParameterMap;TRUE;EventResponse has a getRenderParameterMap() method
+StateAwareResponse;SIG Event;hasGetRenderParameterMapReturns;TRUE;EventResponse method getRenderParameterMap() returns java.util.Map
+StateAwareResponse;SIG Event;hasGetWindowState;TRUE;EventResponse has a getWindowState() method
+StateAwareResponse;SIG Event;hasGetWindowStateReturns;TRUE;EventResponse method getWindowState() returns WindowState
+StateAwareResponse;SIG Event;hasRemovePublicRenderParameter;TRUE;EventResponse has a removePublicRenderParameter(String) method
+StateAwareResponse;SIG Event;hasRemovePublicRenderParameterReturns;TRUE;EventResponse method removePublicRenderParameter(String) returns void
+StateAwareResponse;SIG Event;hasSetEvent;TRUE;EventResponse has a setEvent(javax.xml.namespace.QName, java.io.Serializable) method
+StateAwareResponse;SIG Event;hasSetEventA;TRUE;EventResponse has a setEvent(String, java.io.Serializable) method
+StateAwareResponse;SIG Event;hasSetEventReturns;TRUE;EventResponse method setEvent(javax.xml.namespace.QName, java.io.Serializable) returns void
+StateAwareResponse;SIG Event;hasSetEventReturnsA;TRUE;EventResponse method setEvent(String, java.io.Serializable) returns void
+StateAwareResponse;SIG Event;hasSetPortletMode;TRUE;EventResponse has a setPortletMode(PortletMode) throws PortletModeException method
+StateAwareResponse;SIG Event;hasSetPortletModeReturns;TRUE;EventResponse method setPortletMode(PortletMode) returns void
+StateAwareResponse;SIG Event;hasSetRenderParameter;TRUE;EventResponse has a setRenderParameter(String, String) method
+StateAwareResponse;SIG Event;hasSetRenderParameterA;TRUE;EventResponse has a setRenderParameter(String, String[]) method
+StateAwareResponse;SIG Event;hasSetRenderParameterReturns;TRUE;EventResponse method setRenderParameter(String, String) returns void
+StateAwareResponse;SIG Event;hasSetRenderParameterReturnsA;TRUE;EventResponse method setRenderParameter(String, String[]) returns void
+StateAwareResponse;SIG Event;hasSetRenderParameters;TRUE;EventResponse has a setRenderParameters(java.util.Map) method
+StateAwareResponse;SIG Event;hasSetRenderParametersReturns;TRUE;EventResponse method setRenderParameters(java.util.Map) returns void
+StateAwareResponse;SIG Event;hasSetWindowState;TRUE;EventResponse has a setWindowState(WindowState) throws WindowStateException method
+StateAwareResponse;SIG Event;hasSetWindowStateReturns;TRUE;EventResponse method setWindowState(WindowState) returns void
+StateAwareResponse;SIG Event;implementsPortletResponse;TRUE;EventResponse implements PortletResponse
+Sig Tests Exception;;;; 38 tests.
+PortletException;SIG Render;constructor;TRUE;PortletException provides constructor PortletException()
+PortletException;SIG Render;constructorA;TRUE;PortletException provides constructor PortletException(String)
+PortletException;SIG Render;constructorB;TRUE;PortletException provides constructor PortletException(String, Throwable)
+PortletException;SIG Render;constructorC;TRUE;PortletException provides constructor PortletException(Throwable)
+PortletException;SIG Render;extendsException;TRUE;PortletException extends Exception
+PortletModeException;SIG Render;constructor;TRUE;PortletModeException provides constructor PortletModeException(String, PortletMode)
+PortletModeException;SIG Render;constructorA;TRUE;PortletModeException provides constructor PortletModeException(String, Throwable, PortletMode)
+PortletModeException;SIG Render;constructorB;TRUE;PortletModeException provides constructor PortletModeException(Throwable, PortletMode)
+PortletModeException;SIG Render;extendsPortletException;TRUE;PortletModeException extends PortletException
+PortletModeException;SIG Render;hasGetMode;TRUE;PortletModeException has a getMode() method
+PortletModeException;SIG Render;hasGetModeReturns;TRUE;PortletModeException method getMode() returns PortletMode
+PortletSecurityException;SIG Render;constructor;TRUE;PortletSecurityException provides constructor PortletSecurityException(String)
+PortletSecurityException;SIG Render;constructorA;TRUE;PortletSecurityException provides constructor PortletSecurityException(String, Throwable)
+PortletSecurityException;SIG Render;constructorB;TRUE;PortletSecurityException provides constructor PortletSecurityException(Throwable)
+PortletSecurityException;SIG Render;extendsPortletException;TRUE;PortletSecurityException extends PortletException
+ReadOnlyException;SIG Render;constructor;TRUE;ReadOnlyException provides constructor ReadOnlyException(String)
+ReadOnlyException;SIG Render;constructorA;TRUE;ReadOnlyException provides constructor ReadOnlyException(String, Throwable)
+ReadOnlyException;SIG Render;constructorB;TRUE;ReadOnlyException provides constructor ReadOnlyException(Throwable)
+ReadOnlyException;SIG Render;extendsPortletException;TRUE;ReadOnlyException extends PortletException
+UnavailableException;SIG Render;constructor;TRUE;UnavailableException provides constructor UnavailableException(String)
+UnavailableException;SIG Render;constructorA;TRUE;UnavailableException provides constructor UnavailableException(String, int)
+UnavailableException;SIG Render;extendsPortletException;TRUE;UnavailableException extends PortletException
+UnavailableException;SIG Render;hasGetUnavailableSeconds;TRUE;UnavailableException has a getUnavailableSeconds() method
+UnavailableException;SIG Render;hasGetUnavailableSecondsReturns;TRUE;UnavailableException method getUnavailableSeconds() returns int
+UnavailableException;SIG Render;hasIsPermanent;TRUE;UnavailableException has a isPermanent() method
+UnavailableException;SIG Render;hasIsPermanentReturns;TRUE;UnavailableException method isPermanent() returns boolean
+ValidatorException;SIG Render;constructor;TRUE;ValidatorException provides constructor ValidatorException(String, java.util.Collection)
+ValidatorException;SIG Render;constructorA;TRUE;ValidatorException provides constructor ValidatorException(String, Throwable, java.util.Collection)
+ValidatorException;SIG Render;constructorB;TRUE;ValidatorException provides constructor ValidatorException(Throwable, java.util.Collection)
+ValidatorException;SIG Render;extendsPortletException;TRUE;ValidatorException extends PortletException
+ValidatorException;SIG Render;hasGetFailedKeys;TRUE;ValidatorException has a getFailedKeys() method
+ValidatorException;SIG Render;hasGetFailedKeysReturns;TRUE;ValidatorException method getFailedKeys() returns java.util.Enumeration
+WindowStateException;SIG Render;constructor;TRUE;WindowStateException provides constructor WindowStateException(String, WindowState)
+WindowStateException;SIG Render;constructorA;TRUE;WindowStateException provides constructor WindowStateException(String, Throwable, WindowState)
+WindowStateException;SIG Render;constructorB;TRUE;WindowStateException provides constructor WindowStateException(Throwable, WindowState)
+WindowStateException;SIG Render;extendsPortletException;TRUE;WindowStateException extends PortletException
+WindowStateException;SIG Render;hasGetState;TRUE;WindowStateException has a getState() method
+WindowStateException;SIG Render;hasGetStateReturns;TRUE;WindowStateException method getState() returns WindowState
+Sig Tests Filter;;;; 32 tests.
+ActionFilter;SIG Render;hasDoFilter;TRUE;ActionFilter has a doFilter(ActionRequest, ActionResponse, javax.portlet.filter.FilterChain) throws java.io.IOException, PortletException method
+ActionFilter;SIG Render;hasDoFilterReturns;TRUE;ActionFilter method doFilter(ActionRequest, ActionResponse, javax.portlet.filter.FilterChain) returns void
+ActionFilter;SIG Render;implementsPortletFilter;TRUE;ActionFilter implements PortletFilter
+EventFilter;SIG Render;hasDoFilter;TRUE;EventFilter has a doFilter(EventRequest, EventResponse, javax.portlet.filter.FilterChain) throws java.io.IOException, PortletException method
+EventFilter;SIG Render;hasDoFilterReturns;TRUE;EventFilter method doFilter(EventRequest, EventResponse, javax.portlet.filter.FilterChain) returns void
+EventFilter;SIG Render;implementsPortletFilter;TRUE;EventFilter implements PortletFilter
+FilterChain;SIG Render;hasDoFilter;TRUE;FilterChain has a doFilter(ActionRequest, ActionResponse) throws java.io.IOException, PortletException method
+FilterChain;SIG Render;hasDoFilterA;TRUE;FilterChain has a doFilter(EventRequest, EventResponse) throws java.io.IOException, PortletException method
+FilterChain;SIG Render;hasDoFilterB;TRUE;FilterChain has a doFilter(RenderRequest, RenderResponse) throws java.io.IOException, PortletException method
+FilterChain;SIG Render;hasDoFilterC;TRUE;FilterChain has a doFilter(ResourceRequest, ResourceResponse) throws java.io.IOException, PortletException method
+FilterChain;SIG Render;hasDoFilterReturns;TRUE;FilterChain method doFilter(ActionRequest, ActionResponse) returns void
+FilterChain;SIG Render;hasDoFilterReturnsA;TRUE;FilterChain method doFilter(EventRequest, EventResponse) returns void
+FilterChain;SIG Render;hasDoFilterReturnsB;TRUE;FilterChain method doFilter(RenderRequest, RenderResponse) returns void
+FilterChain;SIG Render;hasDoFilterReturnsC;TRUE;FilterChain method doFilter(ResourceRequest, ResourceResponse) returns void
+FilterConfig;SIG Render;hasGetFilterName;TRUE;FilterConfig has a getFilterName() method
+FilterConfig;SIG Render;hasGetFilterNameReturns;TRUE;FilterConfig method getFilterName() returns String
+FilterConfig;SIG Render;hasGetInitParameter;TRUE;FilterConfig has a getInitParameter(String) method
+FilterConfig;SIG Render;hasGetInitParameterNames;TRUE;FilterConfig has a getInitParameterNames() method
+FilterConfig;SIG Render;hasGetInitParameterNamesReturns;TRUE;FilterConfig method getInitParameterNames() returns java.util.Enumeration
+FilterConfig;SIG Render;hasGetInitParameterReturns;TRUE;FilterConfig method getInitParameter(String) returns String
+FilterConfig;SIG Render;hasGetPortletContext;TRUE;FilterConfig has a getPortletContext() method
+FilterConfig;SIG Render;hasGetPortletContextReturns;TRUE;FilterConfig method getPortletContext() returns PortletContext
+PortletFilter;SIG Render;hasDestroy;TRUE;PortletFilter has a destroy() method
+PortletFilter;SIG Render;hasDestroyReturns;TRUE;PortletFilter method destroy() returns void
+PortletFilter;SIG Render;hasInit;TRUE;PortletFilter has a init(javax.portlet.filter.FilterConfig) throws PortletException method
+PortletFilter;SIG Render;hasInitReturns;TRUE;PortletFilter method init(javax.portlet.filter.FilterConfig) returns void
+RenderFilter;SIG Render;hasDoFilter;TRUE;RenderFilter has a doFilter(RenderRequest, RenderResponse, javax.portlet.filter.FilterChain) throws java.io.IOException, PortletException method
+RenderFilter;SIG Render;hasDoFilterReturns;TRUE;RenderFilter method doFilter(RenderRequest, RenderResponse, javax.portlet.filter.FilterChain) returns void
+RenderFilter;SIG Render;implementsPortletFilter;TRUE;RenderFilter implements PortletFilter
+ResourceFilter;SIG Render;hasDoFilter;TRUE;ResourceFilter has a doFilter(ResourceRequest, ResourceResponse, javax.portlet.filter.FilterChain) throws java.io.IOException, PortletException method
+ResourceFilter;SIG Render;hasDoFilterReturns;TRUE;ResourceFilter method doFilter(ResourceRequest, ResourceResponse, javax.portlet.filter.FilterChain) returns void
+ResourceFilter;SIG Render;implementsPortletFilter;TRUE;ResourceFilter implements PortletFilter
+Sig Tests Render;;;; 241 tests.
+MimeResponse;SIG Render;fieldCACHE_SCOPE;TRUE;RenderResponse has String field CACHE_SCOPE
+MimeResponse;SIG Render;fieldETAG;TRUE;RenderResponse has String field ETAG
+MimeResponse;SIG Render;fieldEXPIRATION_CACHE;TRUE;RenderResponse has String field EXPIRATION_CACHE
+MimeResponse;SIG Render;fieldMARKUP_HEAD_ELEMENT;TRUE;RenderResponse has String field MARKUP_HEAD_ELEMENT
+MimeResponse;SIG Render;fieldNAMESPACED_RESPONSE;TRUE;RenderResponse has String field NAMESPACED_RESPONSE
+MimeResponse;SIG Render;fieldPRIVATE_SCOPE;TRUE;RenderResponse has String field PRIVATE_SCOPE
+MimeResponse;SIG Render;fieldPUBLIC_SCOPE;TRUE;RenderResponse has String field PUBLIC_SCOPE
+MimeResponse;SIG Render;fieldUSE_CACHED_CONTENT;TRUE;RenderResponse has String field USE_CACHED_CONTENT
+MimeResponse;SIG Render;hasCreateActionURL;TRUE;RenderResponse has a createActionURL() method
+MimeResponse;SIG Render;hasCreateActionURLReturns;TRUE;RenderResponse method createActionURL() returns PortletURL
+MimeResponse;SIG Render;hasCreateRenderURL;TRUE;RenderResponse has a createRenderURL() method
+MimeResponse;SIG Render;hasCreateRenderURLReturns;TRUE;RenderResponse method createRenderURL() returns PortletURL
+MimeResponse;SIG Render;hasCreateResourceURL;TRUE;RenderResponse has a createResourceURL() method
+MimeResponse;SIG Render;hasCreateResourceURLReturns;TRUE;RenderResponse method createResourceURL() returns ResourceURL
+MimeResponse;SIG Render;hasFlushBuffer;TRUE;RenderResponse has a flushBuffer() throws java.io.IOException method
+MimeResponse;SIG Render;hasFlushBufferReturns;TRUE;RenderResponse method flushBuffer() returns void
+MimeResponse;SIG Render;hasGetBufferSize;TRUE;RenderResponse has a getBufferSize() method
+MimeResponse;SIG Render;hasGetBufferSizeReturns;TRUE;RenderResponse method getBufferSize() returns int
+MimeResponse;SIG Render;hasGetCacheControl;TRUE;RenderResponse has a getCacheControl() method
+MimeResponse;SIG Render;hasGetCacheControlReturns;TRUE;RenderResponse method getCacheControl() returns CacheControl
+MimeResponse;SIG Render;hasGetCharacterEncoding;TRUE;RenderResponse has a getCharacterEncoding() method
+MimeResponse;SIG Render;hasGetCharacterEncodingReturns;TRUE;RenderResponse method getCharacterEncoding() returns String
+MimeResponse;SIG Render;hasGetContentType;TRUE;RenderResponse has a getContentType() method
+MimeResponse;SIG Render;hasGetContentTypeReturns;TRUE;RenderResponse method getContentType() returns String
+MimeResponse;SIG Render;hasGetLocale;TRUE;RenderResponse has a getLocale() method
+MimeResponse;SIG Render;hasGetLocaleReturns;TRUE;RenderResponse method getLocale() returns java.util.Locale
+MimeResponse;SIG Render;hasGetPortletOutputStream;TRUE;RenderResponse has a getPortletOutputStream() throws java.io.IOException, IllegalStateException method
+MimeResponse;SIG Render;hasGetPortletOutputStreamReturns;TRUE;RenderResponse method getPortletOutputStream() returns java.io.OutputStream
+MimeResponse;SIG Render;hasGetWriter;TRUE;RenderResponse has a getWriter() throws java.io.IOException, IllegalStateException method
+MimeResponse;SIG Render;hasGetWriterReturns;TRUE;RenderResponse method getWriter() returns java.io.PrintWriter
+MimeResponse;SIG Render;hasIsCommitted;TRUE;RenderResponse has a isCommitted() method
+MimeResponse;SIG Render;hasIsCommittedReturns;TRUE;RenderResponse method isCommitted() returns boolean
+MimeResponse;SIG Render;hasReset;TRUE;RenderResponse has a reset() method
+MimeResponse;SIG Render;hasResetBuffer;TRUE;RenderResponse has a resetBuffer() method
+MimeResponse;SIG Render;hasResetBufferReturns;TRUE;RenderResponse method resetBuffer() returns void
+MimeResponse;SIG Render;hasResetReturns;TRUE;RenderResponse method reset() returns void
+MimeResponse;SIG Render;hasSetBufferSize;TRUE;RenderResponse has a setBufferSize(int) method
+MimeResponse;SIG Render;hasSetBufferSizeReturns;TRUE;RenderResponse method setBufferSize(int) returns void
+MimeResponse;SIG Render;hasSetContentType;TRUE;RenderResponse has a setContentType(String) method
+MimeResponse;SIG Render;hasSetContentTypeReturns;TRUE;RenderResponse method setContentType(String) returns void
+MimeResponse;SIG Render;implementsPortletResponse;TRUE;RenderResponse implements PortletResponse
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_FRACTIONSECOND;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_FRACTIONSECOND
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_HMS_HOUR;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_HMS_HOUR
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_HMS_MINUTE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_HMS_MINUTE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_HMS_SECOND;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_HMS_SECOND
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_TIMEZONE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_TIMEZONE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_YMD_DAY;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_YMD_DAY
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_YMD_MONTH;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_YMD_MONTH
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BDATE_YMD_YEAR;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BDATE_YMD_YEAR
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_ONLINE_EMAIL;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_ONLINE_EMAIL
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_ONLINE_URI;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_ONLINE_URI
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_CITY;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_CITY
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_COUNTRY;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_COUNTRY
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_NAME;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_NAME
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_ORGANIZATION;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_ORGANIZATION
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_POSTALCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_POSTALCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_STATEPROV;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_STATEPROV
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_POSTAL_STREET;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_POSTAL_STREET
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_FAX_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_FAX_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_FAX_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_FAX_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_FAX_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_FAX_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_FAX_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_FAX_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_FAX_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_FAX_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_MOBILE_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_MOBILE_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_MOBILE_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_MOBILE_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_MOBILE_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_MOBILE_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_MOBILE_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_MOBILE_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_MOBILE_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_MOBILE_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_PAGER_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_PAGER_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_PAGER_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_PAGER_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_PAGER_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_PAGER_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_PAGER_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_PAGER_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_PAGER_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_PAGER_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_TELEPHONE_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_TELEPHONE_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_TELEPHONE_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_TELEPHONE_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_TELEPHONE_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_TELEPHONE_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_TELEPHONE_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_TELEPHONE_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_BUSINESSINFO_TELECOM_TELEPHONE_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_BUSINESSINFO_TELECOM_TELEPHONE_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_DEPARTMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_DEPARTMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_EMPLOYER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_EMPLOYER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_GENDER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_GENDER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_ONLINE_EMAIL;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_ONLINE_EMAIL
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_ONLINE_URI;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_ONLINE_URI
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_CITY;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_CITY
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_COUNTRY;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_COUNTRY
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_NAME;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_NAME
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_ORGANIZATION;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_ORGANIZATION
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_POSTALCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_POSTALCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_STATEPROV;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_STATEPROV
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_POSTAL_STREET;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_POSTAL_STREET
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_FAX_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_FAX_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_FAX_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_FAX_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_FAX_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_FAX_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_FAX_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_FAX_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_FAX_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_FAX_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_MOBILE_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_MOBILE_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_MOBILE_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_MOBILE_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_MOBILE_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_MOBILE_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_MOBILE_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_MOBILE_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_MOBILE_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_MOBILE_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_PAGER_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_PAGER_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_PAGER_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_PAGER_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_PAGER_INTCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_PAGER_INTCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_PAGER_LOCCODE;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_PAGER_LOCCODE
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_PAGER_NUMBER;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_PAGER_NUMBER
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_TELEPHONE_COMMENT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_TELEPHONE_COMMENT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_TELEPHONE_EXT;TRUE;PortletRequest$P3PUserInfos has PortletRequest$P3PUserInfos field USER_HOMEINFO_TELECOM_TELEPHONE_EXT
+PortletRequest$P3PUserInfos;SIG Render;fieldUSER_HOMEINFO_TELECOM_TELEPHONE_INTCODE;TRUE;PortletRe
<TRUNCATED>
[20/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Resource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Resource.java
deleted file mode 100644
index 171d454..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Resource.java
+++ /dev/null
@@ -1,912 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_PortletRequest_Resource_event
- *
- */
-public class RequestTests_PortletRequest_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISWINDOWSTATEALLOWED1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISWINDOWSTATEALLOWED2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISPORTLETMODEALLOWED1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISPORTLETMODEALLOWED2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETMODE);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETWINDOWSTATE);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPREFERENCES);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONA1);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONA2);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB1);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB2);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB3);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTLETSESSIONB4);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY1);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY2);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTYNAMES1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPROPERTYNAMES2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETAUTHTYPE1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETAUTHTYPE2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCONTEXTPATH3);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREMOTEUSER1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREMOTEUSER2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETUSERPRINCIPAL1);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETUSERPRINCIPAL2);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISUSERINROLE3);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE1);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE2);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTENAMES1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETATTRIBUTENAMES2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER1);
- /* TODO: implement test */
- tr54.appendTcDetail("Not implemented.");
- tr54.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER2);
- /* TODO: implement test */
- tr55.appendTcDetail("Not implemented.");
- tr55.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER3);
- /* TODO: implement test */
- tr56.appendTcDetail("Not implemented.");
- tr56.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER4);
- /* TODO: implement test */
- tr57.appendTcDetail("Not implemented.");
- tr57.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
- tr58.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERNAMES1);
- /* TODO: implement test */
- tr59.appendTcDetail("Not implemented.");
- tr59.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERNAMES2);
- /* TODO: implement test */
- tr60.appendTcDetail("Not implemented.");
- tr60.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES1);
- /* TODO: implement test */
- tr61.appendTcDetail("Not implemented.");
- tr61.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES2);
- /* TODO: implement test */
- tr62.appendTcDetail("Not implemented.");
- tr62.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES3);
- /* TODO: implement test */
- tr63.appendTcDetail("Not implemented.");
- tr63.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
- tr64.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr65.appendTcDetail("Not implemented.");
- tr65.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr66.appendTcDetail("Not implemented.");
- tr66.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr67.appendTcDetail("Not implemented.");
- tr67.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISSECURE1);
- /* TODO: implement test */
- tr68.appendTcDetail("Not implemented.");
- tr68.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISSECURE2);
- /* TODO: implement test */
- tr69.appendTcDetail("Not implemented.");
- tr69.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE1);
- /* TODO: implement test */
- tr70.appendTcDetail("Not implemented.");
- tr70.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE2);
- /* TODO: implement test */
- tr71.appendTcDetail("Not implemented.");
- tr71.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
- tr72.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the request" */
- TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_REMOVEATTRIBUTE1);
- /* TODO: implement test */
- tr73.appendTcDetail("Not implemented.");
- tr73.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
- tr74.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getRequestedSessionId1 */
- /* Details: "Method getRequestedSessionId(): Returns the session ID */
- /* indicated in the client request" */
- TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREQUESTEDSESSIONID1);
- /* TODO: implement test */
- tr75.appendTcDetail("Not implemented.");
- tr75.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getRequestedSessionId2 */
- /* Details: "Method getRequestedSessionId(): Returns null if no */
- /* session ID was indicated in the client request" */
- TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETREQUESTEDSESSIONID2);
- /* TODO: implement test */
- tr76.appendTcDetail("Not implemented.");
- tr76.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid1 */
- /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
- /* session ID is valid" */
- TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISREQUESTEDSESSIONIDVALID1);
- /* TODO: implement test */
- tr77.appendTcDetail("Not implemented.");
- tr77.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid2 */
- /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
- /* session ID is not valid" */
- TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_ISREQUESTEDSESSIONIDVALID2);
- /* TODO: implement test */
- tr78.appendTcDetail("Not implemented.");
- tr78.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getResponseContentType1 */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* representing the portal preferred content type for the response if */
- /* the content type is defined in the portlet descriptor " */
- TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPE1);
- /* TODO: implement test */
- tr79.appendTcDetail("Not implemented.");
- tr79.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getResponseContentType2 */
- /* Details: "Method getResponseContentType(): Returns an empty */
- /* Enumeration if the content type is not defined in the portlet */
- /* descriptor" */
- TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPE2);
- /* TODO: implement test */
- tr80.appendTcDetail("Not implemented.");
- tr80.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getResponseContentTypes1 */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object representing */
- /* the portal preferred content types for the response if the content */
- /* types are defined in the portlet descriptor" */
- TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPES1);
- /* TODO: implement test */
- tr81.appendTcDetail("Not implemented.");
- tr81.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getResponseContentTypes2 */
- /* Details: "Method getResponseContentTypes(): Returns an empty */
- /* Enumeration if the content types are not defined in the portlet */
- /* descriptor" */
- TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETRESPONSECONTENTTYPES2);
- /* TODO: implement test */
- tr82.appendTcDetail("Not implemented.");
- tr82.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale object */
- /* representing the preferred Locale for the response" */
- TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETLOCALE);
- /* TODO: implement test */
- tr83.appendTcDetail("Not implemented.");
- tr83.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getLocales */
- /* Details: "Method getLocales(): Returns an */
- /* java.util.Enumeration<java.util.Locale> of the Locales in */
- /* which the portal will accept content" */
- TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETLOCALES);
- /* TODO: implement test */
- tr84.appendTcDetail("Not implemented.");
- tr84.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getScheme */
- /* Details: "Method getScheme(): Returns a String value representing */
- /* the scheme name for the request" */
- TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETSCHEME);
- /* TODO: implement test */
- tr85.appendTcDetail("Not implemented.");
- tr85.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getServerName */
- /* Details: "Method getServerName(): Returns a String value */
- /* representing the host name for the request" */
- TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETSERVERNAME);
- /* TODO: implement test */
- tr86.appendTcDetail("Not implemented.");
- tr86.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getServerPort */
- /* Details: "Method getServerPort(): Returns an int value */
- /* representing the port number for the request" */
- TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETSERVERPORT);
- /* TODO: implement test */
- tr87.appendTcDetail("Not implemented.");
- tr87.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getWindowID */
- /* Details: "Method getWindowID(): Returns a String value */
- /* representing the portlet window ID" */
- TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETWINDOWID);
- /* TODO: implement test */
- tr88.appendTcDetail("Not implemented.");
- tr88.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getCookies1 */
- /* Details: "Method getCookies(): Returns a */
- /* javax.servlet.http.Cookie[] array containing the cookies for this */
- /* request" */
- TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCOOKIES1);
- /* TODO: implement test */
- tr89.appendTcDetail("Not implemented.");
- tr89.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getCookies2 */
- /* Details: "Method getCookies(): Returns null if no cookies are */
- /* present" */
- TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETCOOKIES2);
- /* TODO: implement test */
- tr90.appendTcDetail("Not implemented.");
- tr90.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPrivateParameterMap1 */
- /* Details: "Method getPrivateParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the private parameter names and values if available" */
- TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPRIVATEPARAMETERMAP1);
- /* TODO: implement test */
- tr91.appendTcDetail("Not implemented.");
- tr91.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPrivateParameterMap2 */
- /* Details: "Method getPrivateParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPRIVATEPARAMETERMAP2);
- /* TODO: implement test */
- tr92.appendTcDetail("Not implemented.");
- tr92.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPrivateParameterMap3 */
- /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
- /* no private parameters exist" */
- TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPRIVATEPARAMETERMAP3);
- /* TODO: implement test */
- tr93.appendTcDetail("Not implemented.");
- tr93.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPublicParameterMap1 */
- /* Details: "Method getPublicParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the public parameter names and values if available" */
- TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPUBLICPARAMETERMAP1);
- /* TODO: implement test */
- tr94.appendTcDetail("Not implemented.");
- tr94.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPublicParameterMap2 */
- /* Details: "Method getPublicParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPUBLICPARAMETERMAP2);
- /* TODO: implement test */
- tr95.appendTcDetail("Not implemented.");
- tr95.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_getPublicParameterMap3 */
- /* Details: "Method getPublicParameterMap(): Returns an empty map if */
- /* no public parameters exist" */
- TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_GETPUBLICPARAMETERMAP3);
- /* TODO: implement test */
- tr96.appendTcDetail("Not implemented.");
- tr96.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Resource_exists */
- /* Details: "Method exists(): The P3PUserInfos exist as a public */
- /* static enum" */
- TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_RESOURCE_EXISTS);
- /* TODO: implement test */
- tr97.appendTcDetail("Not implemented.");
- tr97.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"RequestTests_PortletRequest_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"RequestTests_PortletRequest_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
new file mode 100644
index 0000000..3554566
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
@@ -0,0 +1,120 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_RenderRequest_ApiRender_event
+ *
+ */
+public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_RenderRequest_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_RenderRequest_ApiRender_fieldETAG */
+ /* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RENDERREQUEST_APIRENDER_FIELDETAG);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_RenderRequest_ApiRender_getETag2 */
+ /* Details: "Method getETag(): Returns null if there is no cached */
+ /* response" */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_RENDERREQUEST_APIRENDER_GETETAG2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_Render.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_Render.java
deleted file mode 100644
index 4033710..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_Render.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_RenderRequest_Render_event
- *
- */
-public class RequestTests_RenderRequest_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_RenderRequest_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_RenderRequest_Render_fieldETAG */
- /* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RENDERREQUEST_RENDER_FIELDETAG);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_RenderRequest_Render_getETag2 */
- /* Details: "Method getETag(): Returns null if there is no cached */
- /* response" */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_RENDERREQUEST_RENDER_GETETAG2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
new file mode 100644
index 0000000..511086f
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
@@ -0,0 +1,209 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_ResourceRequest_ApiResource_event
+ *
+ */
+public class RequestTests_ResourceRequest_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_ResourceRequest_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_fieldETAG */
+ /* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_FIELDETAG);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getETag2 */
+ /* Details: "Method getETag(): Returns null if there is no cached */
+ /* response" */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETETAG2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getResourceID1 */
+ /* Details: "Method getResourceID(): Returns a String containing the */
+ /* resource ID set on the resource URL" */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETRESOURCEID1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getResourceID2 */
+ /* Details: "Method getResourceID(): Returns null if no resource ID */
+ /* was set on the URL" */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETRESOURCEID2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap1 */
+ /* Details: "Method getPrivateRenderParameterMap(): Returns a */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* containing the private render parameters for the request" */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap2 */
+ /* Details: "Method getPrivateRenderParameterMap(): The returned map */
+ /* does not contain the resource parameters set on the URL" */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap3 */
+ /* Details: "Method getPrivateRenderParameterMap(): The returned map */
+ /* is immutable" */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap4 */
+ /* Details: "Method getPrivateRenderParameterMap(): Returns an empty */
+ /* map if there are no private render parameters" */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getResponseContentType */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* containing the preferred content type for the resonse" */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getResponseContentTypes */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object containing */
+ /* the content types that will be accepted for the response" */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETRESPONSECONTENTTYPES);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ResourceRequest_ApiResource_getCacheability */
+ /* Details: "Method getCacheability(): Returns a String containing */
+ /* the cache level of the resource request" */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_APIRESOURCE_GETCACHEABILITY);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"RequestTests_ResourceRequest_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"RequestTests_ResourceRequest_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_Resource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_Resource.java
deleted file mode 100644
index dded683..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_Resource.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_ResourceRequest_Resource_event
- *
- */
-public class RequestTests_ResourceRequest_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ResourceRequest_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_fieldETAG */
- /* Details: "Has String field ETAG with value of \"portlet.ETag\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_FIELDETAG);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getETag2 */
- /* Details: "Method getETag(): Returns null if there is no cached */
- /* response" */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETETAG2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getResourceID1 */
- /* Details: "Method getResourceID(): Returns a String containing the */
- /* resource ID set on the resource URL" */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETRESOURCEID1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getResourceID2 */
- /* Details: "Method getResourceID(): Returns null if no resource ID */
- /* was set on the URL" */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETRESOURCEID2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap1 */
- /* Details: "Method getPrivateRenderParameterMap(): Returns a */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* containing the private render parameters for the request" */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETPRIVATERENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap2 */
- /* Details: "Method getPrivateRenderParameterMap(): The returned map */
- /* does not contain the resource parameters set on the URL" */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETPRIVATERENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap3 */
- /* Details: "Method getPrivateRenderParameterMap(): The returned map */
- /* is immutable" */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETPRIVATERENDERPARAMETERMAP3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap4 */
- /* Details: "Method getPrivateRenderParameterMap(): Returns an empty */
- /* map if there are no private render parameters" */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETPRIVATERENDERPARAMETERMAP4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getResponseContentType */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* containing the preferred content type for the resonse" */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETRESPONSECONTENTTYPE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getResponseContentTypes */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object containing */
- /* the content types that will be accepted for the response" */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETRESPONSECONTENTTYPES);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_ResourceRequest_Resource_getCacheability */
- /* Details: "Method getCacheability(): Returns a String containing */
- /* the cache level of the resource request" */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_RESOURCEREQUEST_RESOURCE_GETCACHEABILITY);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"RequestTests_ResourceRequest_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"RequestTests_ResourceRequest_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[52/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
deleted file mode 100644
index c5a686a..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_EventResponseWrapper_ApiRender_event
- *
- */
-public class WrapperTests_EventResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_EventResponseWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setEventA */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setEventB */
- /* Details: "Method setEvent(String, java.io.Serializable): Calls */
- /* wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setPortletMode */
- /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
- /* method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterA */
- /* Details: "Method setRenderParameter(String, String): Calls wrapped */
- /* method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterB */
- /* Details: "Method setRenderParameter(String, String[]): Calls */
- /* wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersA */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSA);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersB */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSB);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setWindowState */
- /* Details: "Method setWindowState(WindowState): Calls wrapped */
- /* method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getResponse */
- /* Details: "Method getResponse(): Returns wrapped EventResponse */
- /* obect" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setResponse */
- /* Details: "Method setResponse(EventResponse): Allows wrapped */
- /* EventResponse object to be set" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getPortletMode */
- /* Details: "Method getPortletMode(): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): Returns */
- /* java.util.Map<java.lang.String,java.lang.String[]> object" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getWindowState */
- /* Details: "Method getWindowState(): Calls wrapped method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_removePublicRenderParameter */
- /* Details: "Method removePublicRenderParameter(String): Calls */
- /* wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
index 5b0259d..2b70963 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
@@ -96,294 +96,430 @@ public class WrapperTests_PortletRequestWrapper_ApiRender implements Portlet, Re
PrintWriter writer = portletResp.getWriter();
+ PortletRequestWrapperChecker wc = new PortletRequestWrapperChecker(portletReq);
+ PortletRequestWrapper wpr = new PortletRequestWrapper(portletReq);
+ wpr.setRequest(wc);
JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletRequestWrapper.class);
+
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAttribute */
/* Details: "Method getAttribute(String): Calls wrapped method" */
TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr0, "getAttribute", args);
+ wc.checkRetval(wpr.getAttribute(parm1));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAttributeNames */
/* Details: "Method getAttributeNames(): Calls wrapped method" */
TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTENAMES);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr1, "getAttributeNames", args);
+ wc.checkRetval(wpr.getAttributeNames());
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAuthType */
/* Details: "Method getAuthType(): Calls wrapped method" */
TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETAUTHTYPE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getAuthType", args);
+ wc.checkRetval(wpr.getAuthType());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getContextPath */
/* Details: "Method getContextPath(): Calls wrapped method" */
TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETCONTEXTPATH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr3, "getContextPath", args);
+ wc.checkRetval(wpr.getContextPath());
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getCookies */
/* Details: "Method getCookies(): Calls wrapped method" */
TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETCOOKIES);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr4, "getCookies", args);
+ wc.checkRetval(wpr.getCookies());
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getLocale */
/* Details: "Method getLocale(): Calls wrapped method" */
TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETLOCALE);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr5, "getLocale", args);
+ wc.checkRetval(wpr.getLocale());
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getLocales */
/* Details: "Method getLocales(): Calls wrapped method" */
TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETLOCALES);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr6, "getLocales", args);
+ wc.checkRetval(wpr.getLocales());
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameter */
/* Details: "Method getParameter(String): Calls wrapped method" */
TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETER);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr7, "getParameter", args);
+ wc.checkRetval(wpr.getParameter(parm1));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterMap */
/* Details: "Method getParameterMap(): Calls wrapped method" */
TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERMAP);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr8, "getParameterMap", args);
+ wc.checkRetval(wpr.getParameterMap());
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterNames */
/* Details: "Method getParameterNames(): Calls wrapped method" */
TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERNAMES);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr9, "getParameterNames", args);
+ wc.checkRetval(wpr.getParameterNames());
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterValues */
/* Details: "Method getParameterValues(String): Calls wrapped method" */
TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERVALUES);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr10, "getParameterValues", args);
+ wc.checkRetval(wpr.getParameterValues(parm1));
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortalContext */
/* Details: "Method getPortalContext(): Calls wrapped method" */
TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr11, "getPortalContext", args);
+ wc.checkRetval(wpr.getPortalContext());
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletMode */
/* Details: "Method getPortletMode(): Calls wrapped method" */
TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr12, "getPortletMode", args);
+ wc.checkRetval(wpr.getPortletMode());
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionA */
/* Details: "Method getPortletSession(): Calls wrapped method" */
TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETSESSIONA);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr13, "getPortletSession", args);
+ wc.checkRetval(wpr.getPortletSession());
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionB */
/* Details: "Method getPortletSession(boolean): Calls wrapped method" */
TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETSESSIONB);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ boolean parm1 = true;
+ Object[] args = {parm1};
+ wc.prepare(tr14, "getPortletSession", args);
+ wc.checkRetval(wpr.getPortletSession(parm1));
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPreferences */
/* Details: "Method getPreferences(): Calls wrapped method" */
TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPREFERENCES);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr15, "getPreferences", args);
+ wc.checkRetval(wpr.getPreferences());
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getProperties */
/* Details: "Method getProperties(String): Calls wrapped method" */
TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTIES);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr16, "getProperties", args);
+ wc.checkRetval(wpr.getProperties(parm1));
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getProperty */
/* Details: "Method getProperty(String): Calls wrapped method" */
TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTY);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr17, "getProperty", args);
+ wc.checkRetval(wpr.getProperty(parm1));
+ } catch(Exception e) {tr17.appendTcDetail(e.toString());}
tr17.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPropertyNames */
/* Details: "Method getPropertyNames(): Calls wrapped method" */
TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTYNAMES);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr18, "getPropertyNames", args);
+ wc.checkRetval(wpr.getPropertyNames());
+ } catch(Exception e) {tr18.appendTcDetail(e.toString());}
tr18.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRemoteUser */
/* Details: "Method getRemoteUser(): Calls wrapped method" */
TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREMOTEUSER);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr19, "getRemoteUser", args);
+ wc.checkRetval(wpr.getRemoteUser());
+ } catch(Exception e) {tr19.appendTcDetail(e.toString());}
tr19.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRequestedSessionId */
/* Details: "Method getRequestedSessionId(): Calls wrapped method" */
TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREQUESTEDSESSIONID);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr20, "getRequestedSessionId", args);
+ wc.checkRetval(wpr.getRequestedSessionId());
+ } catch(Exception e) {tr20.appendTcDetail(e.toString());}
tr20.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentType */
/* Details: "Method getResponseContentType(): Calls wrapped method" */
TestResult tr21 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETRESPONSECONTENTTYPE);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr21, "getResponseContentType", args);
+ wc.checkRetval(wpr.getResponseContentType());
+ } catch(Exception e) {tr21.appendTcDetail(e.toString());}
tr21.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentTypes */
/* Details: "Method getResponseContentTypes(): Calls wrapped method" */
TestResult tr22 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETRESPONSECONTENTTYPES);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr22, "getResponseContentTypes", args);
+ wc.checkRetval(wpr.getResponseContentTypes());
+ } catch(Exception e) {tr22.appendTcDetail(e.toString());}
tr22.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getScheme */
/* Details: "Method getScheme(): Calls wrapped method" */
TestResult tr23 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSCHEME);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr23, "getScheme", args);
+ wc.checkRetval(wpr.getScheme());
+ } catch(Exception e) {tr23.appendTcDetail(e.toString());}
tr23.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getServerName */
/* Details: "Method getServerName(): Calls wrapped method" */
TestResult tr24 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSERVERNAME);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr24, "getServerName", args);
+ wc.checkRetval(wpr.getServerName());
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getServerPort */
/* Details: "Method getServerPort(): Calls wrapped method" */
TestResult tr25 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSERVERPORT);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr25, "getServerPort", args);
+ wc.checkRetval(wpr.getServerPort());
+ } catch(Exception e) {tr25.appendTcDetail(e.toString());}
tr25.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getUserPrincipal */
/* Details: "Method getUserPrincipal(): Calls wrapped method" */
TestResult tr26 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETUSERPRINCIPAL);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr26, "getUserPrincipal", args);
+ wc.checkRetval(wpr.getUserPrincipal());
+ } catch(Exception e) {tr26.appendTcDetail(e.toString());}
tr26.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowID */
/* Details: "Method getWindowID(): Calls wrapped method" */
TestResult tr27 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETWINDOWID);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr27, "getWindowID", args);
+ wc.checkRetval(wpr.getWindowID());
+ } catch(Exception e) {tr27.appendTcDetail(e.toString());}
tr27.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowState */
/* Details: "Method getWindowState(): Calls wrapped method" */
TestResult tr28 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr28, "getWindowState", args);
+ wc.checkRetval(wpr.getWindowState());
+ } catch(Exception e) {tr28.appendTcDetail(e.toString());}
tr28.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isPortletModeAllowed */
/* Details: "Method isPortletModeAllowed(PortletMode): Calls wrapped */
/* method" */
TestResult tr29 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISPORTLETMODEALLOWED);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ PortletMode parm1 = PortletMode.EDIT;
+ Object[] args = {parm1};
+ wc.prepare(tr29, "isPortletModeAllowed", args);
+ wc.checkRetval(wpr.isPortletModeAllowed(parm1));
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isRequestedSessionIdValid */
/* Details: "Method isRequestedSessionIdValid(): Calls wrapped */
/* method" */
TestResult tr30 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISREQUESTEDSESSIONIDVALID);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr30, "isRequestedSessionIdValid", args);
+ wc.checkRetval(wpr.isRequestedSessionIdValid());
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isSecure */
/* Details: "Method isSecure(): Calls wrapped method" */
TestResult tr31 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISSECURE);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr31, "isSecure", args);
+ wc.checkRetval(wpr.isSecure());
+ } catch(Exception e) {tr31.appendTcDetail(e.toString());}
tr31.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isUserInRole */
- /* Details: "Method isUserInRole(): Calls wrapped method" */
+ /* Details: "Method isUserInRole(String): Calls wrapped method" */
TestResult tr32 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISUSERINROLE);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr32, "isUserInRole", args);
+ wc.checkRetval(wpr.isUserInRole(parm1));
+ } catch(Exception e) {tr32.appendTcDetail(e.toString());}
tr32.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isWindowStateAllowed */
/* Details: "Method isWindowStateAllowed(WindowState): Calls wrapped */
/* method" */
TestResult tr33 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISWINDOWSTATEALLOWED);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ WindowState parm1 = WindowState.NORMAL;
+ Object[] args = {parm1};
+ wc.prepare(tr33, "isWindowStateAllowed", args);
+ wc.checkRetval(wpr.isWindowStateAllowed(parm1));
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_removeAttribute */
/* Details: "Method removeAttribute(String): Calls wrapped method" */
TestResult tr34 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_REMOVEATTRIBUTE);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr34, "removeAttribute", args);
+ wpr.removeAttribute(parm1);
+ } catch(Exception e) {tr34.appendTcDetail(e.toString());}
tr34.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_setAttribute */
/* Details: "Method setAttribute(String, Object): Calls wrapped */
/* method" */
TestResult tr35 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_SETATTRIBUTE);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr35, "setAttribute", args);
+ wpr.setAttribute(parm1, parm2);
+ } catch(Exception e) {tr35.appendTcDetail(e.toString());}
tr35.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRequest */
/* Details: "Method getRequest(): Returns wrapped PortletRequest */
/* object" */
TestResult tr36 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREQUEST);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ PortletRequest r = wpr.getRequest();
+ tr36.setTcSuccess(r == wc);
+ } catch(Exception e) {tr36.appendTcDetail(e.toString());}
tr36.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_setRequest */
/* Details: "Method setRequest(PortletRequest): Allows wrapped */
/* PortletRequest object to be set" */
TestResult tr37 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_SETREQUEST);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
+ try {
+ // tested by method set up
+ tr37.setTcSuccess(true);
+ } catch(Exception e) {tr37.appendTcDetail(e.toString());}
tr37.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPrivateParameterMap */
/* Details: "Method getPrivateParameterMap(): Calls wrapped method" */
TestResult tr38 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPRIVATEPARAMETERMAP);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr38, "getPrivateParameterMap", args);
+ wc.checkRetval(wpr.getPrivateParameterMap());
+ } catch(Exception e) {tr38.appendTcDetail(e.toString());}
tr38.writeTo(writer);
/* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPublicParameterMap */
/* Details: "Method getPublicParameterMap(): Calls wrapped method" */
TestResult tr39 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPUBLICPARAMETERMAP);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr39, "getPublicParameterMap", args);
+ wc.checkRetval(wpr.getPublicParameterMap());
+ } catch(Exception e) {tr39.appendTcDetail(e.toString());}
tr39.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
index 2379bb4..aa5d121 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
@@ -96,77 +96,117 @@ public class WrapperTests_PortletResponseWrapper_ApiRender implements Portlet, R
PrintWriter writer = portletResp.getWriter();
+ PortletResponseWrapperChecker wc = new PortletResponseWrapperChecker(portletResp);
+ PortletResponseWrapper wpr = new PortletResponseWrapper(portletResp);
+ wpr.setResponse(wc);
JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletResponseWrapper.class);
+
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyA */
/* Details: "Method addProperty(javax.servlet.http.Cookie): Calls */
/* wrapped method" */
TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ Cookie parm1 = new Cookie("name", "Alice");
+ Object[] args = {parm1};
+ wc.prepare(tr0, "addProperty", args);
+ wpr.addProperty(parm1);
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyB */
/* Details: "Method addProperty(String, org.w3c.dom.Element): Calls */
/* wrapped method" */
TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ org.w3c.dom.Element parm2 = portletResp.createElement("p");
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr1, "addProperty", args);
+ wpr.addProperty(parm1, parm2);
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyC */
/* Details: "Method addProperty(String, String): Calls wrapped */
/* method" */
TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYC);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr2, "addProperty", args);
+ wpr.addProperty(parm1, parm2);
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_encodeURL */
/* Details: "Method encodeURL(String): Calls wrapped method" */
TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ENCODEURL);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr3, "encodeURL", args);
+ wc.checkRetval(wpr.encodeURL(parm1));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_getNamespace */
/* Details: "Method getNamespace(): Calls wrapped method" */
TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_GETNAMESPACE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr4, "getNamespace", args);
+ wc.checkRetval(wpr.getNamespace());
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_setProperty */
/* Details: "Method setProperty(String, String): Calls wrapped */
/* method" */
TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_SETPROPERTY);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ String parm2 = "val2";
+ Object[] args = {parm1, parm2};
+ wc.prepare(tr5, "setProperty", args);
+ wpr.setProperty(parm1, parm2);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_getResponse */
/* Details: "Method getResponse(): Returns wrapped PortletResponse */
/* object" */
TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ PortletResponse r = wpr.getResponse();
+ tr6.setTcSuccess(r == wc);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_setResponse */
/* Details: "Method setResponse(PortletResponse): Allows wrapped */
/* PortletResponse object to be set" */
TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ // tested by method set up
+ tr7.setTcSuccess(true);
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_createElement */
/* Details: "Method createElement(String): Calls wrapped method" */
TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_CREATEELEMENT);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr8, "createElement", args);
+ wc.checkRetval(wpr.createElement(parm1));
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
index 86e31b2..74d8b0d 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
@@ -96,31 +96,44 @@ public class WrapperTests_RenderRequestWrapper_ApiRender implements Portlet, Res
PrintWriter writer = portletResp.getWriter();
+ RenderRequestWrapperChecker wc = new RenderRequestWrapperChecker(portletReq);
+ RenderRequestWrapper wpr = new RenderRequestWrapper(portletReq);
+ wpr.setRequest(wc);
JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(RenderRequestWrapper.class);
+
/* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_getRequest */
/* Details: "Method getRequest(): Returns wrapped RenderRequest */
/* object" */
TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_GETREQUEST);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ RenderRequest r = wpr.getRequest();
+ tr0.setTcSuccess(r == wc);
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_setRequest */
/* Details: "Method setRequest(RenderRequest): Allows wrapped */
/* RenderRequest object to be set " */
TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_SETREQUEST);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ // tested by method set up
+ tr1.setTcSuccess(true);
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_getETag */
/* Details: "Method getETag(): Calls wrapped method" */
TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_GETETAG);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getETag", args);
+ wc.checkRetval(wpr.getETag());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
index 983d2a3..ad590d5 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
@@ -96,106 +96,156 @@ public class WrapperTests_RenderResponseWrapper_ApiRender implements Portlet, Re
PrintWriter writer = portletResp.getWriter();
+ RenderResponseWrapperChecker wc = new RenderResponseWrapperChecker(portletResp);
+ RenderResponseWrapper wpr = new RenderResponseWrapper(portletResp);
+ wpr.setResponse(wc);
JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(RenderResponseWrapper.class);
+
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_flushBuffer */
/* Details: "Method flushBuffer(): Calls wrapped method" */
TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_FLUSHBUFFER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr0, "flushBuffer", args);
+ wpr.flushBuffer();
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getBufferSize */
/* Details: "Method getBufferSize(): Calls wrapped method" */
TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr1, "getBufferSize", args);
+ wc.checkRetval(wpr.getBufferSize());
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getCharacterEncoding */
/* Details: "Method getCharacterEncoding(): Calls wrapped method" */
TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getCharacterEncoding", args);
+ wc.checkRetval(wpr.getCharacterEncoding());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getContentType */
/* Details: "Method getContentType(): Calls wrapped method" */
TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr3, "getContentType", args);
+ wc.checkRetval(wpr.getContentType());
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getLocale */
/* Details: "Method getLocale(): Calls wrapped method" */
TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETLOCALE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr4, "getLocale", args);
+ wc.checkRetval(wpr.getLocale());
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getPortletOutputStream */
/* Details: "Method getPortletOutputStream(): Calls wrapped method" */
TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr5, "getPortletOutputStream", args);
+ wc.checkRetval(wpr.getPortletOutputStream());
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getWriter */
/* Details: "Method getWriter(): Calls wrapped method" */
TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETWRITER);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr6, "getWriter", args);
+ wc.checkRetval(wpr.getWriter());
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_isCommitted */
/* Details: "Method isCommitted(): Calls wrapped method" */
TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_ISCOMMITTED);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr7, "isCommitted", args);
+ wc.checkRetval(wpr.isCommitted());
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_reset */
/* Details: "Method reset(): Calls wrapped method" */
TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_RESET);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr8, "reset", args);
+ wpr.reset();
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_resetBuffer */
/* Details: "Method resetBuffer(): Calls wrapped method" */
TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_RESETBUFFER);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr9, "resetBuffer", args);
+ wpr.resetBuffer();
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setBufferSize */
/* Details: "Method setBufferSize(int): Calls wrapped method" */
TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ int parm1 = 42;
+ Object[] args = {parm1};
+ wc.prepare(tr10, "setBufferSize", args);
+ wpr.setBufferSize(parm1);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setContentType */
/* Details: "Method setContentType(String): Calls wrapped method" */
TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr11, "setContentType", args);
+ wpr.setContentType(parm1);
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setTitle */
/* Details: "Method setTitle(String): Calls wrapped method" */
TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETTITLE);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr12, "setTitle", args);
+ wpr.setTitle(parm1);
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getCacheControl */
/* Details: "Method getCacheControl(): Calls wrapped method" */
TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCACHECONTROL);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr13, "getCacheControl", args);
+ wc.checkRetval(wpr.getCacheControl());
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setNextPossiblePortletModes */
@@ -203,44 +253,64 @@ public class WrapperTests_RenderResponseWrapper_ApiRender implements Portlet, Re
/* setNextPossiblePortletModes(java.util.Collection): Calls wrapped */
/* method" */
TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETNEXTPOSSIBLEPORTLETMODES);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ PortletMode[] modes = {PortletMode.EDIT, PortletMode.VIEW};
+ ArrayList parm1 = new ArrayList(Arrays.asList(modes));
+ Object[] args = {parm1};
+ wc.prepare(tr14, "setNextPossiblePortletModes", args);
+ wpr.setNextPossiblePortletModes(parm1);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getResponse */
- /* Details: "Method getResponse(): Calls wrapped method" */
+ /* Details: "Method getResponse(): Returns wrapped RenderResponse */
+ /* object" */
TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ RenderResponse r = wpr.getResponse();
+ tr15.setTcSuccess(r == wc);
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setResponse */
/* Details: "Method setResponse(RenderResponse): Allows wrapped */
/* RenderResponse object to be set " */
TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ // tested by method set up
+ tr16.setTcSuccess(true);
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createActionURL */
/* Details: "Method createActionURL(): Calls wrapped method" */
TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATEACTIONURL);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr17, "createActionURL", args);
+ wc.checkRetval(wpr.createActionURL());
+ } catch(Exception e) {tr17.appendTcDetail(e.toString());}
tr17.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createRenderURL */
/* Details: "Method createRenderURL(): Calls wrapped method" */
TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERENDERURL);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr18, "createRenderURL", args);
+ wc.checkRetval(wpr.createRenderURL());
+ } catch(Exception e) {tr18.appendTcDetail(e.toString());}
tr18.writeTo(writer);
/* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createResourceURL */
/* Details: "Method createResourceURL(): Calls wrapped method" */
TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
+ try {
+ Object[] args = {};
+ wc.prepare(tr19, "createResourceURL", args);
+ wc.checkRetval(wpr.createResourceURL());
+ } catch(Exception e) {tr19.appendTcDetail(e.toString());}
tr19.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
deleted file mode 100644
index 1193d50..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ResourceRequestWrapper_ApiRender_event
- *
- */
-public class WrapperTests_ResourceRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ResourceRequestWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getPortletInputStream */
- /* Details: "Method getPortletInputStream(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getReader */
- /* Details: "Method getReader(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREADER);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getRequest */
- /* Details: "Method getRequest(): Returns wrapped ResourceRequest */
- /* object" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREQUEST);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_setRequest */
- /* Details: "Method setRequest(ResourceRequest): Allows wrapped */
- /* ResourceRequest object to be set" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETREQUEST);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentLength */
- /* Details: "Method getContentLength(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getETag */
- /* Details: "Method getETag(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETETAG);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETMETHOD);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getResourceID */
- /* Details: "Method getResourceID(): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETRESOURCEID);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getPrivateRenderParameterMap */
- /* Details: "Method getPrivateRenderParameterMap(): Calls wrapped */
- /* method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPRIVATERENDERPARAMETERMAP);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getCacheability */
- /* Details: "Method getCacheability(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCACHEABILITY);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiResource.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiResource.java
new file mode 100644
index 0000000..845ee3b
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiResource.java
@@ -0,0 +1,259 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ResourceRequestWrapper_ApiResource_event
+ *
+ */
+public class WrapperTests_ResourceRequestWrapper_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ResourceRequestWrapper_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ ResourceRequestWrapperChecker wc = new ResourceRequestWrapperChecker(portletReq);
+ ResourceRequestWrapper wpr = new ResourceRequestWrapper(portletReq);
+ wpr.setRequest(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(ResourceRequestWrapper.class);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getPortletInputStream */
+ /* Details: "Method getPortletInputStream(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPORTLETINPUTSTREAM);
+ try {
+ Object[] args = {};
+ wc.prepare(tr0, "getPortletInputStream", args);
+ wc.checkRetval(wpr.getPortletInputStream());
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getReader */
+ /* Details: "Method getReader(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREADER);
+ try {
+ Object[] args = {};
+ wc.prepare(tr1, "getReader", args);
+ wc.checkRetval(wpr.getReader());
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETCHARACTERENCODING);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr2, "setCharacterEncoding", args);
+ wpr.setCharacterEncoding(parm1);
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped ResourceRequest */
+ /* object" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREQUEST);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ ResourceRequest r = wpr.getRequest();
+ tr3.setTcSuccess(r == wc);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_setRequest */
+ /* Details: "Method setRequest(ResourceRequest): Allows wrapped */
+ /* ResourceRequest object to be set" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETREQUEST);
+ try {
+ // tested by method set up
+ tr4.setTcSuccess(true);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCHARACTERENCODING);
+ try {
+ Object[] args = {};
+ wc.prepare(tr5, "getCharacterEncoding", args);
+ wc.checkRetval(wpr.getCharacterEncoding());
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentLength */
+ /* Details: "Method getContentLength(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTLENGTH);
+ try {
+ Object[] args = {};
+ wc.prepare(tr6, "getContentLength", args);
+ wc.checkRetval(wpr.getContentLength());
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTTYPE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr7, "getContentType", args);
+ wc.checkRetval(wpr.getContentType());
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getETag */
+ /* Details: "Method getETag(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETETAG);
+ try {
+ Object[] args = {};
+ wc.prepare(tr8, "getETag", args);
+ wc.checkRetval(wpr.getETag());
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETMETHOD);
+ try {
+ Object[] args = {};
+ wc.prepare(tr9, "getMethod", args);
+ wc.checkRetval(wpr.getMethod());
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getResourceID */
+ /* Details: "Method getResourceID(): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETRESOURCEID);
+ try {
+ Object[] args = {};
+ wc.prepare(tr10, "getResourceID", args);
+ wc.checkRetval(wpr.getResourceID());
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getPrivateRenderParameterMap */
+ /* Details: "Method getPrivateRenderParameterMap(): Calls wrapped */
+ /* method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP);
+ try {
+ Object[] args = {};
+ wc.prepare(tr11, "getPrivateRenderParameterMap", args);
+ wc.checkRetval(wpr.getPrivateRenderParameterMap());
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiResource_getCacheability */
+ /* Details: "Method getCacheability(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCACHEABILITY);
+ try {
+ Object[] args = {};
+ wc.prepare(tr12, "getCacheability", args);
+ wc.checkRetval(wpr.getCacheability());
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"WrapperTests_ResourceRequestWrapper_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"WrapperTests_ResourceRequestWrapper_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
[09/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2ResponseTests/src/main/resources/xml-resources/additionalTCs.xml
index c282d46..0682250 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,287 +20,287 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API ResponseTests test case names and page mappings -->
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyC1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_addPropertyC2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_setProperty1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_setProperty2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_setProperty3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_encodeURL1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_encodeURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_getNamespace1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Render_createElement6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyC1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_addPropertyC2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_setProperty1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_setProperty2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_setProperty3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_encodeURL1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_encodeURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_getNamespace1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Resource_createElement6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyC1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_addPropertyC2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_setProperty1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_setProperty2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_setProperty3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_encodeURL1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_encodeURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_getNamespace1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Action_createElement6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyC1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_addPropertyC2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_setProperty1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_setProperty2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_setProperty3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_encodeURL1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_encodeURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_getNamespace1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_PortletResponse_Event_createElement6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setWindowState1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setWindowState2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setWindowState3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setPortletMode1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setPortletMode2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setPortletMode3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters8">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters9">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters10">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters11">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameters12">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterA8">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setRenderParameterB6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventA3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventA4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventA5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_setEventB5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getPortletMode1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getPortletMode2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getWindowState1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_getWindowState2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setWindowState1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setWindowState2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setWindowState3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setPortletMode1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setPortletMode2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setPortletMode3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters8">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters9">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters10">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters11">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameters12">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterA8">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setRenderParameterB6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventA3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventA4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventA5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_setEventB5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getPortletMode1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getPortletMode2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getWindowState1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_getWindowState2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectA7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB3">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB5">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB6">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB7">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB8">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB9">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB10">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ActionResponse_Action_sendRedirectB11">V2ResponseTests</entry>
-<entry key="V2ResponseTests_EventResponse_Event_setRenderParameters1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_EventResponse_Event_setRenderParameters2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldEXPIRATION_CACHE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldCACHE_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldPUBLIC_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldPRIVATE_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldETAG ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldUSE_CACHED_CONTENT ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldNAMESPACED_RESPONSE">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_fieldMARKUP_HEAD_ELEMENT">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getContentType1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getContentType2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_setContentType1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_setContentType4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getCharacterEncoding">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getWriter1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getWriter2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getLocale">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_setBufferSize1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_setBufferSize2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getBufferSize1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getBufferSize2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_flushBuffer1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_resetBuffer1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_resetBuffer2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_isCommitted1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_isCommitted2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_reset1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_reset2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getPortletOutputStream1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getPortletOutputStream2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_createRenderURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_createActionURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_createResourceURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Render_getCacheControl">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldEXPIRATION_CACHE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldCACHE_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldPUBLIC_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldPRIVATE_SCOPE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldETAG ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldUSE_CACHED_CONTENT ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldNAMESPACED_RESPONSE">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_fieldMARKUP_HEAD_ELEMENT">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getContentType1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getContentType2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_setContentType1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_setContentType4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getCharacterEncoding">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getWriter1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getWriter2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getLocale">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_setBufferSize1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_setBufferSize2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getBufferSize1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getBufferSize2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_flushBuffer1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_resetBuffer1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_resetBuffer2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_isCommitted1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_isCommitted2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_reset1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_reset2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getPortletOutputStream1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getPortletOutputStream2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_createRenderURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_createActionURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_createResourceURL">V2ResponseTests</entry>
-<entry key="V2ResponseTests_MimeResponse_Resource_getCacheControl">V2ResponseTests</entry>
-<entry key="V2ResponseTests_RenderResponse_Render_setTitle2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_RenderResponse_Render_setNextPossiblePortletModes2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_RenderResponse_Render_setContentType1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_RenderResponse_Render_setContentType2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_fieldHTTP_STATUS_CODE ">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_setLocale1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_setLocale4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_setCharacterEncoding1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_setCharacterEncoding4">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_setContentLength1">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_createRenderURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_createActionURL2">V2ResponseTests</entry>
-<entry key="V2ResponseTests_ResourceResponse_Resource_createResourceURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyC1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_addPropertyC2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_setProperty1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_setProperty2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_setProperty3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_encodeURL1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_encodeURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_getNamespace1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiRender_createElement6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyC1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_addPropertyC2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_setProperty1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_setProperty2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_setProperty3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_encodeURL1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_encodeURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_getNamespace1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiResource_createElement6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyC1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_addPropertyC2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_setProperty1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_setProperty2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_setProperty3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_encodeURL1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_encodeURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_getNamespace1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiAction_createElement6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyC1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_addPropertyC2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_setProperty1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_setProperty2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_setProperty3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_encodeURL1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_encodeURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_getNamespace1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_PortletResponse_ApiEvent_createElement6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters8">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters9">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters10">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters11">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters12">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA8">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventA3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventA4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventA5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_setEventB5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventA3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventA4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventA5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_setEventB5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectA7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB3">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB5">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB6">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB7">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB8">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB9">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB10">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ActionResponse_ApiAction_sendRedirectB11">V2ResponseTests</entry>
+<entry key="V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldEXPIRATION_CACHE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldCACHE_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldPUBLIC_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldPRIVATE_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldETAG ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldUSE_CACHED_CONTENT ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldNAMESPACED_RESPONSE">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_fieldMARKUP_HEAD_ELEMENT">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getContentType1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getContentType2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_setContentType1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_setContentType4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getCharacterEncoding">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getWriter1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getWriter2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getLocale">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_setBufferSize1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_setBufferSize2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getBufferSize1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getBufferSize2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_flushBuffer1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_resetBuffer1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_resetBuffer2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_isCommitted1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_isCommitted2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_reset1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_reset2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_createRenderURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_createActionURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_createResourceURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiRender_getCacheControl">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldEXPIRATION_CACHE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldCACHE_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldPUBLIC_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldPRIVATE_SCOPE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldETAG ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldUSE_CACHED_CONTENT ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldNAMESPACED_RESPONSE">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_fieldMARKUP_HEAD_ELEMENT">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getContentType1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getContentType2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_setContentType1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_setContentType4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getCharacterEncoding">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getWriter1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getWriter2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getLocale">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_setBufferSize1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_setBufferSize2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getBufferSize1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getBufferSize2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_flushBuffer1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_resetBuffer1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_resetBuffer2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_isCommitted1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_isCommitted2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_reset1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_reset2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getPortletOutputStream1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getPortletOutputStream2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_createRenderURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_createActionURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_createResourceURL">V2ResponseTests</entry>
+<entry key="V2ResponseTests_MimeResponse_ApiResource_getCacheControl">V2ResponseTests</entry>
+<entry key="V2ResponseTests_RenderResponse_ApiRender_setTitle2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_RenderResponse_ApiRender_setNextPossiblePortletModes2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_RenderResponse_ApiRender_setContentType1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_RenderResponse_ApiRender_setContentType2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_fieldHTTP_STATUS_CODE ">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_setLocale1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_setLocale4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_setCharacterEncoding1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_setCharacterEncoding4">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_setContentLength1">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_createRenderURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_createActionURL2">V2ResponseTests</entry>
+<entry key="V2ResponseTests_ResourceResponse_ApiResource_createResourceURL2">V2ResponseTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
index 6304ab2..8d5dd4f 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,255 +23,257 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2ResponseTests">
<portlet>
- <portlet-name>ResponseTests_PortletResponse_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_Render</portlet-class>
+ <portlet-name>ResponseTests_PortletResponse_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_PortletResponse_Render</title>
+ <title>ResponseTests_PortletResponse_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_PortletResponse_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_Resource</portlet-class>
+ <portlet-name>ResponseTests_PortletResponse_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_PortletResponse_Resource</title>
+ <title>ResponseTests_PortletResponse_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_PortletResponse_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_Action</portlet-class>
+ <portlet-name>ResponseTests_PortletResponse_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_PortletResponse_Action</title>
+ <title>ResponseTests_PortletResponse_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_PortletResponse_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_Event</portlet-class>
+ <portlet-name>ResponseTests_PortletResponse_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_PortletResponse_Event</title>
+ <title>ResponseTests_PortletResponse_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_PortletResponse_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_Event_event</portlet-class>
+ <portlet-name>ResponseTests_PortletResponse_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_PortletResponse_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_PortletResponse_Event_event</title>
+ <title>ResponseTests_PortletResponse_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_StateAwareResponse_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_Event</portlet-class>
+ <portlet-name>ResponseTests_StateAwareResponse_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_StateAwareResponse_Event</title>
+ <title>ResponseTests_StateAwareResponse_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_StateAwareResponse_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_Event_event</portlet-class>
+ <portlet-name>ResponseTests_StateAwareResponse_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_StateAwareResponse_Event_event</title>
+ <title>ResponseTests_StateAwareResponse_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_StateAwareResponse_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_Action</portlet-class>
+ <portlet-name>ResponseTests_StateAwareResponse_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_StateAwareResponse_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_StateAwareResponse_Action</title>
+ <title>ResponseTests_StateAwareResponse_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_ActionResponse_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_ActionResponse_Action</portlet-class>
+ <portlet-name>ResponseTests_ActionResponse_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_ActionResponse_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_ActionResponse_Action</title>
+ <title>ResponseTests_ActionResponse_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_EventResponse_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_EventResponse_Event</portlet-class>
+ <portlet-name>ResponseTests_EventResponse_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_EventResponse_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_EventResponse_Event</title>
+ <title>ResponseTests_EventResponse_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_EventResponse_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_EventResponse_Event_event</portlet-class>
+ <portlet-name>ResponseTests_EventResponse_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_EventResponse_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_EventResponse_Event_event</title>
+ <title>ResponseTests_EventResponse_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>ResponseTests_MimeResponse_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_MimeResponse_Render</portlet-class>
+ <portlet-name>ResponseTests_MimeResponse_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_MimeResponse_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_MimeResponse_Render</title>
+ <title>ResponseTests_MimeResponse_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_MimeResponse_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_MimeResponse_Resource</portlet-class>
+ <portlet-name>ResponseTests_MimeResponse_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_MimeResponse_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_MimeResponse_Resource</title>
+ <title>ResponseTests_MimeResponse_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_RenderResponse_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_RenderResponse_Render</portlet-class>
+ <portlet-name>ResponseTests_RenderResponse_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_RenderResponse_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_RenderResponse_Render</title>
+ <title>ResponseTests_RenderResponse_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ResponseTests_ResourceResponse_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ResponseTests_ResourceResponse_Resource</portlet-class>
+ <portlet-name>ResponseTests_ResourceResponse_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ResponseTests_ResourceResponse_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ResponseTests_ResourceResponse_Resource</title>
+ <title>ResponseTests_ResourceResponse_ApiResource</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
[59/63] [abbrv] Updated the assertion CSV files in the doc-files
directory
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d6d7d72c/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertionsDispatcher.csv
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertionsDispatcher.csv b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertionsDispatcher.csv
index 91865d4..a84fffa 100644
--- a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertionsDispatcher.csv
+++ b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertionsDispatcher.csv
@@ -1,3 +1,4 @@
+PARMS genManual=true tcDetailsClassName=JSR286DispatcherTestCaseDetails singlePage=true
Dispatcher Tests;;;;
SPEC2_19;Dispatch Servlet Render;dispatch1;TRUE;The PortletContext getRequestDispatcher method returns a PortletRequestDispatcher for a path within the portlet application
SPEC2_19;Dispatch Servlet Render;dispatch2;TRUE;If the path provided to getRequestDispatcher method does not start with "/", the method returns null
@@ -32,11 +33,26 @@ SPEC2_19;Include Servlet Action;invoke1;TRUE;The PortletRequestDispatcher includ
SPEC2_19;Include Servlet Action;invoke2;TRUE;Parameters to the include method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Include Servlet Action;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include Servlet Action;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Include Servlet Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include Servlet Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include Servlet Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Action;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Action;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Action;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Action;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Action;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include Servlet Action;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include Servlet Action;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include Servlet Action;attributes7;TRUE;For includes from the processAction method, The request attribute javax.portlet.request must be set to the javax.portlet.ActionRequest object
SPEC2_19;Include Servlet Action;attributes8;TRUE;For includes from the processAction method, The request attribute javax.portlet.response must be set to the javax.portlet.ActionResponse object
@@ -47,11 +63,26 @@ SPEC2_19;Include Servlet Event;invoke1;TRUE;The PortletRequestDispatcher include
SPEC2_19;Include Servlet Event;invoke2;TRUE;Parameters to the include method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Include Servlet Event;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include Servlet Event;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Include Servlet Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include Servlet Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include Servlet Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Event;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Event;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Event;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Event;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Event;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include Servlet Event;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include Servlet Event;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include Servlet Event;attributes7;TRUE;For includes from the processEvent method, The request attribute javax.portlet.request must be set to the javax.portlet.EventRequest object
SPEC2_19;Include Servlet Event;attributes8;TRUE;For includes from the processEvent method, The request attribute javax.portlet.response must be set to the javax.portlet.EventResponse object
@@ -63,11 +94,26 @@ SPEC2_19;Include Servlet Render;invoke2;TRUE;Parameters to the include method fo
SPEC2_19;Include Servlet Render;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include Servlet Render;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
SPEC2_19;Include Servlet Render;invoke9;TRUE;The included servlet must be handled as an HTTP GET request
-SPEC2_19;Include Servlet Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include Servlet Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include Servlet Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Render;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Render;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Render;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Render;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Render;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include Servlet Render;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include Servlet Render;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include Servlet Render;attributes7;TRUE;For includes from the render method, The request attribute javax.portlet.request must be set to the javax.portlet.RenderRequest object
SPEC2_19;Include Servlet Render;attributes8;TRUE;For includes from the render method, The request attribute javax.portlet.response must be set to the javax.portlet.RenderResponse object
@@ -79,11 +125,26 @@ SPEC2_19;Include Servlet Resource;invoke2;TRUE;Parameters to the include method
SPEC2_19;Include Servlet Resource;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include Servlet Resource;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
SPEC2_19;Include Servlet Resource;invoke9;TRUE;The included servlet must be handled as an HTTP GET request
-SPEC2_19;Include Servlet Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include Servlet Resource;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Resource;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include Servlet Resource;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include Servlet Resource;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Resource;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include Servlet Resource;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Resource;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include Servlet Resource;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Resource;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include Servlet Resource;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Resource;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include Servlet Resource;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include Servlet Resource;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include Servlet Resource;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include Servlet Resource;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include Servlet Resource;attributes7;TRUE;For includes from the serveResource method, The request attribute javax.portlet.request must be set to the javax.portlet.ResourceRequest object
SPEC2_19;Include Servlet Resource;attributes8;TRUE;For includes from the serveResource method, The request attribute javax.portlet.response must be set to the javax.portlet.ResourceResponse object
@@ -94,11 +155,26 @@ SPEC2_19;Forward Servlet Action;invoke1;TRUE;The PortletRequestDispatcher forwar
SPEC2_19;Forward Servlet Action;invoke2;TRUE;Parameters to the forward method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Forward Servlet Action;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Forward Servlet Action;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Forward Servlet Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Action;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Action;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Action;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Action;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Action;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will not be set
+SPEC2_19;Forward Servlet Action;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will not be set
SPEC2_19;Forward Servlet Action;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Forward Servlet Action;attributes7;TRUE;For forwards from the processAction method, The request attribute javax.portlet.request must be set to the javax.portlet.ActionRequest object
SPEC2_19;Forward Servlet Action;attributes8;TRUE;For forwards from the processAction method, The request attribute javax.portlet.response must be set to the javax.portlet.ActionResponse object
@@ -109,11 +185,26 @@ SPEC2_19;Forward Servlet Event;invoke1;TRUE;The PortletRequestDispatcher forward
SPEC2_19;Forward Servlet Event;invoke2;TRUE;Parameters to the forward method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Forward Servlet Event;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Forward Servlet Event;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Forward Servlet Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Event;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Event;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Event;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Event;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Event;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will not be set
+SPEC2_19;Forward Servlet Event;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will not be set
SPEC2_19;Forward Servlet Event;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Forward Servlet Event;attributes7;TRUE;For forwards from the processEvent method, The request attribute javax.portlet.request must be set to the javax.portlet.EventRequest object
SPEC2_19;Forward Servlet Event;attributes8;TRUE;For forwards from the processEvent method, The request attribute javax.portlet.response must be set to the javax.portlet.EventResponse object
@@ -124,11 +215,26 @@ SPEC2_19;Forward Servlet Render;invoke1;TRUE;The PortletRequestDispatcher forwar
SPEC2_19;Forward Servlet Render;invoke2;TRUE;Parameters to the forward method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Forward Servlet Render;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Forward Servlet Render;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Forward Servlet Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Render;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Render;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Render;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Render;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Render;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will not be set
+SPEC2_19;Forward Servlet Render;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will not be set
SPEC2_19;Forward Servlet Render;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Forward Servlet Render;attributes7;TRUE;For forwards from the render method, The request attribute javax.portlet.request must be set to the javax.portlet.RenderRequest object
SPEC2_19;Forward Servlet Render;attributes8;TRUE;For forwards from the render method, The request attribute javax.portlet.response must be set to the javax.portlet.RenderResponse object
@@ -139,11 +245,26 @@ SPEC2_19;Forward Servlet Resource;invoke1;TRUE;The PortletRequestDispatcher forw
SPEC2_19;Forward Servlet Resource;invoke2;TRUE;Parameters to the forward method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Forward Servlet Resource;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Forward Servlet Resource;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Forward Servlet Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Resource;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Resource;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Resource;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
-SPEC2_19;Forward Servlet Resource;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Resource;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will not be set
+SPEC2_19;Forward Servlet Resource;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Resource;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will not be set
+SPEC2_19;Forward Servlet Resource;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Resource;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will not be set
+SPEC2_19;Forward Servlet Resource;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Resource;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will not be set
+SPEC2_19;Forward Servlet Resource;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the forward chain
+SPEC2_19;Forward Servlet Resource;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will not be set
+SPEC2_19;Forward Servlet Resource;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will not be set
SPEC2_19;Forward Servlet Resource;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Forward Servlet Resource;attributes7;TRUE;For forwards from the serveResource method, The request attribute javax.portlet.request must be set to the javax.portlet.ResourceRequest object
SPEC2_19;Forward Servlet Resource;attributes8;TRUE;For forwards from the serveResource method, The request attribute javax.portlet.response must be set to the javax.portlet.ResourceResponse object
@@ -155,11 +276,26 @@ SPEC2_19;Include JSP Action;invoke1;TRUE;The PortletRequestDispatcher include me
SPEC2_19;Include JSP Action;invoke2;TRUE;Parameters to the include method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Include JSP Action;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include JSP Action;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Include JSP Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include JSP Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include JSP Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include JSP Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include JSP Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Action;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Action;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Action;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Action;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Action;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Action;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Action;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Action;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Action;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include JSP Action;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include JSP Action;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include JSP Action;attributes7;TRUE;For includes from the processAction method, The request attribute javax.portlet.request must be set to the javax.portlet.ActionRequest object
SPEC2_19;Include JSP Action;attributes8;TRUE;For includes from the processAction method, The request attribute javax.portlet.response must be set to the javax.portlet.ActionResponse object
@@ -170,11 +306,26 @@ SPEC2_19;Include JSP Event;invoke1;TRUE;The PortletRequestDispatcher include met
SPEC2_19;Include JSP Event;invoke2;TRUE;Parameters to the include method for a target servlet can be the request and response classes from the portlet lifecyle method initiating the include
SPEC2_19;Include JSP Event;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include JSP Event;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
-SPEC2_19;Include JSP Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include JSP Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include JSP Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include JSP Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include JSP Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Event;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Event;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Event;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Event;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Event;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Event;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Event;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Event;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Event;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include JSP Event;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include JSP Event;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include JSP Event;attributes7;TRUE;For includes from the processEvent method, The request attribute javax.portlet.request must be set to the javax.portlet.EventRequest object
SPEC2_19;Include JSP Event;attributes8;TRUE;For includes from the processEvent method, The request attribute javax.portlet.response must be set to the javax.portlet.EventResponse object
@@ -186,11 +337,26 @@ SPEC2_19;Include JSP Render;invoke2;TRUE;Parameters to the include method for a
SPEC2_19;Include JSP Render;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include JSP Render;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
SPEC2_19;Include JSP Render;invoke9;TRUE;The included servlet must be handled as an HTTP GET request
-SPEC2_19;Include JSP Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include JSP Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include JSP Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include JSP Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include JSP Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes1a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes1b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Render;attributes1c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.request_uri will not be set
+SPEC2_19;Include JSP Render;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes2a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContextPath for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes2b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Render;attributes2c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.context_path will not be set
+SPEC2_19;Include JSP Render;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes3a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes3b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Render;attributes3c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.servlet_path will not be set
+SPEC2_19;Include JSP Render;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes4a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes4b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Render;attributes4c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.path_info will not be set
+SPEC2_19;Include JSP Render;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes5a;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Render;attributes5b;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet.forward.query_string will not be set
+SPEC2_19;Include JSP Render;attributes5c;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the servlet request attribute javax.servlet.forward.query_string will not be set
SPEC2_19;Include JSP Render;attributes6;TRUE;The request attribute javax.portlet.config must be set to the javax.portlet.PortletConfig object
SPEC2_19;Include JSP Render;attributes7;TRUE;For includes from the render method, The request attribute javax.portlet.request must be set to the javax.portlet.RenderRequest object
SPEC2_19;Include JSP Render;attributes8;TRUE;For includes from the render method, The request attribute javax.portlet.response must be set to the javax.portlet.RenderResponse object
@@ -202,11 +368,26 @@ SPEC2_19;Include JSP Resource;invoke2;TRUE;Parameters to the include method for
SPEC2_19;Include JSP Resource;invoke4;TRUE;The portlet container must invoke the target servlet in the same thread as the PortletRequestDispatcher include invocation
SPEC2_19;Include JSP Resource;invoke7;TRUE;The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher
SPEC2_19;Include JSP Resource;invoke9;TRUE;The included servlet must be handled as an HTTP GET request
-SPEC2_19;Include JSP Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.request_uri will be set, and equals the value from HTTPServletRequest.getRequestURI for the first servlet in the include chain
-SPEC2_19;Include JSP Resource;attributes2;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.context_path will be set, and equals the value from HTTPServletRequest.getContestPath for the first servlet in the include chain
-SPEC2_19;Include JSP Resource;attributes3;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.servlet_path will be set, and equals the value from HTTPServletRequest.getServletPath for the first servlet in the include chain
-SPEC2_19;Include JSP Resource;attributes4;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.path_info will be set, and equals the value from HTTPServletRequest.getPathInfo for the first servlet in the include chain
-SPEC2_19;Include JSP Resource;attributes5;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the request attribute javax.servlet.include.query_string will be set, and equals the value from HTTPServletRequest.getQueryString for the first servlet in the include chain
+SPEC2_19;Include JSP Resource;attributes1;TRUE;If the request dispatcher is obtained through the getRequestDispatcher method, the portlet request attribute javax.servlet
<TRUNCATED>
[47/63] [abbrv] git commit: Moved filter test cases to proper filter
method. Added keyword "Api" to test case names whose definitions were derived
from the API documentation to allow targeted test runs for that group of
tests.
Posted by ms...@apache.org.
Moved filter test cases to proper filter method. Added keyword "Api" to test
case names whose definitions were derived from the API documentation to
allow targeted test runs for that group of tests.
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/db1071e7
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/db1071e7
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/db1071e7
Branch: refs/heads/master
Commit: db1071e75e6c5fba83032352edf53204716b1ade
Parents: 6856ba4
Author: Scott Nicklous <ms...@apache.org>
Authored: Fri Aug 29 16:19:40 2014 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Fri Aug 29 16:19:40 2014 +0200
----------------------------------------------------------------------
.../AnnotationTests_ProcessAction_Action.java | 135 -
...AnnotationTests_ProcessAction_ApiAction.java | 135 +
.../AnnotationTests_ProcessEvent_ApiEvent.java | 124 +
...tationTests_ProcessEvent_ApiEvent_event.java | 125 +
.../AnnotationTests_ProcessEvent_Event.java | 124 -
...nnotationTests_ProcessEvent_Event_event.java | 125 -
.../AnnotationTests_RenderMode_ApiRender.java | 113 +
.../AnnotationTests_RenderMode_Render.java | 113 -
.../resources/xml-resources/additionalTCs.xml | 8 +-
.../src/main/webapp/WEB-INF/portlet.xml | 48 +-
...EnvironmentTests_CacheControl_ApiRender.java | 288 +
...vironmentTests_CacheControl_ApiResource.java | 303 +
.../EnvironmentTests_CacheControl_Render.java | 288 -
.../EnvironmentTests_CacheControl_Resource.java | 303 -
...nvironmentTests_PortalContext_ApiRender.java | 261 +
.../EnvironmentTests_PortalContext_Render.java | 261 -
...vironmentTests_PortletContext_ApiRender.java | 548 ++
.../EnvironmentTests_PortletContext_Render.java | 548 --
...ironmentTests_PortletPreferences_Action.java | 781 ---
...nmentTests_PortletPreferences_ApiAction.java | 781 +++
...onmentTests_PortletPreferences_ApiEvent.java | 473 ++
...Tests_PortletPreferences_ApiEvent_event.java | 406 ++
...nmentTests_PortletPreferences_ApiRender.java | 265 +
...entTests_PortletPreferences_ApiResource.java | 417 ++
...vironmentTests_PortletPreferences_Event.java | 473 --
...entTests_PortletPreferences_Event_event.java | 406 --
...ironmentTests_PortletPreferences_Render.java | 265 -
...onmentTests_PortletPreferences_Resource.java | 417 --
...ests_PortletRequestDispatcher_ApiRender.java | 204 +
...ntTests_PortletRequestDispatcher_Render.java | 204 -
...nmentTests_PortletSessionUtil_ApiRender.java | 149 +
...ironmentTests_PortletSessionUtil_Render.java | 149 -
...vironmentTests_PortletSession_ApiRender.java | 565 ++
.../EnvironmentTests_PortletSession_Render.java | 565 --
...onmentTests_PreferencesValidator_Action.java | 171 -
...entTests_PreferencesValidator_ApiAction.java | 171 +
...mentTests_PreferencesValidator_ApiEvent.java | 135 +
...sts_PreferencesValidator_ApiEvent_event.java | 134 +
...tTests_PreferencesValidator_ApiResource.java | 145 +
...ronmentTests_PreferencesValidator_Event.java | 135 -
...tTests_PreferencesValidator_Event_event.java | 134 -
...mentTests_PreferencesValidator_Resource.java | 145 -
.../resources/xml-resources/additionalTCs.xml | 648 +-
.../src/main/webapp/WEB-INF/portlet.xml | 132 +-
...ionTests_PortletModeException_ApiRender.java | 112 +
...eptionTests_PortletModeException_Render.java | 112 -
...ionTests_UnavailableException_ApiRender.java | 143 +
...eptionTests_UnavailableException_Render.java | 143 -
...ptionTests_ValidatorException_ApiRender.java | 150 +
...xceptionTests_ValidatorException_Render.java | 150 -
...ionTests_WindowStateException_ApiRender.java | 113 +
...eptionTests_WindowStateException_Render.java | 113 -
.../resources/xml-resources/additionalTCs.xml | 24 +-
.../src/main/webapp/WEB-INF/portlet.xml | 42 +-
...sts_ActionFilter_ApiActionFilter_filter.java | 160 +
...Tests_EventFilter_ApiEventFilter_filter.java | 159 +
...ests_FilterChain_ApiActionFilter_filter.java | 105 +
...Tests_FilterChain_ApiEventFilter_filter.java | 105 +
...ests_FilterChain_ApiRenderFilter_filter.java | 102 +
...ts_FilterChain_ApiResourceFilter_filter.java | 102 +
...sts_FilterConfig_ApiRenderFilter_filter.java | 125 +
...ts_PortletFilter_ApiActionFilter_filter.java | 104 +
...sts_PortletFilter_ApiEventFilter_filter.java | 104 +
...ts_PortletFilter_ApiRenderFilter_filter.java | 101 +
..._PortletFilter_ApiResourceFilter_filter.java | 101 +
...sts_RenderFilter_ApiRenderFilter_filter.java | 157 +
...ResourceFilter_ApiResourceFilter_filter.java | 157 +
.../FilterTests_ActionFilter_ActionFilter.java | 293 -
...ilterTests_ActionFilter_ApiActionFilter.java | 206 +
.../FilterTests_EventFilter_ApiEventFilter.java | 201 +
...rTests_EventFilter_ApiEventFilter_event.java | 102 +
.../FilterTests_EventFilter_EventFilter.java | 201 -
...lterTests_EventFilter_EventFilter_event.java | 188 -
.../FilterTests_FilterChain_ActionFilter.java | 187 -
...FilterTests_FilterChain_ApiActionFilter.java | 139 +
.../FilterTests_FilterChain_ApiEventFilter.java | 135 +
...rTests_FilterChain_ApiEventFilter_event.java | 102 +
...FilterTests_FilterChain_ApiRenderFilter.java | 101 +
...lterTests_FilterChain_ApiResourceFilter.java | 116 +
.../FilterTests_FilterChain_EventFilter.java | 144 -
...lterTests_FilterChain_EventFilter_event.java | 141 -
.../FilterTests_FilterChain_RenderFilter.java | 137 -
.../FilterTests_FilterChain_ResourceFilter.java | 152 -
...ilterTests_FilterConfig_ApiRenderFilter.java | 101 +
.../FilterTests_FilterConfig_RenderFilter.java | 153 -
.../FilterTests_PortletFilter_ActionFilter.java | 169 -
...lterTests_PortletFilter_ApiActionFilter.java | 138 +
...ilterTests_PortletFilter_ApiEventFilter.java | 134 +
...ests_PortletFilter_ApiEventFilter_event.java | 102 +
...lterTests_PortletFilter_ApiRenderFilter.java | 101 +
...erTests_PortletFilter_ApiResourceFilter.java | 116 +
.../FilterTests_PortletFilter_EventFilter.java | 134 -
...erTests_PortletFilter_EventFilter_event.java | 133 -
.../FilterTests_PortletFilter_RenderFilter.java | 129 -
...ilterTests_PortletFilter_ResourceFilter.java | 144 -
...ilterTests_RenderFilter_ApiRenderFilter.java | 101 +
.../FilterTests_RenderFilter_RenderFilter.java | 185 -
...rTests_ResourceFilter_ApiResourceFilter.java | 116 +
...lterTests_ResourceFilter_ResourceFilter.java | 200 -
.../resources/xml-resources/additionalTCs.xml | 136 +-
.../src/main/webapp/WEB-INF/portlet.xml | 233 +-
.../PortletTests_EventPortlet_ApiEvent.java | 114 +
...ortletTests_EventPortlet_ApiEvent_event.java | 117 +
.../PortletTests_EventPortlet_Event.java | 114 -
.../PortletTests_EventPortlet_Event_event.java | 117 -
.../portlets/PortletTests_Event_ApiEvent.java | 162 +
.../PortletTests_Event_ApiEvent_event.java | 155 +
.../tck/portlets/PortletTests_Event_Event.java | 162 -
.../PortletTests_Event_Event_event.java | 155 -
.../PortletTests_GenericPortlet_ApiRender.java | 474 ++
.../PortletTests_GenericPortlet_Render.java | 474 --
.../PortletTests_PortletConfig_ApiRender.java | 235 +
.../PortletTests_PortletConfig_ApiRender2.java | 162 +
.../PortletTests_PortletConfig_Render.java | 235 -
.../PortletTests_PortletConfig_Render2.java | 162 -
.../PortletTests_PortletMode_ApiRender.java | 169 +
.../PortletTests_PortletMode_Render.java | 169 -
.../portlets/PortletTests_Portlet_Action.java | 133 -
.../PortletTests_Portlet_ApiAction.java | 133 +
.../PortletTests_Portlet_ApiRender.java | 137 +
.../portlets/PortletTests_Portlet_Render.java | 137 -
...ests_ResourceServingPortlet_ApiResource.java | 128 +
...etTests_ResourceServingPortlet_Resource.java | 128 -
.../PortletTests_WindowState_ApiRender.java | 169 +
.../PortletTests_WindowState_Render.java | 169 -
.../resources/xml-resources/additionalTCs.xml | 188 +-
.../src/main/webapp/WEB-INF/portlet.xml | 104 +-
.../RequestTests_ActionRequest_Action.java | 133 -
.../RequestTests_ActionRequest_ApiAction.java | 133 +
.../RequestTests_ClientDataRequest_Action.java | 453 --
...equestTests_ClientDataRequest_ApiAction.java | 453 ++
...uestTests_ClientDataRequest_ApiResource.java | 271 +
...RequestTests_ClientDataRequest_Resource.java | 271 -
.../RequestTests_EventRequest_ApiEvent.java | 124 +
...equestTests_EventRequest_ApiEvent_event.java | 125 +
.../RequestTests_EventRequest_Event.java | 124 -
.../RequestTests_EventRequest_Event_event.java | 125 -
.../RequestTests_PortletRequest_Action.java | 1895 ------
.../RequestTests_PortletRequest_ApiAction.java | 1895 ++++++
.../RequestTests_PortletRequest_ApiEvent.java | 1092 +++
...uestTests_PortletRequest_ApiEvent_event.java | 901 +++
.../RequestTests_PortletRequest_ApiRender.java | 896 +++
...RequestTests_PortletRequest_ApiResource.java | 912 +++
.../RequestTests_PortletRequest_Event.java | 1092 ---
...RequestTests_PortletRequest_Event_event.java | 901 ---
.../RequestTests_PortletRequest_Render.java | 896 ---
.../RequestTests_PortletRequest_Resource.java | 912 ---
.../RequestTests_RenderRequest_ApiRender.java | 120 +
.../RequestTests_RenderRequest_Render.java | 120 -
...equestTests_ResourceRequest_ApiResource.java | 209 +
.../RequestTests_ResourceRequest_Resource.java | 209 -
.../resources/xml-resources/additionalTCs.xml | 888 +--
.../src/main/webapp/WEB-INF/portlet.xml | 92 +-
.../ResponseTests_ActionResponse_Action.java | 459 --
.../ResponseTests_ActionResponse_ApiAction.java | 459 ++
.../ResponseTests_EventResponse_ApiEvent.java | 125 +
...ponseTests_EventResponse_ApiEvent_event.java | 126 +
.../ResponseTests_EventResponse_Event.java | 125 -
...ResponseTests_EventResponse_Event_event.java | 126 -
.../ResponseTests_MimeResponse_ApiRender.java | 367 +
.../ResponseTests_MimeResponse_ApiResource.java | 382 ++
.../ResponseTests_MimeResponse_Render.java | 367 -
.../ResponseTests_MimeResponse_Resource.java | 382 --
.../ResponseTests_PortletResponse_Action.java | 483 --
...ResponseTests_PortletResponse_ApiAction.java | 483 ++
.../ResponseTests_PortletResponse_ApiEvent.java | 308 +
...nseTests_PortletResponse_ApiEvent_event.java | 273 +
...ResponseTests_PortletResponse_ApiRender.java | 269 +
...sponseTests_PortletResponse_ApiResource.java | 284 +
.../ResponseTests_PortletResponse_Event.java | 308 -
...sponseTests_PortletResponse_Event_event.java | 273 -
.../ResponseTests_PortletResponse_Render.java | 269 -
.../ResponseTests_PortletResponse_Resource.java | 284 -
.../ResponseTests_RenderResponse_ApiRender.java | 139 +
.../ResponseTests_RenderResponse_Render.java | 139 -
...ponseTests_ResourceResponse_ApiResource.java | 195 +
...ResponseTests_ResourceResponse_Resource.java | 195 -
...ResponseTests_StateAwareResponse_Action.java | 1089 ---
...ponseTests_StateAwareResponse_ApiAction.java | 1089 +++
...sponseTests_StateAwareResponse_ApiEvent.java | 643 ++
...Tests_StateAwareResponse_ApiEvent_event.java | 544 ++
.../ResponseTests_StateAwareResponse_Event.java | 643 --
...nseTests_StateAwareResponse_Event_event.java | 544 --
.../resources/xml-resources/additionalTCs.xml | 566 +-
.../src/main/webapp/WEB-INF/portlet.xml | 120 +-
.../URLTests_BaseURL_ApiRenderActurl.java | 523 ++
.../URLTests_BaseURL_ApiRenderRenurl.java | 523 ++
.../URLTests_BaseURL_ApiRenderResurl.java | 523 ++
.../portlets/URLTests_BaseURL_RenderActurl.java | 523 --
.../portlets/URLTests_BaseURL_RenderRenurl.java | 523 --
.../portlets/URLTests_BaseURL_RenderResurl.java | 523 --
..._PortletURLGenerationListener_ApiRender.java | 233 +
...sts_PortletURLGenerationListener_Render.java | 233 -
.../URLTests_PortletURL_ApiRenderActurl.java | 223 +
.../URLTests_PortletURL_ApiRenderRenurl.java | 223 +
.../URLTests_PortletURL_RenderActurl.java | 223 -
.../URLTests_PortletURL_RenderRenurl.java | 223 -
.../URLTests_ResourceURL_ApiRenderResurl.java | 185 +
.../URLTests_ResourceURL_RenderResurl.java | 185 -
.../resources/xml-resources/additionalTCs.xml | 410 +-
.../src/main/webapp/WEB-INF/portlet.xml | 60 +-
...perTests_ActionRequestWrapper_ApiRender.java | 171 +
...rapperTests_ActionRequestWrapper_Render.java | 171 -
...erTests_ActionResponseWrapper_ApiRender.java | 229 +
...apperTests_ActionResponseWrapper_Render.java | 229 -
...pperTests_EventRequestWrapper_ApiRender.java | 142 +
...WrapperTests_EventRequestWrapper_Render.java | 142 -
...perTests_EventResponseWrapper_ApiRender.java | 222 +
...rapperTests_EventResponseWrapper_Render.java | 222 -
...erTests_PortletRequestWrapper_ApiRender.java | 391 ++
...apperTests_PortletRequestWrapper_Render.java | 391 --
...rTests_PortletResponseWrapper_ApiRender.java | 174 +
...pperTests_PortletResponseWrapper_Render.java | 174 -
...perTests_RenderRequestWrapper_ApiRender.java | 128 +
...rapperTests_RenderRequestWrapper_Render.java | 128 -
...erTests_RenderResponseWrapper_ApiRender.java | 248 +
...apperTests_RenderResponseWrapper_Render.java | 248 -
...rTests_ResourceRequestWrapper_ApiRender.java | 200 +
...pperTests_ResourceRequestWrapper_Render.java | 200 -
...Tests_ResourceResponseWrapper_ApiRender.java | 255 +
...perTests_ResourceResponseWrapper_Render.java | 255 -
.../resources/xml-resources/additionalTCs.xml | 302 +-
.../src/main/webapp/WEB-INF/portlet.xml | 68 +-
.../tck/beans/JSR286ApiTestCaseDetails.java | 6340 +++++++++---------
224 files changed, 34684 insertions(+), 33658 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_Action.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_Action.java
deleted file mode 100644
index 4da9702..0000000
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_Action.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet AnnotationTests_ProcessAction_Action_event
- *
- */
-public class AnnotationTests_ProcessAction_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- AnnotationTests_ProcessAction_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2AnnotationTests_ProcessAction_Action_name */
- /* Details: "Method name(): On an action request, the method is */
- /* executed if the parameter \"javax.portlet.action\" matches the */
- /* name field" */
- TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSACTION_ACTION_NAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2AnnotationTests_ProcessAction_Action_name */
- /* Details: "Method name(): On an action request, the method is */
- /* executed if the parameter \"javax.portlet.action\" matches the */
- /* name field" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2AnnotationTests_ProcessAction_Action_name", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
new file mode 100644
index 0000000..a172fc8
--- /dev/null
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
@@ -0,0 +1,135 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet AnnotationTests_ProcessAction_ApiAction_event
+ *
+ */
+public class AnnotationTests_ProcessAction_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ AnnotationTests_ProcessAction_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2AnnotationTests_ProcessAction_ApiAction_name */
+ /* Details: "Method name(): On an action request, the method is */
+ /* executed if the parameter \"javax.portlet.action\" matches the */
+ /* name field" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSACTION_APIACTION_NAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessAction_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2AnnotationTests_ProcessAction_ApiAction_name */
+ /* Details: "Method name(): On an action request, the method is */
+ /* executed if the parameter \"javax.portlet.action\" matches the */
+ /* name field" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2AnnotationTests_ProcessAction_ApiAction_name", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent.java
new file mode 100644
index 0000000..33fd0ed
--- /dev/null
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent.java
@@ -0,0 +1,124 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet AnnotationTests_ProcessEvent_ApiEvent_event
+ *
+ */
+public class AnnotationTests_ProcessEvent_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ AnnotationTests_ProcessEvent_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "AnnotationTests_ProcessEvent_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_qname */
+ /* Details: "Method qname(): On an event request, the method is */
+ /* executed if the Event qname matches the qname field" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2AnnotationTests_ProcessEvent_ApiEvent_qname", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_name */
+ /* Details: "Method name(): On an event request, the method is */
+ /* executed if the Event name matches the name field" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2AnnotationTests_ProcessEvent_ApiEvent_name", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
new file mode 100644
index 0000000..4aeb885
--- /dev/null
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
@@ -0,0 +1,125 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class AnnotationTests_ProcessEvent_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ AnnotationTests_ProcessEvent_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_qname */
+ /* Details: "Method qname(): On an event request, the method is */
+ /* executed if the Event qname matches the qname field" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_APIEVENT_QNAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_name */
+ /* Details: "Method name(): On an event request, the method is */
+ /* executed if the Event name matches the name field" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_APIEVENT_NAME);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>AnnotationTests_ProcessEvent_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event.java
deleted file mode 100644
index a153ec6..0000000
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet AnnotationTests_ProcessEvent_Event_event
- *
- */
-public class AnnotationTests_ProcessEvent_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- AnnotationTests_ProcessEvent_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "AnnotationTests_ProcessEvent_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2AnnotationTests_ProcessEvent_Event_qname */
- /* Details: "Method qname(): On an event request, the method is */
- /* executed if the Event qname matches the qname field" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2AnnotationTests_ProcessEvent_Event_qname", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2AnnotationTests_ProcessEvent_Event_name */
- /* Details: "Method name(): On an event request, the method is */
- /* executed if the Event name matches the name field" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2AnnotationTests_ProcessEvent_Event_name", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event_event.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event_event.java
deleted file mode 100644
index c3f03ae..0000000
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_Event_event.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class AnnotationTests_ProcessEvent_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- AnnotationTests_ProcessEvent_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2AnnotationTests_ProcessEvent_Event_qname */
- /* Details: "Method qname(): On an event request, the method is */
- /* executed if the Event qname matches the qname field" */
- TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_EVENT_QNAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2AnnotationTests_ProcessEvent_Event_name */
- /* Details: "Method name(): On an event request, the method is */
- /* executed if the Event name matches the name field" */
- TestResult tr1 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_EVENT_NAME);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>AnnotationTests_ProcessEvent_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
new file mode 100644
index 0000000..ce94925
--- /dev/null
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
@@ -0,0 +1,113 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet AnnotationTests_RenderMode_ApiRender_event
+ *
+ */
+public class AnnotationTests_RenderMode_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ AnnotationTests_RenderMode_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2AnnotationTests_RenderMode_ApiRender_name */
+ /* Details: "Method name(): On a render request, the method is */
+ /* executed if the portlet mode matches the name field" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_RENDERMODE_APIRENDER_NAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_Render.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_Render.java
deleted file mode 100644
index 7375ccf..0000000
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_Render.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet AnnotationTests_RenderMode_Render_event
- *
- */
-public class AnnotationTests_RenderMode_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- AnnotationTests_RenderMode_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2AnnotationTests_RenderMode_Render_name */
- /* Details: "Method name(): On a render request, the method is */
- /* executed if the portlet mode matches the name field" */
- TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_RENDERMODE_RENDER_NAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2AnnotationTests/src/main/resources/xml-resources/additionalTCs.xml
index daa5156..1874fc0 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,8 +20,8 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API AnnotationTests test case names and page mappings -->
-<entry key="V2AnnotationTests_ProcessAction_Action_name">V2AnnotationTests</entry>
-<entry key="V2AnnotationTests_ProcessEvent_Event_qname">V2AnnotationTests</entry>
-<entry key="V2AnnotationTests_ProcessEvent_Event_name">V2AnnotationTests</entry>
-<entry key="V2AnnotationTests_RenderMode_Render_name">V2AnnotationTests</entry>
+<entry key="V2AnnotationTests_ProcessAction_ApiAction_name">V2AnnotationTests</entry>
+<entry key="V2AnnotationTests_ProcessEvent_ApiEvent_qname">V2AnnotationTests</entry>
+<entry key="V2AnnotationTests_ProcessEvent_ApiEvent_name">V2AnnotationTests</entry>
+<entry key="V2AnnotationTests_RenderMode_ApiRender_name">V2AnnotationTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
index b5ed6f2..cebfa93 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,105 +23,107 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2AnnotationTests">
<portlet>
- <portlet-name>AnnotationTests_ProcessAction_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessAction_Action</portlet-class>
+ <portlet-name>AnnotationTests_ProcessAction_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessAction_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>AnnotationTests_ProcessAction_Action</title>
+ <title>AnnotationTests_ProcessAction_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>AnnotationTests_ProcessEvent_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessEvent_Event</portlet-class>
+ <portlet-name>AnnotationTests_ProcessEvent_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessEvent_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>AnnotationTests_ProcessEvent_Event</title>
+ <title>AnnotationTests_ProcessEvent_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:AnnotationTests_ProcessEvent_Event</qname>
+ <qname>tck:AnnotationTests_ProcessEvent_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>AnnotationTests_ProcessEvent_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessEvent_Event_event</portlet-class>
+ <portlet-name>AnnotationTests_ProcessEvent_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.AnnotationTests_ProcessEvent_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>AnnotationTests_ProcessEvent_Event_event</title>
+ <title>AnnotationTests_ProcessEvent_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:AnnotationTests_ProcessEvent_Event</qname>
+ <qname>tck:AnnotationTests_ProcessEvent_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>AnnotationTests_RenderMode_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.AnnotationTests_RenderMode_Render</portlet-class>
+ <portlet-name>AnnotationTests_RenderMode_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.AnnotationTests_RenderMode_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>AnnotationTests_RenderMode_Render</title>
+ <title>AnnotationTests_RenderMode_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:AnnotationTests_ProcessEvent_Event</qname>
+ <qname>tck:AnnotationTests_ProcessEvent_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
new file mode 100644
index 0000000..0e13766
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
@@ -0,0 +1,288 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_CacheControl_ApiRender_event
+ *
+ */
+public class EnvironmentTests_CacheControl_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_CacheControl_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime1 */
+ /* Details: "Method getExpirationTime(): Returns the expiration time */
+ /* set through setExpirationTime" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_GETEXPIRATIONTIME1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime2 */
+ /* Details: "Method getExpirationTime(): Returns the default */
+ /* expiration time from the deployment descriptor if the expiration */
+ /* time has not been set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_GETEXPIRATIONTIME2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime3 */
+ /* Details: "Method getExpirationTime(): Returns 0 if the expiration */
+ /* time has not been set and no default is set in the deployment */
+ /* descriptor" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_GETEXPIRATIONTIME3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime1 */
+ /* Details: "Method setExpirationTime(int): Sets the expiration time */
+ /* for the current response to the specified value" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETEXPIRATIONTIME1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime2 */
+ /* Details: "Method setExpirationTime(int): If the expiration value */
+ /* is set to 0, caching is disabled" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETEXPIRATIONTIME2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime3 */
+ /* Details: "Method setExpirationTime(int): If the expiration value */
+ /* is set to -1, the cache does not expire" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETEXPIRATIONTIME3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_isPublicScope1 */
+ /* Details: "Method isPublicScope(): Returns true if the caching */
+ /* scope has been set to public through the setPublicScope method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_ISPUBLICSCOPE1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_isPublicScope2 */
+ /* Details: "Method isPublicScope(): Returns true if the caching */
+ /* scope default has not been set with the setPublicScope method, but */
+ /* has been set to public in the deployment descriptor " */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_ISPUBLICSCOPE2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_isPublicScope3 */
+ /* Details: "Method isPublicScope(): Returns false if the caching */
+ /* scope has not been set with the setPublicScope method, but has */
+ /* been set to private through the setPublicScope method " */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_ISPUBLICSCOPE3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_isPublicScope5 */
+ /* Details: "Method isPublicScope(): Returns false if the caching */
+ /* scope has not been set with the setPublicScope method and has not */
+ /* been set in the deployment descriptor" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_ISPUBLICSCOPE5);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setPublicScope1 */
+ /* Details: "Method setPublicScope(boolean): If the input parameter */
+ /* is true, the cache scope is set to public" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETPUBLICSCOPE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setPublicScope2 */
+ /* Details: "Method setPublicScope(boolean): If the input parameter */
+ /* is false, the cache scope is set to non-public" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETPUBLICSCOPE2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getETag1 */
+ /* Details: "Method getETag(): Returns a String containing the ETag */
+ /* for the current response" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_GETETAG1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getETag2 */
+ /* Details: "Method getETag(): Returns null if no ETag is set on the */
+ /* response" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_GETETAG2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setETag1 */
+ /* Details: "Method setETag(String): Sets an ETag for the current */
+ /* response" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETETAG1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setETag2 */
+ /* Details: "Method setETag(String): A previously-set ETag is */
+ /* overwritten" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETETAG2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setETag3 */
+ /* Details: "Method setETag(String): Removes the ETag if the input */
+ /* parameter is null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETETAG3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_useCachedContent1 */
+ /* Details: "Method useCachedContent(): Returns true if cached */
+ /* content has been set to valid through the setUseCachedContent */
+ /* method" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_USECACHEDCONTENT1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_useCachedContent2 */
+ /* Details: "Method useCachedContent(): Returns false if cached */
+ /* content has been set to invalid through the setUseCachedContent */
+ /* method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_USECACHEDCONTENT2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_useCachedContent3 */
+ /* Details: "Method useCachedContent(): Returns false if the use */
+ /* cached content indcator has not been set" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_USECACHEDCONTENT3);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setUseCachedContent1 */
+ /* Details: "Method setUseCachedContent(boolean): If set to true, the */
+ /* cached content is valid " */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETUSECACHEDCONTENT1);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiRender_setUseCachedContent2 */
+ /* Details: "Method setUseCachedContent(boolean): If set to false, */
+ /* the cached content is invalid " */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRENDER_SETUSECACHEDCONTENT2);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ }
+
+}
[41/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
new file mode 100644
index 0000000..9b3b9ae
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
@@ -0,0 +1,204 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletRequestDispatcher_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletRequestDispatcher_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletRequestDispatcher_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA1 */
+ /* Details: "Method include(PortletRequest, PortletResponse): */
+ /* Includes the content of a JSP page in the response" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA2 */
+ /* Details: "Method include(PortletRequest, PortletResponse): */
+ /* Includes the content of a HTML Page in the response" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA3 */
+ /* Details: "Method include(PortletRequest, PortletResponse): The */
+ /* included servlet cannot change the status code. The attempt is */
+ /* ignored" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEA3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA4 */
+ /* Details: "Method include(PortletRequest, PortletResponse): The */
+ /* included servlet cannot set the headers. The attempt is ignored" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEA4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB1 */
+ /* Details: "Method include(RenderRequest, RenderResponse): Includes */
+ /* the content of a JSP page in the response" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEB1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB2 */
+ /* Details: "Method include(RenderRequest, RenderResponse): Includes */
+ /* the content of a HTML Page in the response" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEB2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB3 */
+ /* Details: "Method include(RenderRequest, RenderResponse): The */
+ /* included servlet cannot change the status code. The attempt is */
+ /* ignored" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEB3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB4 */
+ /* Details: "Method include(RenderRequest, RenderResponse): The */
+ /* included servlet cannot set the headers. The attempt is ignored" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_INCLUDEB4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward1 */
+ /* Details: "Method forward(PortletRequest, PortletResponse): Can */
+ /* forward to a JSP page to create the response" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_FORWARD1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward2 */
+ /* Details: "Method forward(PortletRequest, PortletResponse): Can */
+ /* forward to a HTML Page to create the response" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_FORWARD2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward3 */
+ /* Details: "Method forward(PortletRequest, PortletResponse): Throws */
+ /* IllegalStateException if the response was already committed" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_FORWARD3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward4 */
+ /* Details: "Method forward(PortletRequest, PortletResponse): Throws */
+ /* PortletException if the forwarded servlet throws any excpetion */
+ /* other than IOException or a runtime exception " */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_APIRENDER_FORWARD4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_Render.java
deleted file mode 100644
index c34cf06..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_Render.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletRequestDispatcher_Render_event
- *
- */
-public class EnvironmentTests_PortletRequestDispatcher_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletRequestDispatcher_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeA1 */
- /* Details: "Method include(PortletRequest, PortletResponse): */
- /* Includes the content of a JSP page in the response" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeA2 */
- /* Details: "Method include(PortletRequest, PortletResponse): */
- /* Includes the content of a HTML Page in the response" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeA3 */
- /* Details: "Method include(PortletRequest, PortletResponse): The */
- /* included servlet cannot change the status code. The attempt is */
- /* ignored" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEA3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeA4 */
- /* Details: "Method include(PortletRequest, PortletResponse): The */
- /* included servlet cannot set the headers. The attempt is ignored" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEA4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeB1 */
- /* Details: "Method include(RenderRequest, RenderResponse): Includes */
- /* the content of a JSP page in the response" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEB1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeB2 */
- /* Details: "Method include(RenderRequest, RenderResponse): Includes */
- /* the content of a HTML Page in the response" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEB2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeB3 */
- /* Details: "Method include(RenderRequest, RenderResponse): The */
- /* included servlet cannot change the status code. The attempt is */
- /* ignored" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEB3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_includeB4 */
- /* Details: "Method include(RenderRequest, RenderResponse): The */
- /* included servlet cannot set the headers. The attempt is ignored" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_INCLUDEB4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_forward1 */
- /* Details: "Method forward(PortletRequest, PortletResponse): Can */
- /* forward to a JSP page to create the response" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_FORWARD1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_forward2 */
- /* Details: "Method forward(PortletRequest, PortletResponse): Can */
- /* forward to a HTML Page to create the response" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_FORWARD2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_forward3 */
- /* Details: "Method forward(PortletRequest, PortletResponse): Throws */
- /* IllegalStateException if the response was already committed" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_FORWARD3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletRequestDispatcher_Render_forward4 */
- /* Details: "Method forward(PortletRequest, PortletResponse): Throws */
- /* PortletException if the forwarded servlet throws any excpetion */
- /* other than IOException or a runtime exception " */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETREQUESTDISPATCHER_RENDER_FORWARD4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
new file mode 100644
index 0000000..66634b8
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
@@ -0,0 +1,149 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletSessionUtil_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletSessionUtil_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletSessionUtil_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeAttributeName1 */
+ /* Details: "Method decodeAttributeName(String): Returns a String */
+ /* containing the decoded name of the attribute if the input name is */
+ /* an encoded name in PORTLET_SCOPE" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_APIRENDER_DECODEATTRIBUTENAME1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeAttributeName2 */
+ /* Details: "Method decodeAttributeName(String): Returns a String */
+ /* containing the input name unchanged if the input name is in */
+ /* APPLICATION_SCOPE " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_APIRENDER_DECODEATTRIBUTENAME2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope1 */
+ /* Details: "Method decodeScope(String): Returns the decoded */
+ /* attribute scope for the input encoded attribute name" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_APIRENDER_DECODESCOPE1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope2 */
+ /* Details: "Method decodeScope(String): Returns */
+ /* PortletSession.APPLICATION_SCOPE if the attribute name is in */
+ /* APPLICATION_SCOPE" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_APIRENDER_DECODESCOPE2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope3 */
+ /* Details: "Method decodeScope(String): Returns */
+ /* PortletSession.PORTLET_SCOPE if the attribute name is in */
+ /* PORTLET_SCOPE" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_APIRENDER_DECODESCOPE3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_Render.java
deleted file mode 100644
index 0971146..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_Render.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletSessionUtil_Render_event
- *
- */
-public class EnvironmentTests_PortletSessionUtil_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletSessionUtil_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletSessionUtil_Render_decodeAttributeName1 */
- /* Details: "Method decodeAttributeName(String): Returns a String */
- /* containing the decoded name of the attribute if the input name is */
- /* an encoded name in PORTLET_SCOPE" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_RENDER_DECODEATTRIBUTENAME1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSessionUtil_Render_decodeAttributeName2 */
- /* Details: "Method decodeAttributeName(String): Returns a String */
- /* containing the input name unchanged if the input name is in */
- /* APPLICATION_SCOPE " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_RENDER_DECODEATTRIBUTENAME2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSessionUtil_Render_decodeScope1 */
- /* Details: "Method decodeScope(String): Returns the decoded */
- /* attribute scope for the input encoded attribute name" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_RENDER_DECODESCOPE1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSessionUtil_Render_decodeScope2 */
- /* Details: "Method decodeScope(String): Returns */
- /* PortletSession.APPLICATION_SCOPE if the attribute name is in */
- /* APPLICATION_SCOPE" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_RENDER_DECODESCOPE2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSessionUtil_Render_decodeScope3 */
- /* Details: "Method decodeScope(String): Returns */
- /* PortletSession.PORTLET_SCOPE if the attribute name is in */
- /* PORTLET_SCOPE" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSIONUTIL_RENDER_DECODESCOPE3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
new file mode 100644
index 0000000..e8c4845
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
@@ -0,0 +1,565 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletSession_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletSession_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletSession_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_fieldAPPLICATION_SCOPE */
+ /* Details: "Has int field APPLICATION_SCOPE with value of 0x01 " */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_FIELDAPPLICATION_SCOPE);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_fieldPORTLET_SCOPE */
+ /* Details: "Has int field PORTLET_SCOPE with value of 0x02 " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_FIELDPORTLET_SCOPE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name in the PORTLET_SCOPE" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEA1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists in the PORTLET_SCOPE" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEA2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEA3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA4 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalStateException if the method is called on an invalidated */
+ /* session" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEA4);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeB1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name in the specified scope" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEB1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeB2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists in the specified scope" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEB2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeB3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEB3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeB4 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalStateException if the method is called on an invalidated */
+ /* session" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEB4);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesA1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names in the PORTLET_SCOPE" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTENAMESA1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesA2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available in the PORTLET_SCOPE" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTENAMESA2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesB1 */
+ /* Details: "Method getAttributeNames(int): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names in the specified scope" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTENAMESB1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesB2 */
+ /* Details: "Method getAttributeNames(int): Returns an empty */
+ /* Enumeration if there are no attributes available in the specified */
+ /* scope" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTENAMESB2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getCreationTime1 */
+ /* Details: "Method getCreationTime(): Returns a long containing the */
+ /* time the session was created in milliseconds since 1/1/1970 " */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETCREATIONTIME1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getCreationTime2 */
+ /* Details: "Method getCreationTime(): Throws IllegalStateException */
+ /* if this method is called on an invalidated session" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETCREATIONTIME2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getId */
+ /* Details: "Method getId(): Returns a String containing a unique */
+ /* identifier for the session" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETID);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getLastAccessedTime */
+ /* Details: "Method getLastAccessedTime(): Returns a long containing */
+ /* the last time the session was accessed in milliseconds since */
+ /* 1/1/1970" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETLASTACCESSEDTIME);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getMaxInactiveInterval */
+ /* Details: "Method getMaxInactiveInterval(): Returns the maximum */
+ /* time interval, in seconds, for which the portlet container keeps */
+ /* this session open between client accesses" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETMAXINACTIVEINTERVAL);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_invalidate1 */
+ /* Details: "Method invalidate(): Invalidates this session (all */
+ /* scopes): and unbinds any objects bound to it" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_INVALIDATE1);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_invalidate2 */
+ /* Details: "Method invalidate(): The underlying HTTP session is also */
+ /* invalidated" */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_INVALIDATE2);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_isNew1 */
+ /* Details: "Method isNew(): Returns true if the client has not yet */
+ /* joined the session" */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_ISNEW1);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_isNew2 */
+ /* Details: "Method isNew(): Returns false if the client has joined */
+ /* the session" */
+ TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_ISNEW2);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the PORTLET_SCOPE" */
+ TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEA1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA2 */
+ /* Details: "Method removeAttribute(String): If there is no attribute */
+ /* by the specified name in the the PORTLET_SCOPE, this method does */
+ /* nothing" */
+ TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEA2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA3 */
+ /* Details: "Method removeAttribute(String): If an attribute was */
+ /* removed, the HttpSessionAttributeListener.attributeRemoved method */
+ /* is called on all HttpSessionAttributeListeners in the web */
+ /* application" */
+ TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEA3);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA4 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEA4);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB1 */
+ /* Details: "Method removeAttribute(String, int): Removes the */
+ /* attribute specified by the name from the specified scope" */
+ TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEB1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB2 */
+ /* Details: "Method removeAttribute(String, int): If there is no */
+ /* attribute by the specified name in the specified scope, this */
+ /* method does nothing" */
+ TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEB2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB3 */
+ /* Details: "Method removeAttribute(String, int): If an attribute was */
+ /* removed, the HttpSessionAttributeListener.attributeRemoved method */
+ /* is called on all HttpSessionAttributeListeners in the web */
+ /* application" */
+ TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEB3);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB4 */
+ /* Details: "Method removeAttribute(String, int): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEB4);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the PORTLET_SCOPE" */
+ TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA2 */
+ /* Details: "Method setAttribute(String, Object): Replaces the */
+ /* attribute by the specified name if the attribute already exists" */
+ TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA3 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA4 */
+ /* Details: "Method setAttribute(String, Object): If the attribute */
+ /* object implements HttpSessionBindingListener, its */
+ /* HttpSessionBindingListener.valueBound method is called" */
+ TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA4);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA5 */
+ /* Details: "Method setAttribute(String, Object): If an existing */
+ /* attribute object implements HttpSessionBindingListener and is */
+ /* replaced, its HttpSessionBindingListener.valueUnbound method is */
+ /* called" */
+ TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA5);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA6 */
+ /* Details: "Method setAttribute(String, Object): If an attribute was */
+ /* replaced, the HttpSessionAttributeListener.attributeReplaced */
+ /* method is called on all HttpSessionAttributeListeners in the web */
+ /* application" */
+ TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA6);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA7 */
+ /* Details: "Method setAttribute(String, Object): If a new attribute */
+ /* was added, the HttpSessionAttributeListener.attributeAdded method */
+ /* is called on all HttpSessionAttributeListeners in the web */
+ /* application" */
+ TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA7);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA8 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA8);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB1 */
+ /* Details: "Method setAttribute(String, Object, int): Stores an */
+ /* attribute object under the specified name in the specified scope" */
+ TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB2 */
+ /* Details: "Method setAttribute(String, Object, int): Replaces the */
+ /* attribute by the specified name if the attribute already exists" */
+ TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB3 */
+ /* Details: "Method setAttribute(String, Object, int): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB3);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB4 */
+ /* Details: "Method setAttribute(String, Object, int): If the */
+ /* attribute object implements HttpSessionBindingListener, its */
+ /* HttpSessionBindingListener.valueBound method is called" */
+ TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB4);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB5 */
+ /* Details: "Method setAttribute(String, Object, int): If an existing */
+ /* attribute object implements HttpSessionBindingListener and is */
+ /* replaced, its HttpSessionBindingListener.valueUnbound method is */
+ /* called" */
+ TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB5);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB6 */
+ /* Details: "Method setAttribute(String, Object, int): If an */
+ /* attribute was replaced, the */
+ /* HttpSessionAttributeListener.attributeReplaced method is called on */
+ /* all HttpSessionAttributeListeners in the web application" */
+ TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB6);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB7 */
+ /* Details: "Method setAttribute(String, Object, int): If a new */
+ /* attribute was added, the */
+ /* HttpSessionAttributeListener.attributeAdded method is called on */
+ /* all HttpSessionAttributeListeners in the web application" */
+ TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB7);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB8 */
+ /* Details: "Method setAttribute(String, Object, int): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB8);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setMaxInactiveInterval1 */
+ /* Details: "Method setMaxInactiveInterval(int): Specifies the time */
+ /* in seconds between client requests before the portlet contaner */
+ /* invalidates the session" */
+ TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETMAXINACTIVEINTERVAL1);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setMaxInactiveInterval2 */
+ /* Details: "Method setMaxInactiveInterval(int): If the specified */
+ /* time is negative, the session should never timeout" */
+ TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETMAXINACTIVEINTERVAL2);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getPortletContext */
+ /* Details: "Method getPortletContext(): Returns the PortletContext */
+ /* object for this session" */
+ TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETPORTLETCONTEXT);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapA1 */
+ /* Details: "Method getAttributeMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.Object> object for */
+ /* the attributes available in the PORTLET_SCOPE" */
+ TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEMAPA1);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapA2 */
+ /* Details: "Method getAttributeMap(): Returns an empty map if no */
+ /* attributes exist in the PORTLET_SCOPE" */
+ TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEMAPA2);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapB1 */
+ /* Details: "Method getAttributeMap(int): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.Object> object for */
+ /* the attributes available in the PORTLET_SCOPE" */
+ TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEMAPB1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapB2 */
+ /* Details: "Method getAttributeMap(int): Returns an empty map if no */
+ /* attributes exist in the PORTLET_SCOPE" */
+ TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEMAPB2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ }
+
+}
[34/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ResourceFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ResourceFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ResourceFilter.java
deleted file mode 100644
index c5abd60..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ResourceFilter_ResourceFilter.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_ResourceFilter_ResourceFilter_event
- *
- */
-public class FilterTests_ResourceFilter_ResourceFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_ResourceFilter_ResourceFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured1 */
- /* Details: "An ResourceFilter can be configured in the portlet */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_CANBECONFIGURED1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured2 */
- /* Details: "Multiple ResourceFilter classes can be configured in the */
- /* portlet descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_CANBECONFIGURED2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterIsCalled */
- /* Details: "The doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method is called before the processResource method */
- /* for the portlet" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERISCALLED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource1 */
- /* Details: "After the doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processResourceMethod is called" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERPROCESSRESOURCE1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource2 */
- /* Details: "After the doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERPROCESSRESOURCE2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterBlock */
- /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method does not invoke the next filter, */
- /* processResource is not called" */
- TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTERBLOCK);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterException1 */
- /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method throws an UnavailableException, */
- /* processResource is not called" */
- TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXCEPTION1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterException2 */
- /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXCEPTION2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2FilterTests_ResourceFilter_ResourceFilter_doFilterExamine */
- /* Details: "Method doFilter(ResourceRequest, ResourceResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the ResourceResponse may be examined" */
- TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_RESOURCEFILTER_DOFILTEREXAMINE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"FilterTests_ResourceFilter_ResourceFilter\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"FilterTests_ResourceFilter_ResourceFilter\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2FilterTests/src/main/resources/xml-resources/additionalTCs.xml
index 5aa3dd0..9dc2494 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2FilterTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,74 +20,70 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API FilterTests test case names and page mappings -->
-<entry key="V2FilterTests_FilterChain_ActionFilter_invokeActionFilter">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ActionFilter_invokeActionFilter2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ActionFilter_invokeActionException">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ActionFilter_invokeActionException2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_EventFilter_invokeEventFilter">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_EventFilter_invokeEventFilter2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_EventFilter_invokeEventException">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_EventFilter_invokeEventException2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_RenderFilter_invokeRenderFilter2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_RenderFilter_invokeRenderException">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_RenderFilter_invokeRenderException2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ResourceFilter_invokeResourceFilter2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ResourceFilter_invokeResourceException">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterChain_ResourceFilter_invokeResourceException2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getFilterName">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getPortletContext">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getInitParameter1">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getInitParameter2">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames1">V2FilterTests</entry>
-<entry key="V2FilterTests_FilterConfig_RenderFilter_getInitParameterNames2">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ActionFilter_initAction1">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ActionFilter_initAction2">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ActionFilter_initAction3">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_EventFilter_initEvent1">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_EventFilter_initEvent2">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_EventFilter_initEvent3">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_RenderFilter_initRender1">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_RenderFilter_initRender2">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_RenderFilter_initRender3">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ResourceFilter_initResource1">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ResourceFilter_initResource2">V2FilterTests</entry>
-<entry key="V2FilterTests_PortletFilter_ResourceFilter_initResource3">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_canBeConfigured1">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_canBeConfigured2">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterIsCalled">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction1">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction2">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterBlock">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterException1">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterException2">V2FilterTests</entry>
-<entry key="V2FilterTests_ActionFilter_ActionFilter_doFilterExamine">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_canBeConfigured1">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_canBeConfigured2">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterIsCalled">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent1">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterProcessEvent2">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterBlock">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterException1">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterException2">V2FilterTests</entry>
-<entry key="V2FilterTests_EventFilter_EventFilter_doFilterExamine">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_canBeConfigured1">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_canBeConfigured2">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterIsCalled">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender1">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterProcessRender2">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterBlock">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterException1">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterException2">V2FilterTests</entry>
-<entry key="V2FilterTests_RenderFilter_RenderFilter_doFilterExamine">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured1">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_canBeConfigured2">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterIsCalled">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource1">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterProcessResource2">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterBlock">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterException1">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterException2">V2FilterTests</entry>
-<entry key="V2FilterTests_ResourceFilter_ResourceFilter_doFilterExamine">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter2">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiActionFilter_invokeActionException">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter2">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiEventFilter_invokeEventException">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderFilter">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderFilter2">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderException">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceFilter">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceFilter2">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceException">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getFilterName">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getPortletContext">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameter1">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameter2">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameterNames1">V2FilterTests</entry>
+<entry key="V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameterNames2">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiActionFilter_initAction1">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiActionFilter_initAction2">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiActionFilter_initAction3">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiEventFilter_initEvent1">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiEventFilter_initEvent2">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiEventFilter_initEvent3">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiRenderFilter_initRender1">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiRenderFilter_initRender2">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiRenderFilter_initRender3">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiResourceFilter_initResource1">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiResourceFilter_initResource2">V2FilterTests</entry>
+<entry key="V2FilterTests_PortletFilter_ApiResourceFilter_initResource3">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured1">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured2">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterIsCalled">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction1">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction2">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterBlock">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterException1">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterException2">V2FilterTests</entry>
+<entry key="V2FilterTests_ActionFilter_ApiActionFilter_doFilterExamine">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured1">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured2">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterIsCalled">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent1">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent2">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterBlock">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterException1">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterException2">V2FilterTests</entry>
+<entry key="V2FilterTests_EventFilter_ApiEventFilter_doFilterExamine">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_canBeConfigured1">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_canBeConfigured2">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterIsCalled">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterProcessRender1">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterProcessRender2">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterBlock">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterException1">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterException2">V2FilterTests</entry>
+<entry key="V2FilterTests_RenderFilter_ApiRenderFilter_doFilterExamine">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_canBeConfigured1">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_canBeConfigured2">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterIsCalled">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterProcessResource1">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterProcessResource2">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterBlock">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException1">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException2">V2FilterTests</entry>
+<entry key="V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterExamine">V2FilterTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2FilterTests/src/main/webapp/WEB-INF/portlet.xml
index 92e9c0b..68a86ea 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2FilterTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,243 +23,362 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2FilterTests">
<portlet>
- <portlet-name>FilterTests_FilterChain_ActionFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ActionFilter</portlet-class>
+ <portlet-name>FilterTests_FilterChain_ApiActionFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ApiActionFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterChain_ActionFilter</title>
+ <title>FilterTests_FilterChain_ApiActionFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_FilterChain_EventFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_EventFilter</portlet-class>
+ <portlet-name>FilterTests_FilterChain_ApiEventFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ApiEventFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterChain_EventFilter</title>
+ <title>FilterTests_FilterChain_ApiEventFilter</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_FilterChain_EventFilter_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_EventFilter_event</portlet-class>
+ <portlet-name>FilterTests_FilterChain_ApiEventFilter_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ApiEventFilter_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterChain_EventFilter_event</title>
+ <title>FilterTests_FilterChain_ApiEventFilter_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_FilterChain_RenderFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_RenderFilter</portlet-class>
+ <portlet-name>FilterTests_FilterChain_ApiRenderFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ApiRenderFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterChain_RenderFilter</title>
+ <title>FilterTests_FilterChain_ApiRenderFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_FilterChain_ResourceFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ResourceFilter</portlet-class>
+ <portlet-name>FilterTests_FilterChain_ApiResourceFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterChain_ApiResourceFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterChain_ResourceFilter</title>
+ <title>FilterTests_FilterChain_ApiResourceFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_FilterConfig_RenderFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterConfig_RenderFilter</portlet-class>
+ <portlet-name>FilterTests_FilterConfig_ApiRenderFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_FilterConfig_ApiRenderFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_FilterConfig_RenderFilter</title>
+ <title>FilterTests_FilterConfig_ApiRenderFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_PortletFilter_ActionFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ActionFilter</portlet-class>
+ <portlet-name>FilterTests_PortletFilter_ApiActionFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ApiActionFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_PortletFilter_ActionFilter</title>
+ <title>FilterTests_PortletFilter_ApiActionFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_PortletFilter_EventFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_EventFilter</portlet-class>
+ <portlet-name>FilterTests_PortletFilter_ApiEventFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ApiEventFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_PortletFilter_EventFilter</title>
+ <title>FilterTests_PortletFilter_ApiEventFilter</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_PortletFilter_EventFilter_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_EventFilter_event</portlet-class>
+ <portlet-name>FilterTests_PortletFilter_ApiEventFilter_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ApiEventFilter_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_PortletFilter_EventFilter_event</title>
+ <title>FilterTests_PortletFilter_ApiEventFilter_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_PortletFilter_RenderFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_RenderFilter</portlet-class>
+ <portlet-name>FilterTests_PortletFilter_ApiRenderFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ApiRenderFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_PortletFilter_RenderFilter</title>
+ <title>FilterTests_PortletFilter_ApiRenderFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_PortletFilter_ResourceFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ResourceFilter</portlet-class>
+ <portlet-name>FilterTests_PortletFilter_ApiResourceFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_PortletFilter_ApiResourceFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_PortletFilter_ResourceFilter</title>
+ <title>FilterTests_PortletFilter_ApiResourceFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_ActionFilter_ActionFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_ActionFilter_ActionFilter</portlet-class>
+ <portlet-name>FilterTests_ActionFilter_ApiActionFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_ActionFilter_ApiActionFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_ActionFilter_ActionFilter</title>
+ <title>FilterTests_ActionFilter_ApiActionFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_EventFilter_EventFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_EventFilter_EventFilter</portlet-class>
+ <portlet-name>FilterTests_EventFilter_ApiEventFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_EventFilter_ApiEventFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_EventFilter_EventFilter</title>
+ <title>FilterTests_EventFilter_ApiEventFilter</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_EventFilter_EventFilter_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_EventFilter_EventFilter_event</portlet-class>
+ <portlet-name>FilterTests_EventFilter_ApiEventFilter_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_EventFilter_ApiEventFilter_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_EventFilter_EventFilter_event</title>
+ <title>FilterTests_EventFilter_ApiEventFilter_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>FilterTests_RenderFilter_RenderFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_RenderFilter_RenderFilter</portlet-class>
+ <portlet-name>FilterTests_RenderFilter_ApiRenderFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_RenderFilter_ApiRenderFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_RenderFilter_RenderFilter</title>
+ <title>FilterTests_RenderFilter_ApiRenderFilter</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>FilterTests_ResourceFilter_ResourceFilter</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.FilterTests_ResourceFilter_ResourceFilter</portlet-class>
+ <portlet-name>FilterTests_ResourceFilter_ApiResourceFilter</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.FilterTests_ResourceFilter_ApiResourceFilter</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>FilterTests_ResourceFilter_ResourceFilter</title>
+ <title>FilterTests_ResourceFilter_ApiResourceFilter</title>
</portlet-info>
</portlet>
+ <filter>
+ <filter-name>FilterTests_ActionFilter_ApiActionFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_ActionFilter_ApiActionFilter_filter</filter-class>
+ <lifecycle>ACTION_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_RenderFilter_ApiRenderFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_RenderFilter_ApiRenderFilter_filter</filter-class>
+ <lifecycle>RENDER_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_PortletFilter_ApiActionFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_PortletFilter_ApiActionFilter_filter</filter-class>
+ <lifecycle>ACTION_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_PortletFilter_ApiRenderFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_PortletFilter_ApiRenderFilter_filter</filter-class>
+ <lifecycle>RENDER_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_PortletFilter_ApiResourceFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_PortletFilter_ApiResourceFilter_filter</filter-class>
+ <lifecycle>RESOURCE_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_ResourceFilter_ApiResourceFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_ResourceFilter_ApiResourceFilter_filter</filter-class>
+ <lifecycle>RESOURCE_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_PortletFilter_ApiEventFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_PortletFilter_ApiEventFilter_filter</filter-class>
+ <lifecycle>EVENT_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_EventFilter_ApiEventFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_EventFilter_ApiEventFilter_filter</filter-class>
+ <lifecycle>EVENT_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_FilterChain_ApiActionFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_FilterChain_ApiActionFilter_filter</filter-class>
+ <lifecycle>ACTION_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_FilterChain_ApiRenderFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_FilterChain_ApiRenderFilter_filter</filter-class>
+ <lifecycle>RENDER_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_FilterChain_ApiResourceFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_FilterChain_ApiResourceFilter_filter</filter-class>
+ <lifecycle>RESOURCE_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_FilterConfig_ApiRenderFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_FilterConfig_ApiRenderFilter_filter</filter-class>
+ <lifecycle>RENDER_PHASE</lifecycle>
+ </filter>
+ <filter>
+ <filter-name>FilterTests_FilterChain_ApiEventFilter_filter</filter-name>
+ <filter-class>javax.portlet.tck.filters.FilterTests_FilterChain_ApiEventFilter_filter</filter-class>
+ <lifecycle>EVENT_PHASE</lifecycle>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>FilterTests_ActionFilter_ApiActionFilter_filter</filter-name>
+ <portlet-name>FilterTests_ActionFilter_ApiActionFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_RenderFilter_ApiRenderFilter_filter</filter-name>
+ <portlet-name>FilterTests_RenderFilter_ApiRenderFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_PortletFilter_ApiActionFilter_filter</filter-name>
+ <portlet-name>FilterTests_PortletFilter_ApiActionFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_PortletFilter_ApiRenderFilter_filter</filter-name>
+ <portlet-name>FilterTests_PortletFilter_ApiRenderFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_PortletFilter_ApiResourceFilter_filter</filter-name>
+ <portlet-name>FilterTests_PortletFilter_ApiResourceFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_ResourceFilter_ApiResourceFilter_filter</filter-name>
+ <portlet-name>FilterTests_ResourceFilter_ApiResourceFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_PortletFilter_ApiEventFilter_filter</filter-name>
+ <portlet-name>FilterTests_PortletFilter_ApiEventFilter_event</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_EventFilter_ApiEventFilter_filter</filter-name>
+ <portlet-name>FilterTests_EventFilter_ApiEventFilter_event</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_FilterChain_ApiActionFilter_filter</filter-name>
+ <portlet-name>FilterTests_FilterChain_ApiActionFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_FilterChain_ApiRenderFilter_filter</filter-name>
+ <portlet-name>FilterTests_FilterChain_ApiRenderFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_FilterChain_ApiResourceFilter_filter</filter-name>
+ <portlet-name>FilterTests_FilterChain_ApiResourceFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_FilterConfig_ApiRenderFilter_filter</filter-name>
+ <portlet-name>FilterTests_FilterConfig_ApiRenderFilter</portlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>FilterTests_FilterChain_ApiEventFilter_filter</filter-name>
+ <portlet-name>FilterTests_FilterChain_ApiEventFilter_event</portlet-name>
+ </filter-mapping>
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent.java
new file mode 100644
index 0000000..a97e62b
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent.java
@@ -0,0 +1,114 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_EventPortlet_ApiEvent_event
+ *
+ */
+public class PortletTests_EventPortlet_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_EventPortlet_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "PortletTests_EventPortlet_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2PortletTests_EventPortlet_ApiEvent_processEvent */
+ /* Details: "Method processEvent(EventRequest, EventResponse): is */
+ /* called when an event is targeted to the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_EventPortlet_ApiEvent_processEvent", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
new file mode 100644
index 0000000..a87e27d
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
@@ -0,0 +1,117 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class PortletTests_EventPortlet_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_EventPortlet_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_EventPortlet_ApiEvent_processEvent */
+ /* Details: "Method processEvent(EventRequest, EventResponse): is */
+ /* called when an event is targeted to the portlet" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENTPORTLET_APIEVENT_PROCESSEVENT);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "PortletTests_EventPortlet_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>PortletTests_EventPortlet_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "PortletTests_EventPortlet_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event.java
deleted file mode 100644
index cb29318..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_EventPortlet_Event_event
- *
- */
-public class PortletTests_EventPortlet_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_EventPortlet_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "PortletTests_EventPortlet_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2PortletTests_EventPortlet_Event_processEvent */
- /* Details: "Method processEvent(EventRequest, EventResponse): is */
- /* called when an event is targeted to the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_EventPortlet_Event_processEvent", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event_event.java
deleted file mode 100644
index 40f53b1..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_Event_event.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class PortletTests_EventPortlet_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_EventPortlet_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_EventPortlet_Event_processEvent */
- /* Details: "Method processEvent(EventRequest, EventResponse): is */
- /* called when an event is targeted to the portlet" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENTPORTLET_EVENT_PROCESSEVENT);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "PortletTests_EventPortlet_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>PortletTests_EventPortlet_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "PortletTests_EventPortlet_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
new file mode 100644
index 0000000..42fda42
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
@@ -0,0 +1,162 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_Event_ApiEvent_event
+ *
+ */
+public class PortletTests_Event_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_Event_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "PortletTests_Event_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getQName1 */
+ /* Details: "Method getQName(): Returns the javax.xml.namespace.QName */
+ /* object for the Event" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getQName1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getQName2 */
+ /* Details: "Method getQName(): Returned value may not be null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getQName2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getName1 */
+ /* Details: "Method getName(): Returns a String containing the event */
+ /* local name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getName1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getName2 */
+ /* Details: "Method getName(): Returned value may not be null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getName2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getValue1 */
+ /* Details: "Method getValue(String, String): Returns a */
+ /* java.io.Serializable object representing the event payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getValue1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getValue2 */
+ /* Details: "Method getValue(String, String): Returned value is null */
+ /* if the event has no payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Event_ApiEvent_getValue2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
new file mode 100644
index 0000000..43ea2a0
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
@@ -0,0 +1,155 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class PortletTests_Event_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_Event_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getQName1 */
+ /* Details: "Method getQName(): Returns the javax.xml.namespace.QName */
+ /* object for the Event" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getQName2 */
+ /* Details: "Method getQName(): Returned value may not be null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getName1 */
+ /* Details: "Method getName(): Returns a String containing the event */
+ /* local name" */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getName2 */
+ /* Details: "Method getName(): Returned value may not be null" */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getValue1 */
+ /* Details: "Method getValue(String, String): Returns a */
+ /* java.io.Serializable object representing the event payload" */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Event_ApiEvent_getValue2 */
+ /* Details: "Method getValue(String, String): Returned value is null */
+ /* if the event has no payload" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "PortletTests_Event_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>PortletTests_Event_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "PortletTests_Event_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event.java
deleted file mode 100644
index b44c271..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_Event_Event_event
- *
- */
-public class PortletTests_Event_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_Event_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "PortletTests_Event_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2PortletTests_Event_Event_getQName1 */
- /* Details: "Method getQName(): Returns the javax.xml.namespace.QName */
- /* object for the Event" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getQName1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2PortletTests_Event_Event_getQName2 */
- /* Details: "Method getQName(): Returned value may not be null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getQName2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2PortletTests_Event_Event_getName1 */
- /* Details: "Method getName(): Returns a String containing the event */
- /* local name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getName1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2PortletTests_Event_Event_getName2 */
- /* Details: "Method getName(): Returned value may not be null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getName2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2PortletTests_Event_Event_getValue1 */
- /* Details: "Method getValue(String, String): Returns a */
- /* java.io.Serializable object representing the event payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getValue1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2PortletTests_Event_Event_getValue2 */
- /* Details: "Method getValue(String, String): Returned value is null */
- /* if the event has no payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Event_Event_getValue2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
[15/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
new file mode 100644
index 0000000..ff558d2
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
@@ -0,0 +1,269 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_PortletResponse_ApiRender_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_PortletResponse_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB4);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYC1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYC2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ENCODEURL1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ENCODEURL2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_GETNAMESPACE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT4);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT6);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
new file mode 100644
index 0000000..0e72159
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
@@ -0,0 +1,284 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_PortletResponse_ApiResource_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_PortletResponse_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyA1 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
+ /* specified cookie property to the response" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyA2 */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
+ /* IllegalArgumentException if the specified cookie is null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB1 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
+ /* XML DOM Element to the response for the specified key" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB2 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
+ /* DOM Element for the specified key already exists, the new element */
+ /* is added in addition to the existing element" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB3 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
+ /* specified DOM Element value is null, the key is removed from the */
+ /* response" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB4 */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB4);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyC1 */
+ /* Details: "Method addProperty(String, String): Adds a property */
+ /* value to an existing key to allow the key to have multiple values" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYC1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyC2 */
+ /* Details: "Method addProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYC2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty1 */
+ /* Details: "Method setProperty(String, String): Sets a property */
+ /* value for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty2 */
+ /* Details: "Method setProperty(String, String): Resets any existing */
+ /* property values for the specified key" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty3 */
+ /* Details: "Method setProperty(String, String): Throws */
+ /* IllegalArgumentException if the specified key is null" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_encodeURL1 */
+ /* Details: "Method encodeURL(String): Returns a String representing */
+ /* the encoded URL" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ENCODEURL1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_encodeURL2 */
+ /* Details: "Method encodeURL(String): Throws */
+ /* IllegalArgumentException if the input string is not an absolute */
+ /* URL and does not start with at \"/\" character" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ENCODEURL2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_getNamespace1 */
+ /* Details: "Method getNamespace(): Returns a String containing the */
+ /* namespace value" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_GETNAMESPACE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement1 */
+ /* Details: "Method createElement(String): Returns an */
+ /* org.w3c.dom.Element object for the specified tag name" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement2 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* nodeName set to the the specified tag name " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement3 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* localName set to null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement4 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* prefix set to null" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT4);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement5 */
+ /* Details: "Method createElement(String): The returned Element has */
+ /* namespaceURI set to null" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement6 */
+ /* Details: "Method createElement(String): Throws */
+ /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
+ /* name contains an illegal character. " */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT6);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"ResponseTests_PortletResponse_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"ResponseTests_PortletResponse_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java
deleted file mode 100644
index 4c6a691..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_PortletResponse_Event_event
- *
- */
-public class ResponseTests_PortletResponse_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_PortletResponse_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "ResponseTests_PortletResponse_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyC1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyC2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_encodeURL1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_encodeURL2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_getNamespace1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement6", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java
deleted file mode 100644
index f52d58c..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class ResponseTests_PortletResponse_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_PortletResponse_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYC1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ENCODEURL1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ENCODEURL2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_GETNAMESPACE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT4);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Event_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT6);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>ResponseTests_PortletResponse_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java
deleted file mode 100644
index 27df7ce..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java
+++ /dev/null
@@ -1,269 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_PortletResponse_Render_event
- *
- */
-public class ResponseTests_PortletResponse_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_PortletResponse_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYC1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ENCODEURL1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ENCODEURL2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_GETNAMESPACE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT4);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Render_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT6);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java
deleted file mode 100644
index db1e9db..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_PortletResponse_Resource_event
- *
- */
-public class ResponseTests_PortletResponse_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_PortletResponse_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyA1 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the */
- /* specified cookie property to the response" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyA2 */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws */
- /* IllegalArgumentException if the specified cookie is null" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB1 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an */
- /* XML DOM Element to the response for the specified key" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB2 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If a */
- /* DOM Element for the specified key already exists, the new element */
- /* is added in addition to the existing element" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB3 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): If the */
- /* specified DOM Element value is null, the key is removed from the */
- /* response" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB4 */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyC1 */
- /* Details: "Method addProperty(String, String): Adds a property */
- /* value to an existing key to allow the key to have multiple values" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYC1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyC2 */
- /* Details: "Method addProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYC2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty1 */
- /* Details: "Method setProperty(String, String): Sets a property */
- /* value for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty2 */
- /* Details: "Method setProperty(String, String): Resets any existing */
- /* property values for the specified key" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty3 */
- /* Details: "Method setProperty(String, String): Throws */
- /* IllegalArgumentException if the specified key is null" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_encodeURL1 */
- /* Details: "Method encodeURL(String): Returns a String representing */
- /* the encoded URL" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ENCODEURL1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_encodeURL2 */
- /* Details: "Method encodeURL(String): Throws */
- /* IllegalArgumentException if the input string is not an absolute */
- /* URL and does not start with at \"/\" character" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ENCODEURL2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_getNamespace1 */
- /* Details: "Method getNamespace(): Returns a String containing the */
- /* namespace value" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_GETNAMESPACE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement1 */
- /* Details: "Method createElement(String): Returns an */
- /* org.w3c.dom.Element object for the specified tag name" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement2 */
- /* Details: "Method createElement(String): The returned Element has */
- /* nodeName set to the the specified tag name " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement3 */
- /* Details: "Method createElement(String): The returned Element has */
- /* localName set to null" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement4 */
- /* Details: "Method createElement(String): The returned Element has */
- /* prefix set to null" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT4);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement5 */
- /* Details: "Method createElement(String): The returned Element has */
- /* namespaceURI set to null" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement6 */
- /* Details: "Method createElement(String): Throws */
- /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified */
- /* name contains an illegal character. " */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT6);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"ResponseTests_PortletResponse_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"ResponseTests_PortletResponse_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[10/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event.java
deleted file mode 100644
index e4527f3..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event.java
+++ /dev/null
@@ -1,643 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_StateAwareResponse_Event_event
- *
- */
-public class ResponseTests_StateAwareResponse_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_StateAwareResponse_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "ResponseTests_StateAwareResponse_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setWindowState1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portlet cannot switch to the specified */
- /* WindowState" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setWindowState2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setWindowState3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setPortletMode1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portlet cannot switch to the specified */
- /* PortletMode" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setPortletMode2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setPortletMode3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Sets the */
- /* render parameter map to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Public render */
- /* parameters can be set through the map" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters3 */
- /* Details: "Method setRenderParameters(java.util.Map): Private */
- /* render parameters can be set through the map" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters4 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing private render parameters not contained in the specified */
- /* input map are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters5 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing public render parameters not contained in the specified */
- /* input map remain unchanged" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters6 */
- /* Details: "Method setRenderParameters(java.util.Map): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters7 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters8 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters8", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters9 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters9", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters10 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters10", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters11 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters11", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters12 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameters12", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA1 */
- /* Details: "Method setRenderParameter(String, String): Sets the */
- /* parameter value for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA2 */
- /* Details: "Method setRenderParameter(String, String): A private */
- /* parameter can be set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA3 */
- /* Details: "Method setRenderParameter(String, String): A public */
- /* parameter can be set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA4 */
- /* Details: "Method setRenderParameter(String, String): All */
- /* previously existing values for the specified name are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA5 */
- /* Details: "Method setRenderParameter(String, String): If the value */
- /* is null, all values for the specified name are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA6 */
- /* Details: "Method setRenderParameter(String, String): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA7 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA8 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterA8", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB1 */
- /* Details: "Method setRenderParameter(String, String[]): Sets the */
- /* parameter values for the specified name." */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB2 */
- /* Details: "Method setRenderParameter(String, String[]): All */
- /* existing values are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB3 */
- /* Details: "Method setRenderParameter(String, String[]): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB4 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB5 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the values array is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB6 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setRenderParameterB6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA1 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Publishes an event with the specified name */
- /* and payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA2 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the name */
- /* is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA3 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value is not serializable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventA3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA4 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value does not have a valid JAXB binding" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventA4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA5 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value object type is not as specified in the deployment */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventA5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB1 */
- /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
- /* an event with the specified name and payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB2 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB3 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value is not serializable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB4 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value does not have a valid JAXB */
- /* binding" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB5 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value object type is not as */
- /* specified in the deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_setEventB5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Returns a map of the */
- /* render parameters currently set on the response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains public render parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap3 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains private render parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap4 */
- /* Details: "Method getRenderParameterMap(): An empty map is returned */
- /* if no parameters have been set " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the current PortletMode */
- /* for the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getPortletMode1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if no PortletMode */
- /* has been set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getPortletMode2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the current WindowState */
- /* for the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getWindowState1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if no WindowState */
- /* has been set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_getWindowState2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event_event.java
deleted file mode 100644
index 8889aad..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Event_event.java
+++ /dev/null
@@ -1,544 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class ResponseTests_StateAwareResponse_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_StateAwareResponse_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to the specified value" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETWINDOWSTATE1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portlet cannot switch to the specified */
- /* WindowState" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETWINDOWSTATE2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETWINDOWSTATE3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to the specified value" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETPORTLETMODE1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portlet cannot switch to the specified */
- /* PortletMode" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETPORTLETMODE2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETPORTLETMODE3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Sets the */
- /* render parameter map to the specified value" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Public render */
- /* parameters can be set through the map" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters3 */
- /* Details: "Method setRenderParameters(java.util.Map): Private */
- /* render parameters can be set through the map" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters4 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing private render parameters not contained in the specified */
- /* input map are removed" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS4);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters5 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing public render parameters not contained in the specified */
- /* input map remain unchanged" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS5);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters6 */
- /* Details: "Method setRenderParameters(java.util.Map): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS6);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters7 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS7);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters8 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS8);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters9 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS9);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters10 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS10);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters11 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS11);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameters12 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERS12);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA1 */
- /* Details: "Method setRenderParameter(String, String): Sets the */
- /* parameter value for the specified name" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA1);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA2 */
- /* Details: "Method setRenderParameter(String, String): A private */
- /* parameter can be set" */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA2);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA3 */
- /* Details: "Method setRenderParameter(String, String): A public */
- /* parameter can be set" */
- TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA3);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA4 */
- /* Details: "Method setRenderParameter(String, String): All */
- /* previously existing values for the specified name are removed" */
- TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA4);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA5 */
- /* Details: "Method setRenderParameter(String, String): If the value */
- /* is null, all values for the specified name are removed" */
- TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA5);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA6 */
- /* Details: "Method setRenderParameter(String, String): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA6);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA7 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA7);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterA8 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERA8);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB1 */
- /* Details: "Method setRenderParameter(String, String[]): Sets the */
- /* parameter values for the specified name." */
- TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB1);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB2 */
- /* Details: "Method setRenderParameter(String, String[]): All */
- /* existing values are removed" */
- TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB2);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB3 */
- /* Details: "Method setRenderParameter(String, String[]): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB3);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB4 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB4);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB5 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the values array is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB5);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setRenderParameterB6 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETRENDERPARAMETERB6);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA1 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Publishes an event with the specified name */
- /* and payload" */
- TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTA1);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA2 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the name */
- /* is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTA2);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA3 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value is not serializable" */
- TestResult tr34 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTA3);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA4 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value does not have a valid JAXB binding" */
- TestResult tr35 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTA4);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventA5 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value object type is not as specified in the deployment */
- /* descriptor" */
- TestResult tr36 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTA5);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB1 */
- /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
- /* an event with the specified name and payload" */
- TestResult tr37 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTB1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB2 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTB2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB3 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value is not serializable" */
- TestResult tr39 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTB3);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB4 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value does not have a valid JAXB */
- /* binding" */
- TestResult tr40 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTB4);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_setEventB5 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value object type is not as */
- /* specified in the deployment descriptor" */
- TestResult tr41 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_SETEVENTB5);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Returns a map of the */
- /* render parameters currently set on the response" */
- TestResult tr42 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains public render parameters" */
- TestResult tr43 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap3 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains private render parameters" */
- TestResult tr44 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETRENDERPARAMETERMAP3);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getRenderParameterMap4 */
- /* Details: "Method getRenderParameterMap(): An empty map is returned */
- /* if no parameters have been set " */
- TestResult tr45 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETRENDERPARAMETERMAP4);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the current PortletMode */
- /* for the portlet" */
- TestResult tr46 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETPORTLETMODE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if no PortletMode */
- /* has been set" */
- TestResult tr47 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETPORTLETMODE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the current WindowState */
- /* for the portlet" */
- TestResult tr48 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETWINDOWSTATE1);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if no WindowState */
- /* has been set" */
- TestResult tr49 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_GETWINDOWSTATE2);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- TestResult tr50 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_REMOVEPUBLICRENDERPARAMETER1);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Event_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_EVENT_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>ResponseTests_StateAwareResponse_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
[44/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Action.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Action.java
deleted file mode 100644
index 9705479..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Action.java
+++ /dev/null
@@ -1,781 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletPreferences_Action_event
- *
- */
-public class EnvironmentTests_PortletPreferences_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletPreferences_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_ISREADONLY1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_ISREADONLY2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_ISREADONLY3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUES1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUES2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUES3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue1 */
- /* Details: "Method setValue(String, String): Sets the specified */
- /* value for the specified key" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUE1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue2 */
- /* Details: "Method setValue(String, String): Any existing String or */
- /* String[] value for the specified key is replaced" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUE2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue3 */
- /* Details: "Method setValue(String, String): The value may be set to */
- /* null" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUE3);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUE4);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue5 */
- /* Details: "Method setValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues1 */
- /* Details: "Method setValues(String, String[]): Sets the specified */
- /* value array for the specified key" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues2 */
- /* Details: "Method setValues(String, String[]): Any existing String */
- /* or String[] Values for the specified key is replaced" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues3 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* be set to null" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES3);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues4 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* contain null members" */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES4);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues5 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES5);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues6 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETNAMES1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETNAMES2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETMAP1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_GETMAP2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
- TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_RESET1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_RESET2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
- TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store1 */
- /* Details: "Method store(): Commits changes made to the preferences */
- /* to the persistent store " */
- TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE1);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store2 */
- /* Details: "Method store(): If the store(): method is not called, */
- /* changes made are discarded" */
- TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE2);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store3 */
- /* Details: "Method store(): If a validator is defined, it is called */
- /* before the actual store is performed" */
- TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE3);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store4 */
- /* Details: "Method store(): If validation fails, the store is not */
- /* performed" */
- TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE4);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE5);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store6 */
- /* Details: "Method store(): Throws ValidatorException if the */
- /* validation performed by the associated validator fails " */
- TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_ACTION_STORE6);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_isReadOnly1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_isReadOnly2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_isReadOnly3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_isReadOnly4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValue1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValue2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValue3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValue4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue1 */
- /* Details: "Method setValue(String, String): Sets the specified */
- /* value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValue1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue2 */
- /* Details: "Method setValue(String, String): Any existing String or */
- /* String[] value for the specified key is replaced" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValue2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue3 */
- /* Details: "Method setValue(String, String): The value may be set to */
- /* null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValue3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValue4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValue5 */
- /* Details: "Method setValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValue5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues1 */
- /* Details: "Method setValues(String, String[]): Sets the specified */
- /* value array for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues2 */
- /* Details: "Method setValues(String, String[]): Any existing String */
- /* or String[] Values for the specified key is replaced" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues3 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* be set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues4 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* contain null members" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues5 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_setValues6 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_setValues6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_getMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_reset1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_reset2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_reset3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store1 */
- /* Details: "Method store(): Commits changes made to the preferences */
- /* to the persistent store " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store2 */
- /* Details: "Method store(): If the store(): method is not called, */
- /* changes made are discarded" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store3 */
- /* Details: "Method store(): If a validator is defined, it is called */
- /* before the actual store is performed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store4 */
- /* Details: "Method store(): If validation fails, the store is not */
- /* performed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Action_store6 */
- /* Details: "Method store(): Throws ValidatorException if the */
- /* validation performed by the associated validator fails " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Action_store6", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
new file mode 100644
index 0000000..284b619
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
@@ -0,0 +1,781 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletPreferences_ApiAction_event
+ *
+ */
+public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletPreferences_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUES1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUES2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUES3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUES4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue1 */
+ /* Details: "Method setValue(String, String): Sets the specified */
+ /* value for the specified key" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue2 */
+ /* Details: "Method setValue(String, String): Any existing String or */
+ /* String[] value for the specified key is replaced" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue3 */
+ /* Details: "Method setValue(String, String): The value may be set to */
+ /* null" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE3);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE4);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue5 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE5);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues1 */
+ /* Details: "Method setValues(String, String[]): Sets the specified */
+ /* value array for the specified key" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues2 */
+ /* Details: "Method setValues(String, String[]): Any existing String */
+ /* or String[] Values for the specified key is replaced" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues3 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* be set to null" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES3);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues4 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* contain null members" */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES4);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues5 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES5);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues6 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES6);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETNAMES1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETNAMES2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETMAP1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETMAP2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset1 */
+ /* Details: "Method reset(): Removes the value associated with the */
+ /* specified key" */
+ TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset3 */
+ /* Details: "Method reset(): Throws IllegalArgumentException if the */
+ /* key is null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET3);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store1 */
+ /* Details: "Method store(): Commits changes made to the preferences */
+ /* to the persistent store " */
+ TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE1);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store2 */
+ /* Details: "Method store(): If the store(): method is not called, */
+ /* changes made are discarded" */
+ TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE2);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store3 */
+ /* Details: "Method store(): If a validator is defined, it is called */
+ /* before the actual store is performed" */
+ TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE3);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store4 */
+ /* Details: "Method store(): If validation fails, the store is not */
+ /* performed" */
+ TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE4);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE5);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store6 */
+ /* Details: "Method store(): Throws ValidatorException if the */
+ /* validation performed by the associated validator fails " */
+ TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE6);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValue1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValue2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValue3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValue4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue1 */
+ /* Details: "Method setValue(String, String): Sets the specified */
+ /* value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValue1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue2 */
+ /* Details: "Method setValue(String, String): Any existing String or */
+ /* String[] value for the specified key is replaced" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValue2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue3 */
+ /* Details: "Method setValue(String, String): The value may be set to */
+ /* null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValue3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValue4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue5 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValue5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues1 */
+ /* Details: "Method setValues(String, String[]): Sets the specified */
+ /* value array for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues2 */
+ /* Details: "Method setValues(String, String[]): Any existing String */
+ /* or String[] Values for the specified key is replaced" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues3 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* be set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues4 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* contain null members" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues5 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues6 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_setValues6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_getMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset1 */
+ /* Details: "Method reset(): Removes the value associated with the */
+ /* specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_reset1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_reset2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset3 */
+ /* Details: "Method reset(): Throws IllegalArgumentException if the */
+ /* key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_reset3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store1 */
+ /* Details: "Method store(): Commits changes made to the preferences */
+ /* to the persistent store " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store2 */
+ /* Details: "Method store(): If the store(): method is not called, */
+ /* changes made are discarded" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store3 */
+ /* Details: "Method store(): If a validator is defined, it is called */
+ /* before the actual store is performed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store4 */
+ /* Details: "Method store(): If validation fails, the store is not */
+ /* performed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store6 */
+ /* Details: "Method store(): Throws ValidatorException if the */
+ /* validation performed by the associated validator fails " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiAction_store6", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
[25/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
new file mode 100644
index 0000000..a7ec77e
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
@@ -0,0 +1,896 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_PortletRequest_ApiRender_event
+ *
+ */
+public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_PortletRequest_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDUSER_INFO);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCCPP_PROFILE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDBASIC_AUTH);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDFORM_AUTH);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCLIENT_CERT_AUTH);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDDIGEST_AUTH);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDACTION_PHASE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDEVENT_PHASE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_PHASE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRESOURCE_PHASE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDLIFECYCLE_PHASE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_PART);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_HEADERS);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDRENDER_MARKUP);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDACTION_SCOPE_ID);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISWINDOWSTATEALLOWED1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISWINDOWSTATEALLOWED2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISPORTLETMODEALLOWED1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISPORTLETMODEALLOWED2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPREFERENCES);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONA1);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONA2);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONB1);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONB2);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONB3);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTLETSESSIONB4);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTY1);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTY2);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTY3);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTIES1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTIES2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTIES3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTYNAMES1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPROPERTYNAMES2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPORTALCONTEXT);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETAUTHTYPE1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETAUTHTYPE2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETCONTEXTPATH1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETCONTEXTPATH2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETCONTEXTPATH3);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETREMOTEUSER1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETREMOTEUSER2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETUSERPRINCIPAL1);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETUSERPRINCIPAL2);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISUSERINROLE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISUSERINROLE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISUSERINROLE3);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTE1);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTE2);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTE3);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTENAMES1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETATTRIBUTENAMES2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER1);
+ /* TODO: implement test */
+ tr54.appendTcDetail("Not implemented.");
+ tr54.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER2);
+ /* TODO: implement test */
+ tr55.appendTcDetail("Not implemented.");
+ tr55.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER3);
+ /* TODO: implement test */
+ tr56.appendTcDetail("Not implemented.");
+ tr56.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER4);
+ /* TODO: implement test */
+ tr57.appendTcDetail("Not implemented.");
+ tr57.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETER5);
+ /* TODO: implement test */
+ tr58.appendTcDetail("Not implemented.");
+ tr58.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr59.appendTcDetail("Not implemented.");
+ tr59.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr60.appendTcDetail("Not implemented.");
+ tr60.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERVALUES1);
+ /* TODO: implement test */
+ tr61.appendTcDetail("Not implemented.");
+ tr61.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERVALUES2);
+ /* TODO: implement test */
+ tr62.appendTcDetail("Not implemented.");
+ tr62.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERVALUES3);
+ /* TODO: implement test */
+ tr63.appendTcDetail("Not implemented.");
+ tr63.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERVALUES4);
+ /* TODO: implement test */
+ tr64.appendTcDetail("Not implemented.");
+ tr64.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr65.appendTcDetail("Not implemented.");
+ tr65.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr66.appendTcDetail("Not implemented.");
+ tr66.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr67.appendTcDetail("Not implemented.");
+ tr67.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISSECURE1);
+ /* TODO: implement test */
+ tr68.appendTcDetail("Not implemented.");
+ tr68.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISSECURE2);
+ /* TODO: implement test */
+ tr69.appendTcDetail("Not implemented.");
+ tr69.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_SETATTRIBUTE1);
+ /* TODO: implement test */
+ tr70.appendTcDetail("Not implemented.");
+ tr70.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_SETATTRIBUTE2);
+ /* TODO: implement test */
+ tr71.appendTcDetail("Not implemented.");
+ tr71.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_SETATTRIBUTE3);
+ /* TODO: implement test */
+ tr72.appendTcDetail("Not implemented.");
+ tr72.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the request" */
+ TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_REMOVEATTRIBUTE1);
+ /* TODO: implement test */
+ tr73.appendTcDetail("Not implemented.");
+ tr73.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_REMOVEATTRIBUTE2);
+ /* TODO: implement test */
+ tr74.appendTcDetail("Not implemented.");
+ tr74.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getRequestedSessionId1 */
+ /* Details: "Method getRequestedSessionId(): Returns the session ID */
+ /* indicated in the client request" */
+ TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETREQUESTEDSESSIONID1);
+ /* TODO: implement test */
+ tr75.appendTcDetail("Not implemented.");
+ tr75.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getRequestedSessionId2 */
+ /* Details: "Method getRequestedSessionId(): Returns null if no */
+ /* session ID was indicated in the client request" */
+ TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETREQUESTEDSESSIONID2);
+ /* TODO: implement test */
+ tr76.appendTcDetail("Not implemented.");
+ tr76.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isRequestedSessionIdValid1 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
+ /* session ID is valid" */
+ TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISREQUESTEDSESSIONIDVALID1);
+ /* TODO: implement test */
+ tr77.appendTcDetail("Not implemented.");
+ tr77.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_isRequestedSessionIdValid2 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
+ /* session ID is not valid" */
+ TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_ISREQUESTEDSESSIONIDVALID2);
+ /* TODO: implement test */
+ tr78.appendTcDetail("Not implemented.");
+ tr78.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getResponseContentType1 */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* representing the portal preferred content type for the response if */
+ /* the content type is defined in the portlet descriptor " */
+ TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETRESPONSECONTENTTYPE1);
+ /* TODO: implement test */
+ tr79.appendTcDetail("Not implemented.");
+ tr79.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getResponseContentType2 */
+ /* Details: "Method getResponseContentType(): Returns an empty */
+ /* Enumeration if the content type is not defined in the portlet */
+ /* descriptor" */
+ TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETRESPONSECONTENTTYPE2);
+ /* TODO: implement test */
+ tr80.appendTcDetail("Not implemented.");
+ tr80.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getResponseContentTypes1 */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object representing */
+ /* the portal preferred content types for the response if the content */
+ /* types are defined in the portlet descriptor" */
+ TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETRESPONSECONTENTTYPES1);
+ /* TODO: implement test */
+ tr81.appendTcDetail("Not implemented.");
+ tr81.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getResponseContentTypes2 */
+ /* Details: "Method getResponseContentTypes(): Returns an empty */
+ /* Enumeration if the content types are not defined in the portlet */
+ /* descriptor" */
+ TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETRESPONSECONTENTTYPES2);
+ /* TODO: implement test */
+ tr82.appendTcDetail("Not implemented.");
+ tr82.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale object */
+ /* representing the preferred Locale for the response" */
+ TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETLOCALE);
+ /* TODO: implement test */
+ tr83.appendTcDetail("Not implemented.");
+ tr83.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getLocales */
+ /* Details: "Method getLocales(): Returns an */
+ /* java.util.Enumeration<java.util.Locale> of the Locales in */
+ /* which the portal will accept content" */
+ TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETLOCALES);
+ /* TODO: implement test */
+ tr84.appendTcDetail("Not implemented.");
+ tr84.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getScheme */
+ /* Details: "Method getScheme(): Returns a String value representing */
+ /* the scheme name for the request" */
+ TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETSCHEME);
+ /* TODO: implement test */
+ tr85.appendTcDetail("Not implemented.");
+ tr85.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getServerName */
+ /* Details: "Method getServerName(): Returns a String value */
+ /* representing the host name for the request" */
+ TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETSERVERNAME);
+ /* TODO: implement test */
+ tr86.appendTcDetail("Not implemented.");
+ tr86.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getServerPort */
+ /* Details: "Method getServerPort(): Returns an int value */
+ /* representing the port number for the request" */
+ TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETSERVERPORT);
+ /* TODO: implement test */
+ tr87.appendTcDetail("Not implemented.");
+ tr87.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getWindowID */
+ /* Details: "Method getWindowID(): Returns a String value */
+ /* representing the portlet window ID" */
+ TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETWINDOWID);
+ /* TODO: implement test */
+ tr88.appendTcDetail("Not implemented.");
+ tr88.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getCookies1 */
+ /* Details: "Method getCookies(): Returns a */
+ /* javax.servlet.http.Cookie[] array containing the cookies for this */
+ /* request" */
+ TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETCOOKIES1);
+ /* TODO: implement test */
+ tr89.appendTcDetail("Not implemented.");
+ tr89.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getCookies2 */
+ /* Details: "Method getCookies(): Returns null if no cookies are */
+ /* present" */
+ TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETCOOKIES2);
+ /* TODO: implement test */
+ tr90.appendTcDetail("Not implemented.");
+ tr90.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap1 */
+ /* Details: "Method getPrivateParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the private parameter names and values if available" */
+ TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPRIVATEPARAMETERMAP1);
+ /* TODO: implement test */
+ tr91.appendTcDetail("Not implemented.");
+ tr91.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap2 */
+ /* Details: "Method getPrivateParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPRIVATEPARAMETERMAP2);
+ /* TODO: implement test */
+ tr92.appendTcDetail("Not implemented.");
+ tr92.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap3 */
+ /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
+ /* no private parameters exist" */
+ TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPRIVATEPARAMETERMAP3);
+ /* TODO: implement test */
+ tr93.appendTcDetail("Not implemented.");
+ tr93.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap1 */
+ /* Details: "Method getPublicParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the public parameter names and values if available" */
+ TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPUBLICPARAMETERMAP1);
+ /* TODO: implement test */
+ tr94.appendTcDetail("Not implemented.");
+ tr94.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap2 */
+ /* Details: "Method getPublicParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPUBLICPARAMETERMAP2);
+ /* TODO: implement test */
+ tr95.appendTcDetail("Not implemented.");
+ tr95.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap3 */
+ /* Details: "Method getPublicParameterMap(): Returns an empty map if */
+ /* no public parameters exist" */
+ TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_GETPUBLICPARAMETERMAP3);
+ /* TODO: implement test */
+ tr96.appendTcDetail("Not implemented.");
+ tr96.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiRender_exists */
+ /* Details: "The P3PUserInfos exists as a public static enum" */
+ TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_EXISTS);
+ /* TODO: implement test */
+ tr97.appendTcDetail("Not implemented.");
+ tr97.writeTo(writer);
+
+ }
+
+}
[13/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Action.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Action.java
deleted file mode 100644
index 7fb3e42..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_Action.java
+++ /dev/null
@@ -1,1089 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_StateAwareResponse_Action_event
- *
- */
-public class ResponseTests_StateAwareResponse_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_StateAwareResponse_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to the specified value" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETWINDOWSTATE1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portlet cannot switch to the specified */
- /* WindowState" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETWINDOWSTATE2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETWINDOWSTATE3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to the specified value" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETPORTLETMODE1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portlet cannot switch to the specified */
- /* PortletMode" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETPORTLETMODE2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETPORTLETMODE3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Sets the */
- /* render parameter map to the specified value" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Public render */
- /* parameters can be set through the map" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters3 */
- /* Details: "Method setRenderParameters(java.util.Map): Private */
- /* render parameters can be set through the map" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters4 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing private render parameters not contained in the specified */
- /* input map are removed" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS4);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters5 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing public render parameters not contained in the specified */
- /* input map remain unchanged" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS5);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters6 */
- /* Details: "Method setRenderParameters(java.util.Map): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS6);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters7 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS7);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters8 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS8);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters9 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS9);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters10 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS10);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters11 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS11);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters12 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERS12);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA1 */
- /* Details: "Method setRenderParameter(String, String): Sets the */
- /* parameter value for the specified name" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA1);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA2 */
- /* Details: "Method setRenderParameter(String, String): A private */
- /* parameter can be set" */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA2);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA3 */
- /* Details: "Method setRenderParameter(String, String): A public */
- /* parameter can be set" */
- TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA3);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA4 */
- /* Details: "Method setRenderParameter(String, String): All */
- /* previously existing values for the specified name are removed" */
- TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA4);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA5 */
- /* Details: "Method setRenderParameter(String, String): If the value */
- /* is null, all values for the specified name are removed" */
- TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA5);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA6 */
- /* Details: "Method setRenderParameter(String, String): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA6);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA7 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA7);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA8 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERA8);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB1 */
- /* Details: "Method setRenderParameter(String, String[]): Sets the */
- /* parameter values for the specified name." */
- TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB1);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB2 */
- /* Details: "Method setRenderParameter(String, String[]): All */
- /* existing values are removed" */
- TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB2);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB3 */
- /* Details: "Method setRenderParameter(String, String[]): Parameters */
- /* that are set are available in subsequent render requests" */
- TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB3);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB4 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB4);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB5 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the values array is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB5);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB6 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETRENDERPARAMETERB6);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA1 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Publishes an event with the specified name */
- /* and payload" */
- TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTA1);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA2 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the name */
- /* is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTA2);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA3 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value is not serializable" */
- TestResult tr34 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTA3);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA4 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value does not have a valid JAXB binding" */
- TestResult tr35 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTA4);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA5 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value object type is not as specified in the deployment */
- /* descriptor" */
- TestResult tr36 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTA5);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB1 */
- /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
- /* an event with the specified name and payload" */
- TestResult tr37 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTB1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB2 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTB2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB3 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value is not serializable" */
- TestResult tr39 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTB3);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB4 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value does not have a valid JAXB */
- /* binding" */
- TestResult tr40 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTB4);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB5 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value object type is not as */
- /* specified in the deployment descriptor" */
- TestResult tr41 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_SETEVENTB5);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Returns a map of the */
- /* render parameters currently set on the response" */
- TestResult tr42 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains public render parameters" */
- TestResult tr43 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap3 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains private render parameters" */
- TestResult tr44 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETRENDERPARAMETERMAP3);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap4 */
- /* Details: "Method getRenderParameterMap(): An empty map is returned */
- /* if no parameters have been set " */
- TestResult tr45 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETRENDERPARAMETERMAP4);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the current PortletMode */
- /* for the portlet" */
- TestResult tr46 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETPORTLETMODE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if no PortletMode */
- /* has been set" */
- TestResult tr47 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETPORTLETMODE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the current WindowState */
- /* for the portlet" */
- TestResult tr48 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETWINDOWSTATE1);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if no WindowState */
- /* has been set" */
- TestResult tr49 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_GETWINDOWSTATE2);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- TestResult tr50 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_REMOVEPUBLICRENDERPARAMETER1);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_ACTION_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState1 */
- /* Details: "Method setWindowState(WindowState): Sets the WindowState */
- /* to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setWindowState1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState2 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* WindowStateException if the portlet cannot switch to the specified */
- /* WindowState" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setWindowState2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setWindowState3 */
- /* Details: "Method setWindowState(WindowState): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setWindowState3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode1 */
- /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
- /* to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setPortletMode1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode2 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* PortletModeException if the portlet cannot switch to the specified */
- /* PortletMode" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setPortletMode2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setPortletMode3 */
- /* Details: "Method setPortletMode(PortletMode): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setPortletMode3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Sets the */
- /* render parameter map to the specified value" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Public render */
- /* parameters can be set through the map" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters3 */
- /* Details: "Method setRenderParameters(java.util.Map): Private */
- /* render parameters can be set through the map" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters4 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing private render parameters not contained in the specified */
- /* input map are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters5 */
- /* Details: "Method setRenderParameters(java.util.Map): Previously */
- /* existing public render parameters not contained in the specified */
- /* input map remain unchanged" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters6 */
- /* Details: "Method setRenderParameters(java.util.Map): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters7 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input map is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters8 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters8", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters9 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any key in the map is the empty string */
- /* (\"\") " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters9", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters10 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the values array for any key is null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters10", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters11 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if any element in any values array is */
- /* null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters11", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameters12 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameters12", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA1 */
- /* Details: "Method setRenderParameter(String, String): Sets the */
- /* parameter value for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA2 */
- /* Details: "Method setRenderParameter(String, String): A private */
- /* parameter can be set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA3 */
- /* Details: "Method setRenderParameter(String, String): A public */
- /* parameter can be set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA4 */
- /* Details: "Method setRenderParameter(String, String): All */
- /* previously existing values for the specified name are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA5 */
- /* Details: "Method setRenderParameter(String, String): If the value */
- /* is null, all values for the specified name are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA6 */
- /* Details: "Method setRenderParameter(String, String): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA7 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterA8 */
- /* Details: "Method setRenderParameter(String, String): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterA8", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB1 */
- /* Details: "Method setRenderParameter(String, String[]): Sets the */
- /* parameter values for the specified name." */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB2 */
- /* Details: "Method setRenderParameter(String, String[]): All */
- /* existing values are removed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB3 */
- /* Details: "Method setRenderParameter(String, String[]): Parameters */
- /* that are set are available in subsequent render requests" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB4 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB5 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalArgumentException if the values array is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setRenderParameterB6 */
- /* Details: "Method setRenderParameter(String, String[]): Throws */
- /* IllegalStateException if the method is invoked after the */
- /* sendRedirect method has been called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setRenderParameterB6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA1 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Publishes an event with the specified name */
- /* and payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA2 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the name */
- /* is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA3 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value is not serializable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventA3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA4 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value does not have a valid JAXB binding" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventA4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventA5 */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Throws IllegalArgumentException if the */
- /* value object type is not as specified in the deployment */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventA5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB1 */
- /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
- /* an event with the specified name and payload" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB2 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB3 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value is not serializable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB4 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value does not have a valid JAXB */
- /* binding" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_setEventB5 */
- /* Details: "Method setEvent(String, java.io.Serializable): Throws */
- /* IllegalArgumentException if the value object type is not as */
- /* specified in the deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_setEventB5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Returns a map of the */
- /* render parameters currently set on the response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains public render parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap3 */
- /* Details: "Method getRenderParameterMap(): The returned map */
- /* contains private render parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap4 */
- /* Details: "Method getRenderParameterMap(): An empty map is returned */
- /* if no parameters have been set " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getRenderParameterMap4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getPortletMode1 */
- /* Details: "Method getPortletMode(): Returns the current PortletMode */
- /* for the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getPortletMode1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getPortletMode2 */
- /* Details: "Method getPortletMode(): Returns null if no PortletMode */
- /* has been set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getPortletMode2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getWindowState1 */
- /* Details: "Method getWindowState(): Returns the current WindowState */
- /* for the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getWindowState1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_getWindowState2 */
- /* Details: "Method getWindowState(): Returns null if no WindowState */
- /* has been set" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_getWindowState2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter1 */
- /* Details: "Method removePublicRenderParameter(String): Removes the */
- /* specified public render parameter" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter2 */
- /* Details: "Method removePublicRenderParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_Action_removePublicRenderParameter2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
[05/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
index d6e9ec0..a77a625 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,209 +20,209 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API URLTests test case names and page mappings -->
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterA8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameterB8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters9">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters10">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters11">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters12">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters13">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setParameters14">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setSecure2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setSecure3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setSecure4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_toString">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_getParameterMap6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_writeA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_writeA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_writeB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_writeB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_writeB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_addProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_addProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_addProperty3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderRenurl_setProperty3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterA8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameterB8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters9">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters10">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters11">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters12">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters13">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setParameters14">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setSecure2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setSecure3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setSecure4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_toString">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_getParameterMap6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_writeA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_writeA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_writeB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_writeB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_writeB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_addProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_addProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_addProperty3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderActurl_setProperty3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterA8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameterB8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters7">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters8">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters9">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters10">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters11">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters12">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters13">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setParameters14">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setSecure2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setSecure3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setSecure4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_toString">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap4">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap5">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_getParameterMap6">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_writeA1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_writeA2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_writeB1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_writeB2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_writeB3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_addProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_addProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_addProperty3">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setProperty1">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setProperty2">V2URLTests</entry>
-<entry key="V2URLTests_BaseURL_RenderResurl_setProperty3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setWindowState1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setWindowState2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setWindowState3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setWindowState4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setPortletMode1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setPortletMode2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setPortletMode3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_setPortletMode4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_getPortletMode1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_getPortletMode2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_getWindowState1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_getWindowState2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_removePublicRenderParameter1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderRenurl_removePublicRenderParameter2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setWindowState1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setWindowState2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setWindowState3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setWindowState4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setPortletMode1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setPortletMode2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setPortletMode3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_setPortletMode4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_getPortletMode1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_getPortletMode2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_getWindowState1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_getWindowState2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_removePublicRenderParameter1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURL_RenderActurl_removePublicRenderParameter2">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_fieldFULL">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_fieldPAGE">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_fieldPORTLET">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_fieldSHARED">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_implementsBaseURL2">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_setResourceID">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_getCacheability">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_setCacheability1">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_setCacheability2">V2URLTests</entry>
-<entry key="V2URLTests_ResourceURL_RenderResurl_setCacheability3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_configuration">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterActionURL1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterActionURL2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterActionURL3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterActionURL4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterRenderURL5">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterRenderURL6">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterRenderURL7">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterRenderURL8">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterResourceURL1">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterResourceURL2">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterResourceURL3">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterResourceURL4">V2URLTests</entry>
-<entry key="V2URLTests_PortletURLGenerationListener_Render_filterResourceURL5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterA8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameterB8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters9">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters10">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters11">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters12">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters13">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setParameters14">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setSecure2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setSecure3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setSecure4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_toString">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_getParameterMap6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_writeA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_writeA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_writeB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_writeB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_writeB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_addProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_addProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_addProperty3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderRenurl_setProperty3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterA8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameterB8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters9">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters10">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters11">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters12">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters13">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setParameters14">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setSecure2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setSecure3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setSecure4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_toString">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_getParameterMap6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_writeA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_writeA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_writeB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_writeB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_writeB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_addProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_addProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_addProperty3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderActurl_setProperty3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterA8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameterB8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters7">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters8">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters9">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters10">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters11">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters12">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters13">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setParameters14">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setSecure2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setSecure3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setSecure4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_toString">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap4">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap5">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_getParameterMap6">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_writeA1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_writeA2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_writeB1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_writeB2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_writeB3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_addProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_addProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_addProperty3">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setProperty1">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setProperty2">V2URLTests</entry>
+<entry key="V2URLTests_BaseURL_ApiRenderResurl_setProperty3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setWindowState1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setWindowState2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setWindowState3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setWindowState4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_setPortletMode4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_getPortletMode1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_getPortletMode2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_getWindowState1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_getWindowState2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_removePublicRenderParameter1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderRenurl_removePublicRenderParameter2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setWindowState1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setWindowState2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setWindowState3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setWindowState4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setPortletMode1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setPortletMode2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setPortletMode3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_setPortletMode4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_getPortletMode1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_getPortletMode2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_getWindowState1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_getWindowState2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_removePublicRenderParameter1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURL_ApiRenderActurl_removePublicRenderParameter2">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_fieldFULL">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_fieldPAGE">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_fieldPORTLET">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_fieldSHARED">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_implementsBaseURL2">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_setResourceID">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_getCacheability">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_setCacheability1">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_setCacheability2">V2URLTests</entry>
+<entry key="V2URLTests_ResourceURL_ApiRenderResurl_setCacheability3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_configuration">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL6">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL7">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL8">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4">V2URLTests</entry>
+<entry key="V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5">V2URLTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
index 0eb0ced..3a31b14 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,133 +23,135 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2URLTests">
<portlet>
- <portlet-name>URLTests_BaseURL_RenderRenurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_RenderRenurl</portlet-class>
+ <portlet-name>URLTests_BaseURL_ApiRenderRenurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_ApiRenderRenurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_BaseURL_RenderRenurl</title>
+ <title>URLTests_BaseURL_ApiRenderRenurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_BaseURL_RenderActurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_RenderActurl</portlet-class>
+ <portlet-name>URLTests_BaseURL_ApiRenderActurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_ApiRenderActurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_BaseURL_RenderActurl</title>
+ <title>URLTests_BaseURL_ApiRenderActurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_BaseURL_RenderResurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_RenderResurl</portlet-class>
+ <portlet-name>URLTests_BaseURL_ApiRenderResurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_BaseURL_ApiRenderResurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_BaseURL_RenderResurl</title>
+ <title>URLTests_BaseURL_ApiRenderResurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_PortletURL_RenderRenurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURL_RenderRenurl</portlet-class>
+ <portlet-name>URLTests_PortletURL_ApiRenderRenurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURL_ApiRenderRenurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_PortletURL_RenderRenurl</title>
+ <title>URLTests_PortletURL_ApiRenderRenurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_PortletURL_RenderActurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURL_RenderActurl</portlet-class>
+ <portlet-name>URLTests_PortletURL_ApiRenderActurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURL_ApiRenderActurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_PortletURL_RenderActurl</title>
+ <title>URLTests_PortletURL_ApiRenderActurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_ResourceURL_RenderResurl</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_ResourceURL_RenderResurl</portlet-class>
+ <portlet-name>URLTests_ResourceURL_ApiRenderResurl</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_ResourceURL_ApiRenderResurl</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_ResourceURL_RenderResurl</title>
+ <title>URLTests_ResourceURL_ApiRenderResurl</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>URLTests_PortletURLGenerationListener_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURLGenerationListener_Render</portlet-class>
+ <portlet-name>URLTests_PortletURLGenerationListener_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.URLTests_PortletURLGenerationListener_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>URLTests_PortletURLGenerationListener_Render</title>
+ <title>URLTests_PortletURLGenerationListener_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
new file mode 100644
index 0000000..5c55a98
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
@@ -0,0 +1,171 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ActionRequestWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_ActionRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ActionRequestWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getContentLength */
+ /* Details: "Method getContentLength(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getPortletInputStream */
+ /* Details: "Method getPortletInputStream(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getReader */
+ /* Details: "Method getReader(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREADER);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped ActionRequest */
+ /* object" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREQUEST);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_setRequest */
+ /* Details: "Method setRequest(ActionRequest): Allows wrapped */
+ /* ActionRequest object to be set" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETREQUEST);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETMETHOD);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_Render.java
deleted file mode 100644
index 259e1ec..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_Render.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ActionRequestWrapper_Render_event
- *
- */
-public class WrapperTests_ActionRequestWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ActionRequestWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getContentLength */
- /* Details: "Method getContentLength(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCONTENTLENGTH);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getPortletInputStream */
- /* Details: "Method getPortletInputStream(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETPORTLETINPUTSTREAM);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getReader */
- /* Details: "Method getReader(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETREADER);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getRequest */
- /* Details: "Method getRequest(): Returns wrapped ActionRequest */
- /* object" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETREQUEST);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_setRequest */
- /* Details: "Method setRequest(ActionRequest): Allows wrapped */
- /* ActionRequest object to be set" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_SETREQUEST);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_Render_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_RENDER_GETMETHOD);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
new file mode 100644
index 0000000..9c8bdfc
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_ApiRender.java
@@ -0,0 +1,229 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ActionResponseWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_ActionResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ActionResponseWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectA */
+ /* Details: "Method sendRedirect(String): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTA);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectB */
+ /* Details: "Method sendRedirect(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTB);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTA);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTB);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameters */
+ /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
+ /* method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERS);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped ActionResponse */
+ /* object" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_setResponse */
+ /* Details: "Method setResponse(ActionResponse): Allows wrapped */
+ /* ActionResponse object to be set" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): Returns */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionResponseWrapper_ApiRender_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_Render.java
deleted file mode 100644
index 913e83d..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionResponseWrapper_Render.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ActionResponseWrapper_Render_event
- *
- */
-public class WrapperTests_ActionResponseWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ActionResponseWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_sendRedirectA */
- /* Details: "Method sendRedirect(String): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SENDREDIRECTA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_sendRedirectB */
- /* Details: "Method sendRedirect(String, String): Calls wrapped */
- /* method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SENDREDIRECTB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setEventA */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETEVENTA);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setEventB */
- /* Details: "Method setEvent(String, java.io.Serializable): Calls */
- /* wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETEVENTB);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setPortletMode */
- /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
- /* method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETPORTLETMODE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterA */
- /* Details: "Method setRenderParameter(String, String): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERA);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterB */
- /* Details: "Method setRenderParameter(String, String[]): Calls */
- /* wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERB);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setRenderParameters */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERS);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setWindowState */
- /* Details: "Method setWindowState(WindowState): Calls wrapped */
- /* method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETWINDOWSTATE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_getResponse */
- /* Details: "Method getResponse(): Returns wrapped ActionResponse */
- /* object" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRESPONSE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_setResponse */
- /* Details: "Method setResponse(ActionResponse): Allows wrapped */
- /* ActionResponse object to be set" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_SETRESPONSE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_getPortletMode */
- /* Details: "Method getPortletMode(): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): Returns */
- /* java.util.Map<java.lang.String,java.lang.String[]> object" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_getWindowState */
- /* Details: "Method getWindowState(): Calls wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionResponseWrapper_Render_removePublicRenderParameter */
- /* Details: "Method removePublicRenderParameter(String): Calls */
- /* wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_RENDER_REMOVEPUBLICRENDERPARAMETER);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
new file mode 100644
index 0000000..f4837de
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_ApiRender.java
@@ -0,0 +1,142 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_EventRequestWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_EventRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventRequestWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped EventRequest */
+ /* object" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETREQUEST);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_setRequest */
+ /* Details: "Method setRequest(EventRequest): Allows wrapped */
+ /* EventRequest object to be set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_SETREQUEST);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getEvent1 */
+ /* Details: "Method getEvent(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getEvent2 */
+ /* Details: "Method getEvent(): Returns Event object" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventRequestWrapper_ApiRender_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETMETHOD);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ }
+
+}
[51/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
deleted file mode 100644
index 36ab0e2..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ResourceResponseWrapper_ApiRender_event
- *
- */
-public class WrapperTests_ResourceResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ResourceResponseWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_flushBuffer */
- /* Details: "Method flushBuffer(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_FLUSHBUFFER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getBufferSize */
- /* Details: "Method getBufferSize(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getLocale */
- /* Details: "Method getLocale(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETLOCALE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getPortletOutputStream */
- /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getWriter */
- /* Details: "Method getWriter(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETWRITER);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_isCommitted */
- /* Details: "Method isCommitted(): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_ISCOMMITTED);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_reset */
- /* Details: "Method reset(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESET);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_resetBuffer */
- /* Details: "Method resetBuffer(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESETBUFFER);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setBufferSize */
- /* Details: "Method setBufferSize(int): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentType */
- /* Details: "Method setContentType(String): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getCacheControl */
- /* Details: "Method getCacheControl(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCACHECONTROL);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setLocale */
- /* Details: "Method setLocale(Locale): Calls wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETLOCALE);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentLength */
- /* Details: "Method setContentLength(int): Calls wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTLENGTH);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getResponse */
- /* Details: "Method getResponse(): Returns wrapped RespurceResponse */
- /* object" */
- TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETRESPONSE);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setResponse */
- /* Details: "Method setResponse(ResourceResponse): Allows wrapped */
- /* ResourceResponse object to be set" */
- TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETRESPONSE);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createActionURL */
- /* Details: "Method createActionURL(): Calls wrapped method" */
- TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATEACTIONURL);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createRenderURL */
- /* Details: "Method createRenderURL(): Calls wrapped method" */
- TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERENDERURL);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createResourceURL */
- /* Details: "Method createResourceURL(): Calls wrapped method" */
- TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiResource.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiResource.java
new file mode 100644
index 0000000..f49c8a6
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiResource.java
@@ -0,0 +1,342 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ResourceResponseWrapper_ApiResource_event
+ *
+ */
+public class WrapperTests_ResourceResponseWrapper_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ResourceResponseWrapper_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ ResourceResponseWrapperChecker wc = new ResourceResponseWrapperChecker(portletResp);
+ ResourceResponseWrapper wpr = new ResourceResponseWrapper(portletResp);
+ wpr.setResponse(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(ResourceResponseWrapper.class);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_flushBuffer */
+ /* Details: "Method flushBuffer(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_FLUSHBUFFER);
+ try {
+ Object[] args = {};
+ wc.prepare(tr0, "flushBuffer", args);
+ wpr.flushBuffer();
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getBufferSize */
+ /* Details: "Method getBufferSize(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETBUFFERSIZE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr1, "getBufferSize", args);
+ wc.checkRetval(wpr.getBufferSize());
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCHARACTERENCODING);
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getCharacterEncoding", args);
+ wc.checkRetval(wpr.getCharacterEncoding());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCONTENTTYPE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr3, "getContentType", args);
+ wc.checkRetval(wpr.getContentType());
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getLocale */
+ /* Details: "Method getLocale(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETLOCALE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr4, "getLocale", args);
+ wc.checkRetval(wpr.getLocale());
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getPortletOutputStream */
+ /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETPORTLETOUTPUTSTREAM);
+ try {
+ Object[] args = {};
+ wc.prepare(tr5, "getPortletOutputStream", args);
+ wc.checkRetval(wpr.getPortletOutputStream());
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getWriter */
+ /* Details: "Method getWriter(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETWRITER);
+ try {
+ Object[] args = {};
+ wc.prepare(tr6, "getWriter", args);
+ wc.checkRetval(wpr.getWriter());
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_isCommitted */
+ /* Details: "Method isCommitted(): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_ISCOMMITTED);
+ try {
+ Object[] args = {};
+ wc.prepare(tr7, "isCommitted", args);
+ wc.checkRetval(wpr.isCommitted());
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_reset */
+ /* Details: "Method reset(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESET);
+ try {
+ Object[] args = {};
+ wc.prepare(tr8, "reset", args);
+ wpr.reset();
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_resetBuffer */
+ /* Details: "Method resetBuffer(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESETBUFFER);
+ try {
+ Object[] args = {};
+ wc.prepare(tr9, "resetBuffer", args);
+ wpr.resetBuffer();
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setBufferSize */
+ /* Details: "Method setBufferSize(int): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETBUFFERSIZE);
+ try {
+ int parm1 = 42;
+ Object[] args = {parm1};
+ wc.prepare(tr10, "setBufferSize", args);
+ wpr.setBufferSize(parm1);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentType */
+ /* Details: "Method setContentType(String): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTTYPE);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr11, "setContentType", args);
+ wpr.setContentType(parm1);
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getCacheControl */
+ /* Details: "Method getCacheControl(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCACHECONTROL);
+ try {
+ Object[] args = {};
+ wc.prepare(tr12, "getCacheControl", args);
+ wc.checkRetval(wpr.getCacheControl());
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCHARACTERENCODING);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr13, "setCharacterEncoding", args);
+ wpr.setCharacterEncoding(parm1);
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setLocale */
+ /* Details: "Method setLocale(Locale): Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETLOCALE);
+ try {
+ Locale parm1 = new Locale("en");
+ Object[] args = {parm1};
+ wc.prepare(tr14, "setLocale", args);
+ wpr.setLocale(parm1);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
+ tr14.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentLength */
+ /* Details: "Method setContentLength(int): Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTLENGTH);
+ try {
+ int parm1 = 42;
+ Object[] args = {parm1};
+ wc.prepare(tr15, "setContentLength", args);
+ wpr.setContentLength(parm1);
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
+ tr15.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped RespurceResponse */
+ /* object" */
+ TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETRESPONSE);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ ResourceResponse r = wpr.getResponse();
+ tr16.setTcSuccess(r == wc);
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
+ tr16.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_setResponse */
+ /* Details: "Method setResponse(ResourceResponse): Allows wrapped */
+ /* ResourceResponse object to be set" */
+ TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETRESPONSE);
+ try {
+ // tested by method set up
+ tr17.setTcSuccess(true);
+ } catch(Exception e) {tr17.appendTcDetail(e.toString());}
+ tr17.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_createActionURL */
+ /* Details: "Method createActionURL(): Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATEACTIONURL);
+ try {
+ Object[] args = {};
+ wc.prepare(tr18, "createActionURL", args);
+ wc.checkRetval(wpr.createActionURL());
+ } catch(Exception e) {tr18.appendTcDetail(e.toString());}
+ tr18.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_createRenderURL */
+ /* Details: "Method createRenderURL(): Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERENDERURL);
+ try {
+ Object[] args = {};
+ wc.prepare(tr19, "createRenderURL", args);
+ wc.checkRetval(wpr.createRenderURL());
+ } catch(Exception e) {tr19.appendTcDetail(e.toString());}
+ tr19.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiResource_createResourceURL */
+ /* Details: "Method createResourceURL(): Calls wrapped method" */
+ TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERESOURCEURL);
+ try {
+ Object[] args = {};
+ wc.prepare(tr20, "createResourceURL", args);
+ wc.checkRetval(wpr.createResourceURL());
+ } catch(Exception e) {tr20.appendTcDetail(e.toString());}
+ tr20.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"WrapperTests_ResourceResponseWrapper_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"WrapperTests_ResourceResponseWrapper_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
index 7fc0fb7..8c7559f 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,51 +20,48 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API WrapperTests test case names and page mappings -->
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getPortletInputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getReader">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setEventA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setEventB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameters">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_removePublicRenderParameter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getEvent1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getEvent2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setEventA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setEventB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_removePublicRenderParameter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getPortletInputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getReader">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiAction_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setEventA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setEventB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameters">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_getPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_getRenderParameterMap1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_getWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiAction_removePublicRenderParameter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiEvent_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiEvent_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiEvent_getEvent1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiEvent_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setEventA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setEventB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_getPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_getRenderParameterMap1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_getWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiEvent_removePublicRenderParameter">V2WrapperTests</entry>
<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAttribute">V2WrapperTests</entry>
<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAttributeNames">V2WrapperTests</entry>
<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAuthType">V2WrapperTests</entry>
@@ -137,38 +134,38 @@
<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createActionURL">V2WrapperTests</entry>
<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createRenderURL">V2WrapperTests</entry>
<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createResourceURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getPortletInputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getReader">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getETag">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getResourceID">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getPrivateRenderParameterMap">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getCacheability">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_flushBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getPortletOutputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getWriter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_isCommitted">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_reset">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_resetBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getCacheControl">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createActionURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createRenderURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createResourceURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getPortletInputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getReader">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getETag">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getResourceID">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getPrivateRenderParameterMap">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiResource_getCacheability">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_flushBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getPortletOutputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getWriter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_isCommitted">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_reset">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_resetBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getCacheControl">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_createActionURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_createRenderURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiResource_createResourceURL">V2WrapperTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
index 3e826e5..1009792 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,55 +23,93 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2WrapperTests">
<portlet>
- <portlet-name>WrapperTests_ActionRequestWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionRequestWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_ActionRequestWrapper_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionRequestWrapper_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ActionRequestWrapper_ApiRender</title>
+ <title>WrapperTests_ActionRequestWrapper_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_ActionResponseWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionResponseWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_ActionResponseWrapper_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionResponseWrapper_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ActionResponseWrapper_ApiRender</title>
+ <title>WrapperTests_ActionResponseWrapper_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_EventRequestWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventRequestWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_EventRequestWrapper_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventRequestWrapper_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_EventRequestWrapper_ApiRender</title>
+ <title>WrapperTests_EventRequestWrapper_ApiEvent</title>
</portlet-info>
+ <supported-publishing-event>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ </supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>WrapperTests_EventResponseWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventResponseWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_EventRequestWrapper_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventRequestWrapper_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_EventResponseWrapper_ApiRender</title>
+ <title>WrapperTests_EventRequestWrapper_ApiEvent_event</title>
</portlet-info>
+ <supported-processing-event>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ </supported-processing-event>
+ </portlet>
+
+ <portlet>
+ <portlet-name>WrapperTests_EventResponseWrapper_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventResponseWrapper_ApiEvent</portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en_US</supported-locale>
+ <portlet-info>
+ <title>WrapperTests_EventResponseWrapper_ApiEvent</title>
+ </portlet-info>
+ <supported-publishing-event>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ </supported-publishing-event>
+ </portlet>
+
+ <portlet>
+ <portlet-name>WrapperTests_EventResponseWrapper_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventResponseWrapper_ApiEvent_event</portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en_US</supported-locale>
+ <portlet-info>
+ <title>WrapperTests_EventResponseWrapper_ApiEvent_event</title>
+ </portlet-info>
+ <supported-processing-event>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ </supported-processing-event>
</portlet>
<portlet>
@@ -127,28 +165,28 @@
</portlet>
<portlet>
- <portlet-name>WrapperTests_ResourceRequestWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceRequestWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_ResourceRequestWrapper_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceRequestWrapper_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ResourceRequestWrapper_ApiRender</title>
+ <title>WrapperTests_ResourceRequestWrapper_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_ResourceResponseWrapper_ApiRender</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceResponseWrapper_ApiRender</portlet-class>
+ <portlet-name>WrapperTests_ResourceResponseWrapper_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceResponseWrapper_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ResourceResponseWrapper_ApiRender</title>
+ <title>WrapperTests_ResourceResponseWrapper_ApiResource</title>
</portlet-info>
</portlet>
@@ -169,6 +207,16 @@
<value-type>java.lang.String</value-type>
</event-definition>
+ <event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
<public-render-parameter>
<identifier>tckPRP1</identifier>
<qname>tck:tckPRP1</qname>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionRequestWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionRequestWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionRequestWrapperChecker.java
new file mode 100644
index 0000000..88772f9
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionRequestWrapperChecker.java
@@ -0,0 +1,524 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class ActionRequestWrapperChecker extends WrapperChecker implements ActionRequest {
+
+ private PortletRequest req;
+ private PortletSession sess;
+ private PortletPreferences prefs;
+ private PortalContext pcntxt;
+ private Principal ppal;
+
+ public ActionRequestWrapperChecker(PortletRequest portletReq) {
+ req = portletReq;
+ sess = req.getPortletSession();
+ prefs = req.getPreferences();
+ pcntxt = req.getPortalContext();
+ ppal = req.getUserPrincipal();
+ }
+
+ @Override
+ public InputStream getPortletInputStream() throws IOException {
+ String meth = "getPortletInputStream";
+ Object[] args = {};
+ byte[] bytes = "Hi there!".getBytes();
+ ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
+ InputStream ret = bais;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setCharacterEncoding(String enc) throws UnsupportedEncodingException {
+ String meth = "setCharacterEncoding";
+ Object[] args = {enc};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public BufferedReader getReader() throws UnsupportedEncodingException, IOException {
+ String meth = "getReader";
+ Object[] args = {};
+ StringReader rdr = new StringReader("Hi there!");
+ BufferedReader br = new BufferedReader(rdr);
+ BufferedReader ret = br;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getCharacterEncoding() {
+ String meth = "getCharacterEncoding";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContentType() {
+ String meth = "getContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getContentLength() {
+ String meth = "getContentLength";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getMethod() {
+ String meth = "getMethod";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isWindowStateAllowed(WindowState state) {
+ String meth = "isWindowStateAllowed";
+ Object[] args = {state};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isPortletModeAllowed(PortletMode mode) {
+ String meth = "isPortletModeAllowed";
+ Object[] args = {mode};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletPreferences getPreferences() {
+ String meth = "getPreferences";
+ Object[] args = {};
+ PortletPreferences ret = prefs;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession() {
+ String meth = "getPortletSession";
+ Object[] args = {};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession(boolean create) {
+ String meth = "getPortletSession";
+ Object[] args = {create};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getProperty(String name) {
+ String meth = "getProperty";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getProperties(String name) {
+ String meth = "getProperties";
+ Object[] args = {name};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getPropertyNames() {
+ String meth = "getPropertyNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortalContext getPortalContext() {
+ String meth = "getPortalContext";
+ Object[] args = {};
+ PortalContext ret = pcntxt;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getAuthType() {
+ String meth = "getAuthType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContextPath() {
+ String meth = "getContextPath";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getRemoteUser() {
+ String meth = "getRemoteUser";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Principal getUserPrincipal() {
+ String meth = "getUserPrincipal";
+ Object[] args = {};
+ Principal ret = ppal;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isUserInRole(String role) {
+ String meth = "isUserInRole";
+ Object[] args = {role};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Object getAttribute(String name) {
+ String meth = "getAttribute";
+ Object[] args = {name};
+ Object ret = "object";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getAttributeNames() {
+ String meth = "getAttributeNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getParameter(String name) {
+ String meth = "getParameter";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getParameterNames() {
+ String meth = "getParameterNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String[] getParameterValues(String name) {
+ String meth = "getParameterValues";
+ Object[] args = {name};
+ String[] ret = {"val1", "val2"};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getParameterMap() {
+ String meth = "getParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isSecure() {
+ String meth = "isSecure";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setAttribute(String name, Object o) {
+ String meth = "setAttribute";
+ Object[] args = {name, o};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void removeAttribute(String name) {
+ String meth = "removeAttribute";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getRequestedSessionId() {
+ String meth = "getRequestedSessionId";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isRequestedSessionIdValid() {
+ String meth = "isRequestedSessionIdValid";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResponseContentType() {
+ String meth = "getResponseContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getResponseContentTypes() {
+ String meth = "getResponseContentTypes";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<Locale> getLocales() {
+ String meth = "getLocales";
+ Object[] args = {};
+ Locale[] la = {new Locale("en"), new Locale("de")};
+ Enumeration<Locale> ret = Collections.enumeration(Arrays.asList(la));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getScheme() {
+ String meth = "getScheme";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getServerName() {
+ String meth = "getServerName";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getServerPort() {
+ String meth = "getServerPort";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getWindowID() {
+ String meth = "getWindowID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Cookie[] getCookies() {
+ String meth = "getCookies";
+ Object[] args = {};
+ Cookie[] ret = {new Cookie("name", "Bob"), new Cookie("name", "Alice")};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateParameterMap() {
+ String meth = "getPrivateParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPublicParameterMap() {
+ String meth = "getPublicParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionResponseWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionResponseWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionResponseWrapperChecker.java
new file mode 100644
index 0000000..c57b60a
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ActionResponseWrapperChecker.java
@@ -0,0 +1,244 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.ActionResponse;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletModeException;
+import javax.portlet.PortletResponse;
+import javax.portlet.WindowState;
+import javax.portlet.WindowStateException;
+import javax.servlet.http.Cookie;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Element;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class ActionResponseWrapperChecker extends WrapperChecker implements ActionResponse {
+
+ PortletResponse resp;
+ Element element;
+
+ public ActionResponseWrapperChecker(PortletResponse portletResp) {
+ resp = portletResp;
+ element = resp.createElement("p");
+ }
+
+ @Override
+ public void setWindowState(WindowState windowState) throws WindowStateException {
+ String meth = "setWindowState";
+ Object[] args = {windowState};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameters(Map<String, String[]> parameters) {
+ String meth = "setRenderParameters";
+ Object[] args = {parameters};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameter(String key, String[] values) {
+ String meth = "setRenderParameter";
+ Object[] args = {key, values};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Map<String, String[]> getRenderParameterMap() {
+ String meth = "getRenderParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void removePublicRenderParameter(String name) {
+ String meth = "removePublicRenderParameter";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setEvent(QName arg0, Serializable arg1) {
+ String meth = "setEvent";
+ Object[] args = {arg0, arg1};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setPortletMode(PortletMode portletMode) throws PortletModeException {
+ String meth = "setPortletMode";
+ Object[] args = {portletMode};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setRenderParameter(String key, String value) {
+ String meth = "setRenderParameter";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setEvent(String name, Serializable value) {
+ String meth = "setEvent";
+ Object[] args = {name, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, String value) {
+ String meth = "addProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setProperty(String key, String value) {
+ String meth = "setProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String encodeURL(String path) {
+ String meth = "encodeURL";
+ Object[] args = {path};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getNamespace() {
+ String meth = "getNamespace";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void addProperty(Cookie cookie) {
+ String meth = "addProperty";
+ Object[] args = {cookie};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, Element element) {
+ String meth = "addProperty";
+ Object[] args = {key, element};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Element createElement(String tagName) throws DOMException {
+ String meth = "createElement";
+ Object[] args = {tagName};
+ Element ret = element;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void sendRedirect(String location) throws IOException {
+ String meth = "sendRedirect";
+ Object[] args = {location};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void sendRedirect(String location, String renderUrlParamName) throws IOException {
+ String meth = "sendRedirect";
+ Object[] args = {location, renderUrlParamName};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
index b1811dc..6b75211 100644
--- a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
@@ -26,6 +26,9 @@ import java.util.HashSet;
import java.util.logging.Level;
import java.util.logging.Logger;
+import javax.portlet.PortletMode;
+import javax.portlet.WindowState;
+
/**
* Tool for checking class properties such as implemented interfaces,
* superclass, methods with signatures, etc.
@@ -87,6 +90,69 @@ public class ClassChecker {
return result;
}
+
+ /**
+ * Returns true if the class under test has a field by the specified name and value.
+ *
+ * @param fname Field name
+ * @param value Field value
+ * @return true if the class under test defines the field with the specified value
+ */
+ public boolean hasField(String fname, int value) {
+ boolean result = false;
+
+ try {
+ Field f = cut.getField(fname);
+ int fValue = (int) f.getInt(null);
+ if (fValue == value) {
+ result = true;
+ }
+ } catch (Exception e) { }
+
+ return result;
+ }
+
+ /**
+ * Returns true if the class under test has a field by the specified name and value.
+ *
+ * @param fname Field name
+ * @param value Field value
+ * @return true if the class under test defines the field with the specified value
+ */
+ public boolean hasField(String fname, PortletMode value) {
+ boolean result = false;
+
+ try {
+ Field f = cut.getField(fname);
+ PortletMode fValue = (PortletMode) f.get(null);
+ if (fValue.equals(value)) {
+ result = true;
+ }
+ } catch (Exception e) { }
+
+ return result;
+ }
+
+ /**
+ * Returns true if the class under test has a field by the specified name and value.
+ *
+ * @param fname Field name
+ * @param value Field value
+ * @return true if the class under test defines the field with the specified value
+ */
+ public boolean hasField(String fname, WindowState value) {
+ boolean result = false;
+
+ try {
+ Field f = cut.getField(fname);
+ WindowState fValue = (WindowState) f.get(null);
+ if (fValue.equals(value)) {
+ result = true;
+ }
+ } catch (Exception e) { }
+
+ return result;
+ }
/**
* Tests whether class under test implements given interface
[56/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
index 5d1b495..18a0487 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
@@ -260,6 +260,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
index beeeefc..b09ea57 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
@@ -100,6 +100,8 @@ public class ExceptionTests_PortletModeException_ApiRender implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.PortletModeException.class);
+
/* TestCase: V2ExceptionTests_PortletModeException_ApiRender_hasGetMode2 */
/* Details: "Returns the PortletMode object causing this exception" */
TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_APIRENDER_HASGETMODE2);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
index 87fc385..32c02d7 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
@@ -100,6 +100,8 @@ public class ExceptionTests_UnavailableException_ApiRender implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.UnavailableException.class);
+
/* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent1 */
/* Details: "Method isPermanent(): Returns a boolean" */
TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT1);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
index ae516bb..8591dbe 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
@@ -100,6 +100,8 @@ public class ExceptionTests_ValidatorException_ApiRender implements Portlet, Res
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.ValidatorException.class);
+
/* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor2 */
/* Details: "For ValidatorException(java.lang.String, */
/* java.util.Collection<java.lang.String>), the failedKeys */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
index 0fbd089..73590c8 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
@@ -100,6 +100,8 @@ public class ExceptionTests_WindowStateException_ApiRender implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.WindowStateException.class);
+
/* TestCase: V2ExceptionTests_WindowStateException_ApiRender_getState */
/* Details: "Method getState(): Returns the WindowState object */
/* causing this exception" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
index 67f44cc..3462b31 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
@@ -92,6 +92,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
index 1b4c422..e5b13af 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_ActionFilter_ApiActionFilter_filter implements ActionFi
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(ActionFilter.class);
+
/* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured1 */
/* Details: "An ActionFilter can be configured in the portlet */
/* descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
index b0f72fc..bbbb2e3 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_EventFilter_ApiEventFilter_filter implements EventFilte
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(EventFilter.class);
+
/* TestCase: V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured1 */
/* Details: "An EventFilter can be configured in the portlet */
/* descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
index da9bf84..5b9f9f5 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_PortletFilter_ApiActionFilter_filter implements ActionF
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletFilter.class);
+
/* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction1 */
/* Details: "The init(FilterConfig): method is called when an */
/* ActionFilter is configured" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
index aaeb9ef..f7d40fe 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_PortletFilter_ApiEventFilter_filter implements EventFil
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletFilter.class);
+
/* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent1 */
/* Details: "The init(FilterConfig): method is called when an */
/* EventFilter is configured" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
index 330db5c..e8965f7 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_PortletFilter_ApiRenderFilter_filter implements RenderF
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletFilter.class);
+
/* TestCase: V2FilterTests_PortletFilter_ApiRenderFilter_initRender1 */
/* Details: "The init(FilterConfig): method is called when an */
/* RenderFilter is configured" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
index 7b5f82d..b30f211 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_PortletFilter_ApiResourceFilter_filter implements Resou
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletFilter.class);
+
/* TestCase: V2FilterTests_PortletFilter_ApiResourceFilter_initResource1 */
/* Details: "The init(FilterConfig): method is called when an */
/* ResourceFilter is configured" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
index 58e8ee7..3047f33 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_RenderFilter_ApiRenderFilter_filter implements RenderFi
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(RenderFilter.class);
+
/* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_canBeConfigured1 */
/* Details: "An RenderFilter can be configured in the portlet */
/* descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
index ecd6327..08fd68e 100644
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
@@ -72,6 +72,8 @@ public class FilterTests_ResourceFilter_ApiResourceFilter_filter implements Reso
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(ResourceFilter.class);
+
/* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_canBeConfigured1 */
/* Details: "An ResourceFilter can be configured in the portlet */
/* descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
index a87e27d..0422b4f 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class PortletTests_EventPortlet_ApiEvent_event implements Portlet, EventP
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(GenericPortlet.class);
+
/* TestCase: V2PortletTests_EventPortlet_ApiEvent_processEvent */
/* Details: "Method processEvent(EventRequest, EventResponse): is */
/* called when an event is targeted to the portlet" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
index 43ea2a0..97440b9 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class PortletTests_Event_ApiEvent_event implements Portlet, EventPortlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getEvent().getClass());
+
/* TestCase: V2PortletTests_Event_ApiEvent_getQName1 */
/* Details: "Method getQName(): Returns the javax.xml.namespace.QName */
/* object for the Event" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
index 1259bc0..d437929 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
@@ -100,6 +100,8 @@ public class PortletTests_GenericPortlet_ApiRender implements Portlet, ResourceS
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(GenericPortlet.class);
+
/* TestCase: V2PortletTests_GenericPortlet_ApiRender_initA */
/* Details: "Method init(): Called when the portlet is initialized" */
TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_INITA);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
index 52edd80..3543eb9 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
@@ -100,6 +100,8 @@ public class PortletTests_PortletConfig_ApiRender implements Portlet, ResourceSe
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletConfig.getClass());
+
/* TestCase: V2PortletTests_PortletConfig_ApiRender_getPortletName */
/* Details: "Method getPortletName(): Returns a String containing the */
/* portlet name" */
@@ -136,8 +138,16 @@ public class PortletTests_PortletConfig_ApiRender implements Portlet, ResourceSe
/* Details: "Method getInitParameter(String): Throws */
/* IllegalArgumentException if the name parameter is null" */
TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETINITPARAMETER3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletConfig.getInitParameter(null);
+ tr4.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr4.setTcSuccess(true);
+ } catch (Exception e) {
+ tr4.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2PortletTests_PortletConfig_ApiRender_getInitParameterNames1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
index dafd1b2..9bfaef0 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
@@ -100,6 +100,8 @@ public class PortletTests_PortletConfig_ApiRender2 implements Portlet, ResourceS
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletConfig.getClass());
+
/* TestCase: V2PortletTests_PortletConfig_ApiRender2_getInitParameter2 */
/* Details: "Method getInitParameter(String): Returns null if the */
/* specified initialization parameter does not exist" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
index caa5502..aa6ca1b 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
@@ -100,6 +100,8 @@ public class PortletTests_PortletMode_ApiRender implements Portlet, ResourceServ
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPortletMode().getClass());
+
/* TestCase: V2PortletTests_PortletMode_ApiRender_constructor1 */
/* Details: "The constructor PortletMode(java.lang.String): allows a */
/* PortletMode object of the specified name to be constructed" */
@@ -120,24 +122,27 @@ public class PortletTests_PortletMode_ApiRender implements Portlet, ResourceServ
/* Details: "Has PortletMode field EDIT with value of */
/* PortletMode.EDIT " */
TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDEDIT);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("EDIT", PortletMode.EDIT));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2PortletTests_PortletMode_ApiRender_fieldHELP */
/* Details: "Has PortletMode field HELP with value of */
/* PortletMode.HELP " */
TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDHELP);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("HELP", PortletMode.HELP));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2PortletTests_PortletMode_ApiRender_fieldVIEW */
/* Details: "Has PortletMode field VIEW with value of */
/* PortletMode.VIEW " */
TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDVIEW);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("VIEW", PortletMode.VIEW));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2PortletTests_PortletMode_ApiRender_toString */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
index 1845651..4ed1a0e 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
@@ -76,6 +76,8 @@ public class PortletTests_Portlet_ApiAction implements Portlet, ResourceServingP
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(GenericPortlet.class);
+
/* TestCase: V2PortletTests_Portlet_ApiAction_processAction */
/* Details: "Method processAction(ActionRequest, ActionResponse): is */
/* called when an action URL for the portlet is triggered" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
index 073fb65..8f601b8 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
@@ -100,6 +100,8 @@ public class PortletTests_Portlet_ApiRender implements Portlet, ResourceServingP
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(GenericPortlet.class);
+
/* TestCase: V2PortletTests_Portlet_ApiRender_init1 */
/* Details: "Method init(PortletConfig): is called for the portlet */
/* defined in the deployment descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
index 7a134d8..ba16bbd 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
@@ -88,6 +88,8 @@ public class PortletTests_ResourceServingPortlet_ApiResource implements Portlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(GenericPortlet.class);
+
/* TestCase: V2PortletTests_ResourceServingPortlet_ApiResource_serveResource */
/* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
/* is called to allow the portlet to generate resource content " */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
index d1f7d38..17fc5fb 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
@@ -100,6 +100,8 @@ public class PortletTests_WindowState_ApiRender implements Portlet, ResourceServ
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getWindowState().getClass());
+
/* TestCase: V2PortletTests_WindowState_ApiRender_constructor1 */
/* Details: "The constructor WindowState(java.lang.String): allows a */
/* WindowState object of the specified name to be constructed" */
@@ -120,24 +122,27 @@ public class PortletTests_WindowState_ApiRender implements Portlet, ResourceServ
/* Details: "Has WindowState field MAXIMIZED with value of */
/* WindowState.MAXIMIZED " */
TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDMAXIMIZED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("MAXIMIZED", WindowState.MAXIMIZED));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2PortletTests_WindowState_ApiRender_fieldMINIMIZED */
/* Details: "Has WindowState field MINIMIZED with value of */
/* WindowState.MINIMIZED " */
TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDMINIMIZED);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("MINIMIZED", WindowState.MINIMIZED));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2PortletTests_WindowState_ApiRender_fieldNORMAL */
/* Details: "Has WindowState field NORMAL with value of */
/* WindowState.NORMAL " */
TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDNORMAL);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("NORMAL", WindowState.NORMAL));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2PortletTests_WindowState_ApiRender_toString */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
index 8935b43..192c678 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
@@ -208,6 +208,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
index 7784385..cae7b7c 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
@@ -76,12 +76,15 @@ public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceSe
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_ActionRequest_ApiAction_fieldACTION_NAME */
/* Details: "Has String field ACTION_NAME with value of */
/* \"javax.portlet.action\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_ACTIONREQUEST_APIACTION_FIELDACTION_NAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("ACTION_NAME", "javax.portlet.action"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
portletReq.getPortletSession().setAttribute(
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
index fb1c10c..ba2fb97 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
@@ -76,6 +76,8 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream1 */
/* Details: "Method getPortletInputStream(): Returns an InputStream */
/* object" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
index 6c17c37..88da9d0 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
@@ -88,6 +88,8 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream1 */
/* Details: "Method getPortletInputStream(): Returns an InputStream */
/* object" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
index ebb0edf..f734cb3 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_EventRequest_ApiEvent_getEvent */
/* Details: "Method getEvent(): Returns the Event object that */
/* triggered the call to the processEvent method" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
index d15164a..8045b10 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
@@ -76,121 +76,138 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldUSER_INFO */
/* Details: "Has String field USER_INFO with value of */
/* \"javax.portlet.userinfo\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("USER_INFO", "javax.portlet.userinfo"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCCPP_PROFILE */
/* Details: "Has String field CCPP_PROFILE with value of */
/* \"javax.portlet.ccpp\" " */
TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CCPP_PROFILE", "javax.portlet.ccpp"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldBASIC_AUTH */
/* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("BASIC_AUTH", "BASIC"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldFORM_AUTH */
/* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("FORM_AUTH", "FORM"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldCLIENT_CERT_AUTH */
/* Details: "Has String field CLIENT_CERT_AUTH with value of */
/* \"CLIENT_CERT\" " */
TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("CLIENT_CERT_AUTH", "CLIENT_CERT"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldDIGEST_AUTH */
/* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("DIGEST_AUTH", "DIGEST"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_PHASE */
/* Details: "Has String field ACTION_PHASE with value of */
/* \"ACTION_PHASE\" " */
TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("ACTION_PHASE", "ACTION_PHASE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldEVENT_PHASE */
/* Details: "Has String field EVENT_PHASE with value of */
/* \"EVENT_PHASE\" " */
TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("EVENT_PHASE", "EVENT_PHASE"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PHASE */
/* Details: "Has String field RENDER_PHASE with value of */
/* \"RENDER_PHASE\" " */
TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ tr8.setTcSuccess(cc.hasField("RENDER_PHASE", "RENDER_PHASE"));
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRESOURCE_PHASE */
/* Details: "Has String field RESOURCE_PHASE with value of */
/* \"RESOURCE_PHASE\" " */
TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ tr9.setTcSuccess(cc.hasField("RESOURCE_PHASE", "RESOURCE_PHASE"));
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldLIFECYCLE_PHASE */
/* Details: "Has String field LIFECYCLE_PHASE with value of */
/* \"javax.portlet.lifecycle_phase\" " */
TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ tr10.setTcSuccess(cc.hasField("LIFECYCLE_PHASE", "javax.portlet.lifecycle_phase"));
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PART */
/* Details: "Has String field RENDER_PART with value of */
/* \"javax.portlet.render_part\" " */
TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ tr11.setTcSuccess(cc.hasField("RENDER_PART", "javax.portlet.render_part"));
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_HEADERS */
/* Details: "Has String field RENDER_HEADERS with value of */
/* \"RENDER_HEADERS\" " */
TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ tr12.setTcSuccess(cc.hasField("RENDER_HEADERS", "RENDER_HEADERS"));
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldRENDER_MARKUP */
/* Details: "Has String field RENDER_MARKUP with value of */
/* \"RENDER_MARKUP\" " */
TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ tr13.setTcSuccess(cc.hasField("RENDER_MARKUP", "RENDER_MARKUP"));
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_fieldACTION_SCOPE_ID */
/* Details: "Has String field ACTION_SCOPE_ID with value of */
/* \"javax.portlet.as\" " */
TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ tr14.setTcSuccess(cc.hasField("ACTION_SCOPE_ID", "javax.portlet.as"));
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed1 */
@@ -315,8 +332,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method getProperty(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getProperty(null);
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getProperties1 */
@@ -339,8 +364,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method getProperties(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Enumeration<String> es = portletReq.getProperties(null);
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getPropertyNames1 */
@@ -484,8 +517,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Object val = portletReq.getAttribute(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getAttributeNames1 */
@@ -541,8 +582,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method getParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getParameter(null);
+ tr58.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr58.setTcSuccess(true);
+ } catch (Exception e) {
+ tr58.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr58.appendTcDetail(e.toString());}
tr58.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterNames1 */
@@ -590,8 +639,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method getParameterValues(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String[] vals = portletReq.getParameterValues(null);
+ tr64.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr64.setTcSuccess(true);
+ } catch (Exception e) {
+ tr64.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr64.appendTcDetail(e.toString());}
tr64.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getParameterMap1 */
@@ -655,8 +712,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.setAttribute(null, "value");
+ tr72.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr72.setTcSuccess(true);
+ } catch (Exception e) {
+ tr72.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr72.appendTcDetail(e.toString());}
tr72.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_removeAttribute1 */
@@ -671,8 +736,16 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIACTION_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.removeAttribute(null);
+ tr74.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr74.setTcSuccess(true);
+ } catch (Exception e) {
+ tr74.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr74.appendTcDetail(e.toString());}
tr74.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiAction_getRequestedSessionId1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
index d30a2ba..25b1dac 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
@@ -82,121 +82,138 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getClass());
+
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldUSER_INFO */
/* Details: "Has String field USER_INFO with value of */
/* \"javax.portlet.userinfo\" " */
TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("USER_INFO", "javax.portlet.userinfo"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCCPP_PROFILE */
/* Details: "Has String field CCPP_PROFILE with value of */
/* \"javax.portlet.ccpp\" " */
TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("CCPP_PROFILE", "javax.portlet.ccpp"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldBASIC_AUTH */
/* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("BASIC_AUTH", "BASIC"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldFORM_AUTH */
/* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("FORM_AUTH", "FORM"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCLIENT_CERT_AUTH */
/* Details: "Has String field CLIENT_CERT_AUTH with value of */
/* \"CLIENT_CERT\" " */
TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ tr4.setTcSuccess(cc.hasField("CLIENT_CERT_AUTH", "CLIENT_CERT"));
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldDIGEST_AUTH */
/* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
+ try {
+ tr5.setTcSuccess(cc.hasField("DIGEST_AUTH", "DIGEST"));
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
tr5.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_PHASE */
/* Details: "Has String field ACTION_PHASE with value of */
/* \"ACTION_PHASE\" " */
TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
+ try {
+ tr6.setTcSuccess(cc.hasField("ACTION_PHASE", "ACTION_PHASE"));
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
tr6.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldEVENT_PHASE */
/* Details: "Has String field EVENT_PHASE with value of */
/* \"EVENT_PHASE\" " */
TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ tr7.setTcSuccess(cc.hasField("EVENT_PHASE", "EVENT_PHASE"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PHASE */
/* Details: "Has String field RENDER_PHASE with value of */
/* \"RENDER_PHASE\" " */
TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ tr8.setTcSuccess(cc.hasField("RENDER_PHASE", "RENDER_PHASE"));
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRESOURCE_PHASE */
/* Details: "Has String field RESOURCE_PHASE with value of */
/* \"RESOURCE_PHASE\" " */
TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
+ try {
+ tr9.setTcSuccess(cc.hasField("RESOURCE_PHASE", "RESOURCE_PHASE"));
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
tr9.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldLIFECYCLE_PHASE */
/* Details: "Has String field LIFECYCLE_PHASE with value of */
/* \"javax.portlet.lifecycle_phase\" " */
TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
+ try {
+ tr10.setTcSuccess(cc.hasField("LIFECYCLE_PHASE", "javax.portlet.lifecycle_phase"));
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
tr10.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PART */
/* Details: "Has String field RENDER_PART with value of */
/* \"javax.portlet.render_part\" " */
TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ tr11.setTcSuccess(cc.hasField("RENDER_PART", "javax.portlet.render_part"));
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_HEADERS */
/* Details: "Has String field RENDER_HEADERS with value of */
/* \"RENDER_HEADERS\" " */
TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ tr12.setTcSuccess(cc.hasField("RENDER_HEADERS", "RENDER_HEADERS"));
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_MARKUP */
/* Details: "Has String field RENDER_MARKUP with value of */
/* \"RENDER_MARKUP\" " */
TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ tr13.setTcSuccess(cc.hasField("RENDER_MARKUP", "RENDER_MARKUP"));
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_SCOPE_ID */
/* Details: "Has String field ACTION_SCOPE_ID with value of */
/* \"javax.portlet.as\" " */
TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
+ try {
+ tr14.setTcSuccess(cc.hasField("ACTION_SCOPE_ID", "javax.portlet.as"));
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
tr14.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed1 */
@@ -321,8 +338,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method getProperty(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getProperty(null);
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties1 */
@@ -345,8 +370,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method getProperties(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Enumeration<String> es = portletReq.getProperties(null);
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPropertyNames1 */
@@ -490,8 +523,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Object val = portletReq.getAttribute(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttributeNames1 */
@@ -547,8 +588,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method getParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String val = portletReq.getParameter(null);
+ tr58.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr58.setTcSuccess(true);
+ } catch (Exception e) {
+ tr58.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr58.appendTcDetail(e.toString());}
tr58.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterNames1 */
@@ -596,8 +645,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method getParameterValues(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
+ try {
+ try {
+ String[] vals = portletReq.getParameterValues(null);
+ tr64.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr64.setTcSuccess(true);
+ } catch (Exception e) {
+ tr64.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr64.appendTcDetail(e.toString());}
tr64.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap1 */
@@ -661,8 +718,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.setAttribute(null, "value");
+ tr72.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr72.setTcSuccess(true);
+ } catch (Exception e) {
+ tr72.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr72.appendTcDetail(e.toString());}
tr72.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_removeAttribute1 */
@@ -677,8 +742,16 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletReq.removeAttribute(null);
+ tr74.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr74.setTcSuccess(true);
+ } catch (Exception e) {
+ tr74.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr74.appendTcDetail(e.toString());}
tr74.writeTo(writer);
/* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId1 */
[58/63] [abbrv] Updated the assertion CSV files in the doc-files
directory
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d6d7d72c/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286TCDispatchTableAssertions.csv
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286TCDispatchTableAssertions.csv b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286TCDispatchTableAssertions.csv
new file mode 100644
index 0000000..25d1c82
--- /dev/null
+++ b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286TCDispatchTableAssertions.csv
@@ -0,0 +1,1335 @@
+PARMS genManual=true tcDetailsClassName=JSR286DispatcherReqRespTestCaseDetails singlePage=true
+Dispatcher ReqResp Tests 1;;;;
+SPEC2_19;Forward JSP Action Request;getAttribute;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getAttribute must provide the same functionality as ActionRequest.getAttribute
+SPEC2_19;Forward JSP Action Request;getAttributeNames;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as ActionRequest.getAttributeNames
+SPEC2_19;Forward JSP Action Request;getAuthType;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getAuthType must provide the same functionality as ActionRequest.getAuthType
+SPEC2_19;Forward JSP Action Request;getCharacterEncoding;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getCharacterEncoding must provide the same functionality as ActionRequest.getCharacterEncoding
+SPEC2_19;Forward JSP Action Request;getContentLength;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getContentLength must provide the same functionality as ActionRequest.getContentLength
+SPEC2_19;Forward JSP Action Request;getContentType;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getContentType must provide the same functionality as ActionRequest.getContentType
+SPEC2_19;Forward JSP Action Request;getContextPath;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getContextPath must provide the same functionality as ActionRequest.getContextPath
+SPEC2_19;Forward JSP Action Request;getCookies;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getCookies must provide the same functionality as ActionRequest.getCookies
+SPEC2_19;Forward JSP Action Request;getDateHeader;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Action Request;getHeader;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Action Request;getHeaderNames;TRUE;In a target jsp of a forward in the Action phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by ActionRequest.getPropertyNames
+SPEC2_19;Forward JSP Action Request;getHeaders;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by ActionRequest.getProperties for the corresponding header name
+SPEC2_19;Forward JSP Action Request;getIntHeader;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Action Request;getLocalAddr;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward JSP Action Request;getLocalName;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward JSP Action Request;getLocalPort;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward JSP Action Request;getLocale;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getLocale must provide the same functionality as ActionRequest.getLocale
+SPEC2_19;Forward JSP Action Request;getLocales;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getLocales must provide the same functionality as ActionRequest.getLocales
+SPEC2_19;Forward JSP Action Request;getMethod;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getMethod must provide the same functionality as ActionRequest.getMethod
+SPEC2_19;Forward JSP Action Request;getParameter;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getParameter must provide the same functionality as ActionRequest.getParameter
+SPEC2_19;Forward JSP Action Request;getParameterMap;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getParameterMap must provide the same functionality as ActionRequest.getParameterMap
+SPEC2_19;Forward JSP Action Request;getParameterNames;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getParameterNames must provide the same functionality as ActionRequest.getParameterNames
+SPEC2_19;Forward JSP Action Request;getParameterValues;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getParameterValues must provide the same functionality as ActionRequest.getParameterValues
+SPEC2_19;Forward JSP Action Request;getPathInfo;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Action Request;getPathTranslated;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Action Request;getProtocol;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward JSP Action Request;getQueryString;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Action Request;getRealPath;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward JSP Action Request;getRemoteAddr;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward JSP Action Request;getRemoteHost;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward JSP Action Request;getRemotePort;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward JSP Action Request;getRemoteUser;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as ActionRequest.getRemoteUser
+SPEC2_19;Forward JSP Action Request;getRequestDispatcher;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward JSP Action Request;getRequestURI;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Action Request;getRequestURL;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward JSP Action Request;getRequestedSessionId;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as ActionRequest.getRequestedSessionId
+SPEC2_19;Forward JSP Action Request;getScheme;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getScheme must provide the same functionality as ActionRequest.getScheme
+SPEC2_19;Forward JSP Action Request;getServerName;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getServerName must provide the same functionality as ActionRequest.getServerName
+SPEC2_19;Forward JSP Action Request;getServerPort;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getServerPort must provide the same functionality as ActionRequest.getServerPort
+SPEC2_19;Forward JSP Action Request;getServletPath;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Action Request;getSession;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getSession must provide the same functionality as ActionRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward JSP Action Request;getUserPrincipal;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as ActionRequest.getUserPrincipal
+SPEC2_19;Forward JSP Action Request;isRequestedSessionIdValid;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as ActionRequest.isRequestedSessionIdValid
+SPEC2_19;Forward JSP Action Request;isSecure;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.isSecure must provide the same functionality as ActionRequest.isSecure
+SPEC2_19;Forward JSP Action Request;isUserInRole;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.isUserInRole must provide the same functionality as ActionRequest.isUserInRole
+SPEC2_19;Forward JSP Action Request;removeAttribute;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.removeAttribute must provide the same functionality as ActionRequest.removeAttribute
+SPEC2_19;Forward JSP Action Request;setAttribute;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletRequest.setAttribute must provide the same functionality as ActionRequest.setAttribute
+SPEC2_19;Forward JSP Action Response;containsHeader;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward JSP Action Response;encodeRedirectURL1;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward JSP Action Response;encodeRedirectUrl;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward JSP Action Response;encodeURL1;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.encodeURL must provide the same functionality as ActionResponse.encodeURL
+SPEC2_19;Forward JSP Action Response;encodeUrl;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.encodeUrl must provide the same functionality as ActionResponse.encodeURL
+SPEC2_19;Forward JSP Action Response;getBufferSize;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.getBufferSize must return 0
+SPEC2_19;Forward JSP Action Response;getCharacterEncoding;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.getCharacterEncoding must return null
+SPEC2_19;Forward JSP Action Response;getContentType;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.getContentType must return null
+SPEC2_19;Forward JSP Action Response;getLocale;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.getLocale must return null
+SPEC2_19;Forward JSP Action Response;isCommitted;TRUE;In a target jsp of a forward in the Action phase, the method HttpServletResponse.isCommitted must return false
+SPEC2_19;Forward JSP Event Request;getAttribute;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getAttribute must provide the same functionality as EventRequest.getAttribute
+SPEC2_19;Forward JSP Event Request;getAttributeNames;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as EventRequest.getAttributeNames
+SPEC2_19;Forward JSP Event Request;getAuthType;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getAuthType must provide the same functionality as EventRequest.getAuthType
+SPEC2_19;Forward JSP Event Request;getCharacterEncoding;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getCharacterEncoding must return null
+SPEC2_19;Forward JSP Event Request;getContentLength;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getContentLength must return 0
+SPEC2_19;Forward JSP Event Request;getContentType;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getContentType must return null
+SPEC2_19;Forward JSP Event Request;getContextPath;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getContextPath must provide the same functionality as EventRequest.getContextPath
+SPEC2_19;Forward JSP Event Request;getCookies;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getCookies must provide the same functionality as EventRequest.getCookies
+SPEC2_19;Forward JSP Event Request;getDateHeader;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Event Request;getHeader;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Event Request;getHeaderNames;TRUE;In a target jsp of a forward in the Event phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by EventRequest.getPropertyNames
+SPEC2_19;Forward JSP Event Request;getHeaders;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by EventRequest.getProperties for the corresponding header name
+SPEC2_19;Forward JSP Event Request;getInputStream;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getInputStream must return null
+SPEC2_19;Forward JSP Event Request;getIntHeader;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Event Request;getLocalAddr;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward JSP Event Request;getLocalName;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward JSP Event Request;getLocalPort;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward JSP Event Request;getLocale;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getLocale must provide the same functionality as EventRequest.getLocale
+SPEC2_19;Forward JSP Event Request;getLocales;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getLocales must provide the same functionality as EventRequest.getLocales
+SPEC2_19;Forward JSP Event Request;getMethod;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getMethod must provide the same functionality as EventRequest.getMethod
+SPEC2_19;Forward JSP Event Request;getParameter;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getParameter must provide the same functionality as EventRequest.getParameter
+SPEC2_19;Forward JSP Event Request;getParameterMap;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getParameterMap must provide the same functionality as EventRequest.getParameterMap
+SPEC2_19;Forward JSP Event Request;getParameterNames;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getParameterNames must provide the same functionality as EventRequest.getParameterNames
+SPEC2_19;Forward JSP Event Request;getParameterValues;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getParameterValues must provide the same functionality as EventRequest.getParameterValues
+SPEC2_19;Forward JSP Event Request;getPathInfo;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Event Request;getPathTranslated;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Event Request;getProtocol;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward JSP Event Request;getQueryString;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Event Request;getReader;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getReader must return null
+SPEC2_19;Forward JSP Event Request;getRealPath;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward JSP Event Request;getRemoteAddr;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward JSP Event Request;getRemoteHost;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward JSP Event Request;getRemotePort;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward JSP Event Request;getRemoteUser;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as EventRequest.getRemoteUser
+SPEC2_19;Forward JSP Event Request;getRequestDispatcher;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward JSP Event Request;getRequestURI;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Event Request;getRequestURL;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward JSP Event Request;getRequestedSessionId;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as EventRequest.getRequestedSessionId
+SPEC2_19;Forward JSP Event Request;getScheme;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getScheme must provide the same functionality as EventRequest.getScheme
+SPEC2_19;Forward JSP Event Request;getServerName;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getServerName must provide the same functionality as EventRequest.getServerName
+SPEC2_19;Forward JSP Event Request;getServerPort;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getServerPort must provide the same functionality as EventRequest.getServerPort
+SPEC2_19;Forward JSP Event Request;getServletPath;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Event Request;getSession;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getSession must provide the same functionality as EventRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward JSP Event Request;getUserPrincipal;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as EventRequest.getUserPrincipal
+SPEC2_19;Forward JSP Event Request;isRequestedSessionIdValid;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as EventRequest.isRequestedSessionIdValid
+SPEC2_19;Forward JSP Event Request;isSecure;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.isSecure must provide the same functionality as EventRequest.isSecure
+SPEC2_19;Forward JSP Event Request;isUserInRole;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.isUserInRole must provide the same functionality as EventRequest.isUserInRole
+SPEC2_19;Forward JSP Event Request;removeAttribute;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.removeAttribute must provide the same functionality as EventRequest.removeAttribute
+SPEC2_19;Forward JSP Event Request;setAttribute;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletRequest.setAttribute must provide the same functionality as EventRequest.setAttribute
+SPEC2_19;Forward JSP Event Response;containsHeader;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward JSP Event Response;encodeRedirectURL1;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward JSP Event Response;encodeRedirectUrl;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward JSP Event Response;encodeURL1;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.encodeURL must provide the same functionality as EventResponse.encodeURL
+SPEC2_19;Forward JSP Event Response;encodeUrl;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.encodeUrl must provide the same functionality as EventResponse.encodeURL
+SPEC2_19;Forward JSP Event Response;getBufferSize;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.getBufferSize must return 0
+SPEC2_19;Forward JSP Event Response;getCharacterEncoding;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.getCharacterEncoding must return null
+SPEC2_19;Forward JSP Event Response;getContentType;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.getContentType must return null
+SPEC2_19;Forward JSP Event Response;getLocale;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.getLocale must return null
+SPEC2_19;Forward JSP Event Response;isCommitted;TRUE;In a target jsp of a forward in the Event phase, the method HttpServletResponse.isCommitted must return false
+SPEC2_19;Forward JSP Render Request;getAttribute;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getAttribute must provide the same functionality as RenderRequest.getAttribute
+SPEC2_19;Forward JSP Render Request;getAttributeNames;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as RenderRequest.getAttributeNames
+SPEC2_19;Forward JSP Render Request;getAuthType;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getAuthType must provide the same functionality as RenderRequest.getAuthType
+SPEC2_19;Forward JSP Render Request;getCharacterEncoding;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getCharacterEncoding must return null
+SPEC2_19;Forward JSP Render Request;getContentLength;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getContentLength must return 0
+SPEC2_19;Forward JSP Render Request;getContentType;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getContentType must return null
+SPEC2_19;Forward JSP Render Request;getContextPath;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getContextPath must provide the same functionality as RenderRequest.getContextPath
+SPEC2_19;Forward JSP Render Request;getCookies;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getCookies must provide the same functionality as RenderRequest.getCookies
+SPEC2_19;Forward JSP Render Request;getDateHeader;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Render Request;getHeader;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Render Request;getHeaderNames;TRUE;In a target jsp of a forward in the Render phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by RenderRequest.getPropertyNames
+SPEC2_19;Forward JSP Render Request;getHeaders;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by RenderRequest.getProperties for the corresponding header name
+SPEC2_19;Forward JSP Render Request;getInputStream;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getInputStream must return null
+SPEC2_19;Forward JSP Render Request;getIntHeader;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Render Request;getLocalAddr;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward JSP Render Request;getLocalName;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward JSP Render Request;getLocalPort;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward JSP Render Request;getLocale;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getLocale must provide the same functionality as RenderRequest.getLocale
+SPEC2_19;Forward JSP Render Request;getLocales;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getLocales must provide the same functionality as RenderRequest.getLocales
+SPEC2_19;Forward JSP Render Request;getMethod;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getMethod must return "GET"
+SPEC2_19;Forward JSP Render Request;getParameter;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getParameter must provide the same functionality as RenderRequest.getParameter
+SPEC2_19;Forward JSP Render Request;getParameterMap;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getParameterMap must provide the same functionality as RenderRequest.getParameterMap
+SPEC2_19;Forward JSP Render Request;getParameterNames;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getParameterNames must provide the same functionality as RenderRequest.getParameterNames
+SPEC2_19;Forward JSP Render Request;getParameterValues;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getParameterValues must provide the same functionality as RenderRequest.getParameterValues
+SPEC2_19;Forward JSP Render Request;getPathInfo;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Render Request;getPathTranslated;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Render Request;getProtocol;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward JSP Render Request;getQueryString;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Render Request;getReader;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getReader must return null
+SPEC2_19;Forward JSP Render Request;getRealPath;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward JSP Render Request;getRemoteAddr;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward JSP Render Request;getRemoteHost;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward JSP Render Request;getRemotePort;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward JSP Render Request;getRemoteUser;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as RenderRequest.getRemoteUser
+SPEC2_19;Forward JSP Render Request;getRequestDispatcher;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward JSP Render Request;getRequestURI;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Render Request;getRequestURL;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward JSP Render Request;getRequestedSessionId;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as RenderRequest.getRequestedSessionId
+SPEC2_19;Forward JSP Render Request;getScheme;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getScheme must provide the same functionality as RenderRequest.getScheme
+SPEC2_19;Forward JSP Render Request;getServerName;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getServerName must provide the same functionality as RenderRequest.getServerName
+SPEC2_19;Forward JSP Render Request;getServerPort;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getServerPort must provide the same functionality as RenderRequest.getServerPort
+SPEC2_19;Forward JSP Render Request;getServletPath;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Render Request;getSession;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getSession must provide the same functionality as RenderRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward JSP Render Request;getUserPrincipal;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as RenderRequest.getUserPrincipal
+SPEC2_19;Forward JSP Render Request;isRequestedSessionIdValid;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as RenderRequest.isRequestedSessionIdValid
+SPEC2_19;Forward JSP Render Request;isSecure;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.isSecure must provide the same functionality as RenderRequest.isSecure
+SPEC2_19;Forward JSP Render Request;isUserInRole;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.isUserInRole must provide the same functionality as RenderRequest.isUserInRole
+SPEC2_19;Forward JSP Render Request;removeAttribute;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.removeAttribute must provide the same functionality as RenderRequest.removeAttribute
+SPEC2_19;Forward JSP Render Request;setAttribute;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletRequest.setAttribute must provide the same functionality as RenderRequest.setAttribute
+SPEC2_19;Forward JSP Render Response;containsHeader;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward JSP Render Response;encodeRedirectURL1;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward JSP Render Response;encodeRedirectUrl;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward JSP Render Response;encodeURL1;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.encodeURL must provide the same functionality as RenderResponse.encodeURL
+SPEC2_19;Forward JSP Render Response;encodeUrl;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.encodeUrl must provide the same functionality as RenderResponse.encodeURL
+SPEC2_19;Forward JSP Render Response;getBufferSize;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.getBufferSize must provide the same functionality as RenderResponse.getBufferSize
+SPEC2_19;Forward JSP Render Response;getCharacterEncoding;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.getCharacterEncoding must provide the same functionality as RenderResponse.getCharacterEncoding
+SPEC2_19;Forward JSP Render Response;getContentType;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.getContentType must provide the same functionality as RenderResponse.getContentType
+SPEC2_19;Forward JSP Render Response;getLocale;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.getLocale must provide the same functionality as RenderResponse.getLocale
+SPEC2_19;Forward JSP Render Response;isCommitted;TRUE;In a target jsp of a forward in the Render phase, the method HttpServletResponse.isCommitted must provide the same functionality as RenderResponse.isCommitted
+SPEC2_19;Forward JSP Resource Request;getAttribute;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getAttribute must provide the same functionality as ResourceRequest.getAttribute
+SPEC2_19;Forward JSP Resource Request;getAttributeNames;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as ResourceRequest.getAttributeNames
+SPEC2_19;Forward JSP Resource Request;getAuthType;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getAuthType must provide the same functionality as ResourceRequest.getAuthType
+SPEC2_19;Forward JSP Resource Request;getCharacterEncoding;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getCharacterEncoding must provide the same functionality as ResourceRequest.getCharacterEncoding
+SPEC2_19;Forward JSP Resource Request;getContentLength;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getContentLength must provide the same functionality as ResourceRequest.getContentLength
+SPEC2_19;Forward JSP Resource Request;getContentType;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getContentType must provide the same functionality as ResourceRequest.getContentType
+SPEC2_19;Forward JSP Resource Request;getContextPath;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getContextPath must provide the same functionality as ResourceRequest.getContextPath
+SPEC2_19;Forward JSP Resource Request;getCookies;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getCookies must provide the same functionality as ResourceRequest.getCookies
+SPEC2_19;Forward JSP Resource Request;getDateHeader;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by ResourceRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Resource Request;getHeader;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by ResourceRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Resource Request;getHeaderNames;TRUE;In a target jsp of a forward in the Resource phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by ResourceRequest.getPropertyNames
+SPEC2_19;Forward JSP Resource Request;getHeaders;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by ResourceRequest.getProperties for the corresponding header name
+SPEC2_19;Forward JSP Resource Request;getIntHeader;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by ResourceRequest.getProperty for the corresponding header name
+SPEC2_19;Forward JSP Resource Request;getLocalAddr;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward JSP Resource Request;getLocalName;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward JSP Resource Request;getLocalPort;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward JSP Resource Request;getLocale;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getLocale must provide the same functionality as ResourceRequest.getLocale
+SPEC2_19;Forward JSP Resource Request;getLocales;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getLocales must provide the same functionality as ResourceRequest.getLocales
+SPEC2_19;Forward JSP Resource Request;getMethod;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getMethod must provide the same functionality as ResourceRequest.getMethod
+SPEC2_19;Forward JSP Resource Request;getParameter;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getParameter must provide the same functionality as ResourceRequest.getParameter
+SPEC2_19;Forward JSP Resource Request;getParameterMap;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getParameterMap must provide the same functionality as ResourceRequest.getParameterMap
+SPEC2_19;Forward JSP Resource Request;getParameterNames;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getParameterNames must provide the same functionality as ResourceRequest.getParameterNames
+SPEC2_19;Forward JSP Resource Request;getParameterValues;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getParameterValues must provide the same functionality as ResourceRequest.getParameterValues
+SPEC2_19;Forward JSP Resource Request;getPathInfo;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Resource Request;getPathTranslated;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Resource Request;getProtocol;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward JSP Resource Request;getQueryString;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Resource Request;getRealPath;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward JSP Resource Request;getRemoteAddr;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward JSP Resource Request;getRemoteHost;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward JSP Resource Request;getRemotePort;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward JSP Resource Request;getRemoteUser;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as ResourceRequest.getRemoteUser
+SPEC2_19;Forward JSP Resource Request;getRequestDispatcher;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward JSP Resource Request;getRequestURI;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Resource Request;getRequestURL;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward JSP Resource Request;getRequestedSessionId;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as ResourceRequest.getRequestedSessionId
+SPEC2_19;Forward JSP Resource Request;getScheme;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getScheme must provide the same functionality as ResourceRequest.getScheme
+SPEC2_19;Forward JSP Resource Request;getServerName;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getServerName must provide the same functionality as ResourceRequest.getServerName
+SPEC2_19;Forward JSP Resource Request;getServerPort;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getServerPort must provide the same functionality as ResourceRequest.getServerPort
+SPEC2_19;Forward JSP Resource Request;getServletPath;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward JSP Resource Request;getSession;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getSession must provide the same functionality as ResourceRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward JSP Resource Request;getUserPrincipal;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as ResourceRequest.getUserPrincipal
+SPEC2_19;Forward JSP Resource Request;isRequestedSessionIdValid;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as ResourceRequest.isRequestedSessionIdValid
+SPEC2_19;Forward JSP Resource Request;isSecure;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.isSecure must provide the same functionality as ResourceRequest.isSecure
+SPEC2_19;Forward JSP Resource Request;isUserInRole;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.isUserInRole must provide the same functionality as ResourceRequest.isUserInRole
+SPEC2_19;Forward JSP Resource Request;removeAttribute;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.removeAttribute must provide the same functionality as ResourceRequest.removeAttribute
+SPEC2_19;Forward JSP Resource Request;setAttribute;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletRequest.setAttribute must provide the same functionality as ResourceRequest.setAttribute
+SPEC2_19;Forward JSP Resource Response;containsHeader;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward JSP Resource Response;encodeRedirectURL1;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward JSP Resource Response;encodeRedirectUrl;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward JSP Resource Response;encodeURL1;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.encodeURL must provide the same functionality as ResourceResponse.encodeURL
+SPEC2_19;Forward JSP Resource Response;encodeUrl;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.encodeUrl must provide the same functionality as ResourceResponse.encodeURL
+SPEC2_19;Forward JSP Resource Response;getBufferSize;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.getBufferSize must provide the same functionality as ResourceResponse.getBufferSize
+SPEC2_19;Forward JSP Resource Response;getCharacterEncoding;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.getCharacterEncoding must provide the same functionality as ResourceResponse.getCharacterEncoding
+SPEC2_19;Forward JSP Resource Response;getContentType;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.getContentType must provide the same functionality as ResourceResponse.getContentType
+SPEC2_19;Forward JSP Resource Response;getLocale;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.getLocale must provide the same functionality as ResourceResponse.getLocale
+SPEC2_19;Forward JSP Resource Response;isCommitted;TRUE;In a target jsp of a forward in the Resource phase, the method HttpServletResponse.isCommitted must provide the same functionality as ResourceResponse.isCommitted
+Dispatcher ReqResp Tests 2;;;;
+SPEC2_19;Forward Servlet Action Request;getAttribute;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getAttribute must provide the same functionality as ActionRequest.getAttribute
+SPEC2_19;Forward Servlet Action Request;getAttributeNames;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as ActionRequest.getAttributeNames
+SPEC2_19;Forward Servlet Action Request;getAuthType;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getAuthType must provide the same functionality as ActionRequest.getAuthType
+SPEC2_19;Forward Servlet Action Request;getCharacterEncoding;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getCharacterEncoding must provide the same functionality as ActionRequest.getCharacterEncoding
+SPEC2_19;Forward Servlet Action Request;getContentLength;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getContentLength must provide the same functionality as ActionRequest.getContentLength
+SPEC2_19;Forward Servlet Action Request;getContentType;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getContentType must provide the same functionality as ActionRequest.getContentType
+SPEC2_19;Forward Servlet Action Request;getContextPath;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getContextPath must provide the same functionality as ActionRequest.getContextPath
+SPEC2_19;Forward Servlet Action Request;getCookies;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getCookies must provide the same functionality as ActionRequest.getCookies
+SPEC2_19;Forward Servlet Action Request;getDateHeader;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Action Request;getHeader;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Action Request;getHeaderNames;TRUE;In a target servlet of a forward in the Action phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by ActionRequest.getPropertyNames
+SPEC2_19;Forward Servlet Action Request;getHeaders;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by ActionRequest.getProperties for the corresponding header name
+SPEC2_19;Forward Servlet Action Request;getIntHeader;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by ActionRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Action Request;getLocalAddr;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward Servlet Action Request;getLocalName;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward Servlet Action Request;getLocalPort;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward Servlet Action Request;getLocale;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getLocale must provide the same functionality as ActionRequest.getLocale
+SPEC2_19;Forward Servlet Action Request;getLocales;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getLocales must provide the same functionality as ActionRequest.getLocales
+SPEC2_19;Forward Servlet Action Request;getMethod;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getMethod must provide the same functionality as ActionRequest.getMethod
+SPEC2_19;Forward Servlet Action Request;getParameter;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getParameter must provide the same functionality as ActionRequest.getParameter
+SPEC2_19;Forward Servlet Action Request;getParameterMap;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getParameterMap must provide the same functionality as ActionRequest.getParameterMap
+SPEC2_19;Forward Servlet Action Request;getParameterNames;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getParameterNames must provide the same functionality as ActionRequest.getParameterNames
+SPEC2_19;Forward Servlet Action Request;getParameterValues;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getParameterValues must provide the same functionality as ActionRequest.getParameterValues
+SPEC2_19;Forward Servlet Action Request;getPathInfo;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Action Request;getPathTranslated;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Action Request;getProtocol;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward Servlet Action Request;getQueryString;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Action Request;getRealPath;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward Servlet Action Request;getRemoteAddr;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward Servlet Action Request;getRemoteHost;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward Servlet Action Request;getRemotePort;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward Servlet Action Request;getRemoteUser;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as ActionRequest.getRemoteUser
+SPEC2_19;Forward Servlet Action Request;getRequestDispatcher;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward Servlet Action Request;getRequestURI;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Action Request;getRequestURL;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward Servlet Action Request;getRequestedSessionId;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as ActionRequest.getRequestedSessionId
+SPEC2_19;Forward Servlet Action Request;getScheme;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getScheme must provide the same functionality as ActionRequest.getScheme
+SPEC2_19;Forward Servlet Action Request;getServerName;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getServerName must provide the same functionality as ActionRequest.getServerName
+SPEC2_19;Forward Servlet Action Request;getServerPort;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getServerPort must provide the same functionality as ActionRequest.getServerPort
+SPEC2_19;Forward Servlet Action Request;getServletPath;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Action Request;getSession;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getSession must provide the same functionality as ActionRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward Servlet Action Request;getUserPrincipal;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as ActionRequest.getUserPrincipal
+SPEC2_19;Forward Servlet Action Request;isRequestedSessionIdValid;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as ActionRequest.isRequestedSessionIdValid
+SPEC2_19;Forward Servlet Action Request;isSecure;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.isSecure must provide the same functionality as ActionRequest.isSecure
+SPEC2_19;Forward Servlet Action Request;isUserInRole;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.isUserInRole must provide the same functionality as ActionRequest.isUserInRole
+SPEC2_19;Forward Servlet Action Request;removeAttribute;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.removeAttribute must provide the same functionality as ActionRequest.removeAttribute
+SPEC2_19;Forward Servlet Action Request;setAttribute;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletRequest.setAttribute must provide the same functionality as ActionRequest.setAttribute
+SPEC2_19;Forward Servlet Action Response;containsHeader;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward Servlet Action Response;encodeRedirectURL1;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward Servlet Action Response;encodeRedirectUrl;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward Servlet Action Response;encodeURL1;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.encodeURL must provide the same functionality as ActionResponse.encodeURL
+SPEC2_19;Forward Servlet Action Response;encodeUrl;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.encodeUrl must provide the same functionality as ActionResponse.encodeURL
+SPEC2_19;Forward Servlet Action Response;getBufferSize;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.getBufferSize must return 0
+SPEC2_19;Forward Servlet Action Response;getCharacterEncoding;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.getCharacterEncoding must return null
+SPEC2_19;Forward Servlet Action Response;getContentType;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.getContentType must return null
+SPEC2_19;Forward Servlet Action Response;getLocale;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.getLocale must return null
+SPEC2_19;Forward Servlet Action Response;isCommitted;TRUE;In a target servlet of a forward in the Action phase, the method HttpServletResponse.isCommitted must return false
+SPEC2_19;Forward Servlet Event Request;getAttribute;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getAttribute must provide the same functionality as EventRequest.getAttribute
+SPEC2_19;Forward Servlet Event Request;getAttributeNames;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as EventRequest.getAttributeNames
+SPEC2_19;Forward Servlet Event Request;getAuthType;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getAuthType must provide the same functionality as EventRequest.getAuthType
+SPEC2_19;Forward Servlet Event Request;getCharacterEncoding;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getCharacterEncoding must return null
+SPEC2_19;Forward Servlet Event Request;getContentLength;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getContentLength must return 0
+SPEC2_19;Forward Servlet Event Request;getContentType;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getContentType must return null
+SPEC2_19;Forward Servlet Event Request;getContextPath;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getContextPath must provide the same functionality as EventRequest.getContextPath
+SPEC2_19;Forward Servlet Event Request;getCookies;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getCookies must provide the same functionality as EventRequest.getCookies
+SPEC2_19;Forward Servlet Event Request;getDateHeader;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Event Request;getHeader;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Event Request;getHeaderNames;TRUE;In a target servlet of a forward in the Event phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by EventRequest.getPropertyNames
+SPEC2_19;Forward Servlet Event Request;getHeaders;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by EventRequest.getProperties for the corresponding header name
+SPEC2_19;Forward Servlet Event Request;getInputStream;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getInputStream must return null
+SPEC2_19;Forward Servlet Event Request;getIntHeader;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by EventRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Event Request;getLocalAddr;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward Servlet Event Request;getLocalName;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward Servlet Event Request;getLocalPort;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward Servlet Event Request;getLocale;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getLocale must provide the same functionality as EventRequest.getLocale
+SPEC2_19;Forward Servlet Event Request;getLocales;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getLocales must provide the same functionality as EventRequest.getLocales
+SPEC2_19;Forward Servlet Event Request;getMethod;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getMethod must provide the same functionality as EventRequest.getMethod
+SPEC2_19;Forward Servlet Event Request;getParameter;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getParameter must provide the same functionality as EventRequest.getParameter
+SPEC2_19;Forward Servlet Event Request;getParameterMap;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getParameterMap must provide the same functionality as EventRequest.getParameterMap
+SPEC2_19;Forward Servlet Event Request;getParameterNames;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getParameterNames must provide the same functionality as EventRequest.getParameterNames
+SPEC2_19;Forward Servlet Event Request;getParameterValues;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getParameterValues must provide the same functionality as EventRequest.getParameterValues
+SPEC2_19;Forward Servlet Event Request;getPathInfo;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Event Request;getPathTranslated;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Event Request;getProtocol;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward Servlet Event Request;getQueryString;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Event Request;getReader;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getReader must return null
+SPEC2_19;Forward Servlet Event Request;getRealPath;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward Servlet Event Request;getRemoteAddr;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward Servlet Event Request;getRemoteHost;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward Servlet Event Request;getRemotePort;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward Servlet Event Request;getRemoteUser;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as EventRequest.getRemoteUser
+SPEC2_19;Forward Servlet Event Request;getRequestDispatcher;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward Servlet Event Request;getRequestURI;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Event Request;getRequestURL;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward Servlet Event Request;getRequestedSessionId;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as EventRequest.getRequestedSessionId
+SPEC2_19;Forward Servlet Event Request;getScheme;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getScheme must provide the same functionality as EventRequest.getScheme
+SPEC2_19;Forward Servlet Event Request;getServerName;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getServerName must provide the same functionality as EventRequest.getServerName
+SPEC2_19;Forward Servlet Event Request;getServerPort;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getServerPort must provide the same functionality as EventRequest.getServerPort
+SPEC2_19;Forward Servlet Event Request;getServletPath;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Event Request;getSession;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getSession must provide the same functionality as EventRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward Servlet Event Request;getUserPrincipal;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as EventRequest.getUserPrincipal
+SPEC2_19;Forward Servlet Event Request;isRequestedSessionIdValid;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as EventRequest.isRequestedSessionIdValid
+SPEC2_19;Forward Servlet Event Request;isSecure;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.isSecure must provide the same functionality as EventRequest.isSecure
+SPEC2_19;Forward Servlet Event Request;isUserInRole;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.isUserInRole must provide the same functionality as EventRequest.isUserInRole
+SPEC2_19;Forward Servlet Event Request;removeAttribute;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.removeAttribute must provide the same functionality as EventRequest.removeAttribute
+SPEC2_19;Forward Servlet Event Request;setAttribute;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletRequest.setAttribute must provide the same functionality as EventRequest.setAttribute
+SPEC2_19;Forward Servlet Event Response;containsHeader;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward Servlet Event Response;encodeRedirectURL1;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward Servlet Event Response;encodeRedirectUrl;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward Servlet Event Response;encodeURL1;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.encodeURL must provide the same functionality as EventResponse.encodeURL
+SPEC2_19;Forward Servlet Event Response;encodeUrl;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.encodeUrl must provide the same functionality as EventResponse.encodeURL
+SPEC2_19;Forward Servlet Event Response;getBufferSize;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.getBufferSize must return 0
+SPEC2_19;Forward Servlet Event Response;getCharacterEncoding;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.getCharacterEncoding must return null
+SPEC2_19;Forward Servlet Event Response;getContentType;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.getContentType must return null
+SPEC2_19;Forward Servlet Event Response;getLocale;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.getLocale must return null
+SPEC2_19;Forward Servlet Event Response;isCommitted;TRUE;In a target servlet of a forward in the Event phase, the method HttpServletResponse.isCommitted must return false
+SPEC2_19;Forward Servlet Render Request;getAttribute;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getAttribute must provide the same functionality as RenderRequest.getAttribute
+SPEC2_19;Forward Servlet Render Request;getAttributeNames;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as RenderRequest.getAttributeNames
+SPEC2_19;Forward Servlet Render Request;getAuthType;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getAuthType must provide the same functionality as RenderRequest.getAuthType
+SPEC2_19;Forward Servlet Render Request;getCharacterEncoding;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getCharacterEncoding must return null
+SPEC2_19;Forward Servlet Render Request;getContentLength;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getContentLength must return 0
+SPEC2_19;Forward Servlet Render Request;getContentType;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getContentType must return null
+SPEC2_19;Forward Servlet Render Request;getContextPath;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getContextPath must provide the same functionality as RenderRequest.getContextPath
+SPEC2_19;Forward Servlet Render Request;getCookies;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getCookies must provide the same functionality as RenderRequest.getCookies
+SPEC2_19;Forward Servlet Render Request;getDateHeader;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getDateHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Render Request;getHeader;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Render Request;getHeaderNames;TRUE;In a target servlet of a forward in the Render phase, the Enumeration returned by HttpServletRequest.getHeaderNames must be contained in the Enumeration returned by RenderRequest.getPropertyNames
+SPEC2_19;Forward Servlet Render Request;getHeaders;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getHeaders must return a value corresponding to that returned by RenderRequest.getProperties for the corresponding header name
+SPEC2_19;Forward Servlet Render Request;getInputStream;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getInputStream must return null
+SPEC2_19;Forward Servlet Render Request;getIntHeader;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getIntHeader must return a value corresponding to that returned by RenderRequest.getProperty for the corresponding header name
+SPEC2_19;Forward Servlet Render Request;getLocalAddr;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getLocalAddr must return null
+SPEC2_19;Forward Servlet Render Request;getLocalName;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getLocalName must return null
+SPEC2_19;Forward Servlet Render Request;getLocalPort;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getLocalPort must return 0
+SPEC2_19;Forward Servlet Render Request;getLocale;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getLocale must provide the same functionality as RenderRequest.getLocale
+SPEC2_19;Forward Servlet Render Request;getLocales;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getLocales must provide the same functionality as RenderRequest.getLocales
+SPEC2_19;Forward Servlet Render Request;getMethod;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getMethod must return "GET"
+SPEC2_19;Forward Servlet Render Request;getParameter;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getParameter must provide the same functionality as RenderRequest.getParameter
+SPEC2_19;Forward Servlet Render Request;getParameterMap;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getParameterMap must provide the same functionality as RenderRequest.getParameterMap
+SPEC2_19;Forward Servlet Render Request;getParameterNames;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getParameterNames must provide the same functionality as RenderRequest.getParameterNames
+SPEC2_19;Forward Servlet Render Request;getParameterValues;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getParameterValues must provide the same functionality as RenderRequest.getParameterValues
+SPEC2_19;Forward Servlet Render Request;getPathInfo;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getPathInfo must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Render Request;getPathTranslated;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getPathTranslated must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Render Request;getProtocol;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getProtocol must return "HTTP/1.1"
+SPEC2_19;Forward Servlet Render Request;getQueryString;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getQueryString must a value corresponding to the query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Render Request;getReader;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getReader must return null
+SPEC2_19;Forward Servlet Render Request;getRealPath;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRealPath must return null
+SPEC2_19;Forward Servlet Render Request;getRemoteAddr;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRemoteAddr must return null
+SPEC2_19;Forward Servlet Render Request;getRemoteHost;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRemoteHost must return null
+SPEC2_19;Forward Servlet Render Request;getRemotePort;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRemotePort must return 0
+SPEC2_19;Forward Servlet Render Request;getRemoteUser;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRemoteUser must provide the same functionality as RenderRequest.getRemoteUser
+SPEC2_19;Forward Servlet Render Request;getRequestDispatcher;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRequestDispatcher must provide functionality as defined in the servlet specification
+SPEC2_19;Forward Servlet Render Request;getRequestURI;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRequestURI must a value corresponding to the path and query string information used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Render Request;getRequestURL;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRequestURL must return null
+SPEC2_19;Forward Servlet Render Request;getRequestedSessionId;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getRequestedSessionId must provide the same functionality as RenderRequest.getRequestedSessionId
+SPEC2_19;Forward Servlet Render Request;getScheme;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getScheme must provide the same functionality as RenderRequest.getScheme
+SPEC2_19;Forward Servlet Render Request;getServerName;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getServerName must provide the same functionality as RenderRequest.getServerName
+SPEC2_19;Forward Servlet Render Request;getServerPort;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getServerPort must provide the same functionality as RenderRequest.getServerPort
+SPEC2_19;Forward Servlet Render Request;getServletPath;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getServletPath must a value corresponding to the path used to obtain the PortletRequestDispatcher
+SPEC2_19;Forward Servlet Render Request;getSession;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getSession must provide the same functionality as RenderRequest.getPortletSession(APPLICATION_SCOPE)
+SPEC2_19;Forward Servlet Render Request;getUserPrincipal;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.getUserPrincipal must provide the same functionality as RenderRequest.getUserPrincipal
+SPEC2_19;Forward Servlet Render Request;isRequestedSessionIdValid;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.isRequestedSessionIdValid must provide the same functionality as RenderRequest.isRequestedSessionIdValid
+SPEC2_19;Forward Servlet Render Request;isSecure;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.isSecure must provide the same functionality as RenderRequest.isSecure
+SPEC2_19;Forward Servlet Render Request;isUserInRole;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.isUserInRole must provide the same functionality as RenderRequest.isUserInRole
+SPEC2_19;Forward Servlet Render Request;removeAttribute;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.removeAttribute must provide the same functionality as RenderRequest.removeAttribute
+SPEC2_19;Forward Servlet Render Request;setAttribute;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletRequest.setAttribute must provide the same functionality as RenderRequest.setAttribute
+SPEC2_19;Forward Servlet Render Response;containsHeader;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.containsHeader must return false
+SPEC2_19;Forward Servlet Render Response;encodeRedirectURL1;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.encodeRedirectURL must return null
+SPEC2_19;Forward Servlet Render Response;encodeRedirectUrl;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.encodeRedirectUrl must return null
+SPEC2_19;Forward Servlet Render Response;encodeURL1;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.encodeURL must provide the same functionality as RenderResponse.encodeURL
+SPEC2_19;Forward Servlet Render Response;encodeUrl;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.encodeUrl must provide the same functionality as RenderResponse.encodeURL
+SPEC2_19;Forward Servlet Render Response;getBufferSize;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.getBufferSize must provide the same functionality as RenderResponse.getBufferSize
+SPEC2_19;Forward Servlet Render Response;getCharacterEncoding;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.getCharacterEncoding must provide the same functionality as RenderResponse.getCharacterEncoding
+SPEC2_19;Forward Servlet Render Response;getContentType;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.getContentType must provide the same functionality as RenderResponse.getContentType
+SPEC2_19;Forward Servlet Render Response;getLocale;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.getLocale must provide the same functionality as RenderResponse.getLocale
+SPEC2_19;Forward Servlet Render Response;isCommitted;TRUE;In a target servlet of a forward in the Render phase, the method HttpServletResponse.isCommitted must provide the same functionality as RenderResponse.isCommitted
+SPEC2_19;Forward Servlet Resource Request;getAttribute;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getAttribute must provide the same functionality as ResourceRequest.getAttribute
+SPEC2_19;Forward Servlet Resource Request;getAttributeNames;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getAttributeNames must provide the same functionality as ResourceRequest.getAttributeNames
+SPEC2_19;Forward Servlet Resource Request;getAuthType;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getAuthType must provide the same functionality as ResourceRequest.getAuthType
+SPEC2_19;Forward Servlet Resource Request;getCharacterEncoding;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getCharacterEncoding must provide the same functionality as ResourceRequest.getCharacterEncoding
+SPEC2_19;Forward Servlet Resource Request;getContentLength;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getContentLength must provide the same functionality as ResourceRequest.getContentLength
+SPEC2_19;Forward Servlet Resource Request;getContentType;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getContentType must provide the same functionality as ResourceRequest.getContentType
+SPEC2_19;Forward Servlet Resource Request;getContextPath;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getContextPath must provide the same functionality as ResourceRequest.getContextPath
+SPEC2_19;Forward Servlet Resource Request;getCookies;TRUE;In a target servlet of a forward in the Resource phase, the method HttpServletRequest.getCookies must provide
<TRUNCATED>
[29/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Action.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Action.java
deleted file mode 100644
index e19c7e9..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Action.java
+++ /dev/null
@@ -1,1895 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_PortletRequest_Action_event
- *
- */
-public class RequestTests_PortletRequest_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISWINDOWSTATEALLOWED1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISWINDOWSTATEALLOWED2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISPORTLETMODEALLOWED1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISPORTLETMODEALLOWED2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETMODE);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETWINDOWSTATE);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPREFERENCES);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONA1);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONA2);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB1);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB2);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB3);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTLETSESSIONB4);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY1);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY2);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTYNAMES1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPROPERTYNAMES2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETAUTHTYPE1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETAUTHTYPE2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCONTEXTPATH3);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREMOTEUSER1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREMOTEUSER2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETUSERPRINCIPAL1);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETUSERPRINCIPAL2);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISUSERINROLE3);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE1);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE2);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTENAMES1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETATTRIBUTENAMES2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER1);
- /* TODO: implement test */
- tr54.appendTcDetail("Not implemented.");
- tr54.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER2);
- /* TODO: implement test */
- tr55.appendTcDetail("Not implemented.");
- tr55.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER3);
- /* TODO: implement test */
- tr56.appendTcDetail("Not implemented.");
- tr56.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER4);
- /* TODO: implement test */
- tr57.appendTcDetail("Not implemented.");
- tr57.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
- tr58.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERNAMES1);
- /* TODO: implement test */
- tr59.appendTcDetail("Not implemented.");
- tr59.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERNAMES2);
- /* TODO: implement test */
- tr60.appendTcDetail("Not implemented.");
- tr60.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES1);
- /* TODO: implement test */
- tr61.appendTcDetail("Not implemented.");
- tr61.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES2);
- /* TODO: implement test */
- tr62.appendTcDetail("Not implemented.");
- tr62.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES3);
- /* TODO: implement test */
- tr63.appendTcDetail("Not implemented.");
- tr63.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
- tr64.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr65.appendTcDetail("Not implemented.");
- tr65.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr66.appendTcDetail("Not implemented.");
- tr66.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr67.appendTcDetail("Not implemented.");
- tr67.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISSECURE1);
- /* TODO: implement test */
- tr68.appendTcDetail("Not implemented.");
- tr68.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISSECURE2);
- /* TODO: implement test */
- tr69.appendTcDetail("Not implemented.");
- tr69.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE1);
- /* TODO: implement test */
- tr70.appendTcDetail("Not implemented.");
- tr70.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE2);
- /* TODO: implement test */
- tr71.appendTcDetail("Not implemented.");
- tr71.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
- tr72.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the request" */
- TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_REMOVEATTRIBUTE1);
- /* TODO: implement test */
- tr73.appendTcDetail("Not implemented.");
- tr73.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
- tr74.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRequestedSessionId1 */
- /* Details: "Method getRequestedSessionId(): Returns the session ID */
- /* indicated in the client request" */
- TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREQUESTEDSESSIONID1);
- /* TODO: implement test */
- tr75.appendTcDetail("Not implemented.");
- tr75.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRequestedSessionId2 */
- /* Details: "Method getRequestedSessionId(): Returns null if no */
- /* session ID was indicated in the client request" */
- TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETREQUESTEDSESSIONID2);
- /* TODO: implement test */
- tr76.appendTcDetail("Not implemented.");
- tr76.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid1 */
- /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
- /* session ID is valid" */
- TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISREQUESTEDSESSIONIDVALID1);
- /* TODO: implement test */
- tr77.appendTcDetail("Not implemented.");
- tr77.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid2 */
- /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
- /* session ID is not valid" */
- TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_ISREQUESTEDSESSIONIDVALID2);
- /* TODO: implement test */
- tr78.appendTcDetail("Not implemented.");
- tr78.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getResponseContentType1 */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* representing the portal preferred content type for the response if */
- /* the content type is defined in the portlet descriptor " */
- TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPE1);
- /* TODO: implement test */
- tr79.appendTcDetail("Not implemented.");
- tr79.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getResponseContentType2 */
- /* Details: "Method getResponseContentType(): Returns an empty */
- /* Enumeration if the content type is not defined in the portlet */
- /* descriptor" */
- TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPE2);
- /* TODO: implement test */
- tr80.appendTcDetail("Not implemented.");
- tr80.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getResponseContentTypes1 */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object representing */
- /* the portal preferred content types for the response if the content */
- /* types are defined in the portlet descriptor" */
- TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPES1);
- /* TODO: implement test */
- tr81.appendTcDetail("Not implemented.");
- tr81.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getResponseContentTypes2 */
- /* Details: "Method getResponseContentTypes(): Returns an empty */
- /* Enumeration if the content types are not defined in the portlet */
- /* descriptor" */
- TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETRESPONSECONTENTTYPES2);
- /* TODO: implement test */
- tr82.appendTcDetail("Not implemented.");
- tr82.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale object */
- /* representing the preferred Locale for the response" */
- TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETLOCALE);
- /* TODO: implement test */
- tr83.appendTcDetail("Not implemented.");
- tr83.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getLocales */
- /* Details: "Method getLocales(): Returns an */
- /* java.util.Enumeration<java.util.Locale> of the Locales in */
- /* which the portal will accept content" */
- TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETLOCALES);
- /* TODO: implement test */
- tr84.appendTcDetail("Not implemented.");
- tr84.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getScheme */
- /* Details: "Method getScheme(): Returns a String value representing */
- /* the scheme name for the request" */
- TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSCHEME);
- /* TODO: implement test */
- tr85.appendTcDetail("Not implemented.");
- tr85.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getServerName */
- /* Details: "Method getServerName(): Returns a String value */
- /* representing the host name for the request" */
- TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSERVERNAME);
- /* TODO: implement test */
- tr86.appendTcDetail("Not implemented.");
- tr86.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getServerPort */
- /* Details: "Method getServerPort(): Returns an int value */
- /* representing the port number for the request" */
- TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETSERVERPORT);
- /* TODO: implement test */
- tr87.appendTcDetail("Not implemented.");
- tr87.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getWindowID */
- /* Details: "Method getWindowID(): Returns a String value */
- /* representing the portlet window ID" */
- TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETWINDOWID);
- /* TODO: implement test */
- tr88.appendTcDetail("Not implemented.");
- tr88.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getCookies1 */
- /* Details: "Method getCookies(): Returns a */
- /* javax.servlet.http.Cookie[] array containing the cookies for this */
- /* request" */
- TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCOOKIES1);
- /* TODO: implement test */
- tr89.appendTcDetail("Not implemented.");
- tr89.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getCookies2 */
- /* Details: "Method getCookies(): Returns null if no cookies are */
- /* present" */
- TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETCOOKIES2);
- /* TODO: implement test */
- tr90.appendTcDetail("Not implemented.");
- tr90.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPrivateParameterMap1 */
- /* Details: "Method getPrivateParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the private parameter names and values if available" */
- TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP1);
- /* TODO: implement test */
- tr91.appendTcDetail("Not implemented.");
- tr91.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPrivateParameterMap2 */
- /* Details: "Method getPrivateParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP2);
- /* TODO: implement test */
- tr92.appendTcDetail("Not implemented.");
- tr92.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPrivateParameterMap3 */
- /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
- /* no private parameters exist" */
- TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPRIVATEPARAMETERMAP3);
- /* TODO: implement test */
- tr93.appendTcDetail("Not implemented.");
- tr93.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPublicParameterMap1 */
- /* Details: "Method getPublicParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the public parameter names and values if available" */
- TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP1);
- /* TODO: implement test */
- tr94.appendTcDetail("Not implemented.");
- tr94.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPublicParameterMap2 */
- /* Details: "Method getPublicParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP2);
- /* TODO: implement test */
- tr95.appendTcDetail("Not implemented.");
- tr95.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPublicParameterMap3 */
- /* Details: "Method getPublicParameterMap(): Returns an empty map if */
- /* no public parameters exist" */
- TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_GETPUBLICPARAMETERMAP3);
- /* TODO: implement test */
- tr96.appendTcDetail("Not implemented.");
- tr96.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Action_exists */
- /* Details: "Method exists(): The P3PUserInfos exist as a public */
- /* static enum" */
- TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_ACTION_EXISTS);
- /* TODO: implement test */
- tr97.appendTcDetail("Not implemented.");
- tr97.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldUSER_INFO", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldCCPP_PROFILE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldBASIC_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldFORM_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldCLIENT_CERT_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldDIGEST_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldACTION_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldEVENT_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldRENDER_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldRESOURCE_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldLIFECYCLE_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldRENDER_PART", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldRENDER_HEADERS", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldRENDER_MARKUP", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_fieldACTION_SCOPE_ID", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isWindowStateAllowed1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isWindowStateAllowed2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isPortletModeAllowed1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isPortletModeAllowed2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletMode", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getWindowState", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPreferences", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortletSessionB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperty1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperty2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperty3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperties1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperties2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getProperties3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPropertyNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPropertyNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getPortalContext", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAuthType1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAuthType2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getContextPath1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getContextPath2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getContextPath3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getRemoteUser1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getRemoteUser2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getUserPrincipal1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getUserPrincipal2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isUserInRole1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isUserInRole2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isUserInRole3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAttribute1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAttribute2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAttribute3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAttributeNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getAttributeNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameter1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameter2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameter3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameter4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameter5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_getParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isSecure1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_isSecure2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_setAttribute1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Action_setAttribute2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Action_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletR
<TRUNCATED>
[11/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent.java
new file mode 100644
index 0000000..ecd6ada
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent.java
@@ -0,0 +1,643 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_StateAwareResponse_ApiEvent_event
+ *
+ */
+public class ResponseTests_StateAwareResponse_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_StateAwareResponse_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "ResponseTests_StateAwareResponse_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portlet cannot switch to the specified */
+ /* WindowState" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portlet cannot switch to the specified */
+ /* PortletMode" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Sets the */
+ /* render parameter map to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Public render */
+ /* parameters can be set through the map" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters3 */
+ /* Details: "Method setRenderParameters(java.util.Map): Private */
+ /* render parameters can be set through the map" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters4 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing private render parameters not contained in the specified */
+ /* input map are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters5 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing public render parameters not contained in the specified */
+ /* input map remain unchanged" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters6 */
+ /* Details: "Method setRenderParameters(java.util.Map): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters7 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters8 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters8", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters9 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters9", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters10 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters10", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters11 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters11", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters12 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters12", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA1 */
+ /* Details: "Method setRenderParameter(String, String): Sets the */
+ /* parameter value for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA2 */
+ /* Details: "Method setRenderParameter(String, String): A private */
+ /* parameter can be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA3 */
+ /* Details: "Method setRenderParameter(String, String): A public */
+ /* parameter can be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA4 */
+ /* Details: "Method setRenderParameter(String, String): All */
+ /* previously existing values for the specified name are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA5 */
+ /* Details: "Method setRenderParameter(String, String): If the value */
+ /* is null, all values for the specified name are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA6 */
+ /* Details: "Method setRenderParameter(String, String): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA7 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA8 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA8", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB1 */
+ /* Details: "Method setRenderParameter(String, String[]): Sets the */
+ /* parameter values for the specified name." */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB2 */
+ /* Details: "Method setRenderParameter(String, String[]): All */
+ /* existing values are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB3 */
+ /* Details: "Method setRenderParameter(String, String[]): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB4 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB5 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the values array is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB6 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA1 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Publishes an event with the specified name */
+ /* and payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA2 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the name */
+ /* is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA3 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value is not serializable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventA3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA4 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value does not have a valid JAXB binding" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventA4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA5 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value object type is not as specified in the deployment */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventA5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB1 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
+ /* an event with the specified name and payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB2 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB3 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value is not serializable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB4 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value does not have a valid JAXB */
+ /* binding" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB5 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value object type is not as */
+ /* specified in the deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_setEventB5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Returns a map of the */
+ /* render parameters currently set on the response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains public render parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap3 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains private render parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap4 */
+ /* Details: "Method getRenderParameterMap(): An empty map is returned */
+ /* if no parameters have been set " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the current PortletMode */
+ /* for the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if no PortletMode */
+ /* has been set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the current WindowState */
+ /* for the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if no WindowState */
+ /* has been set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
new file mode 100644
index 0000000..28dfb77
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
@@ -0,0 +1,544 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_StateAwareResponse_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to the specified value" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portlet cannot switch to the specified */
+ /* WindowState" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETWINDOWSTATE3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to the specified value" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETPORTLETMODE1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portlet cannot switch to the specified */
+ /* PortletMode" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETPORTLETMODE2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETPORTLETMODE3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Sets the */
+ /* render parameter map to the specified value" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Public render */
+ /* parameters can be set through the map" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters3 */
+ /* Details: "Method setRenderParameters(java.util.Map): Private */
+ /* render parameters can be set through the map" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters4 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing private render parameters not contained in the specified */
+ /* input map are removed" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS4);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters5 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing public render parameters not contained in the specified */
+ /* input map remain unchanged" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS5);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters6 */
+ /* Details: "Method setRenderParameters(java.util.Map): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS6);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters7 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS7);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters8 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS8);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters9 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS9);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters10 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS10);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters11 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS11);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters12 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS12);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA1 */
+ /* Details: "Method setRenderParameter(String, String): Sets the */
+ /* parameter value for the specified name" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA1);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA2 */
+ /* Details: "Method setRenderParameter(String, String): A private */
+ /* parameter can be set" */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA2);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA3 */
+ /* Details: "Method setRenderParameter(String, String): A public */
+ /* parameter can be set" */
+ TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA3);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA4 */
+ /* Details: "Method setRenderParameter(String, String): All */
+ /* previously existing values for the specified name are removed" */
+ TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA4);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA5 */
+ /* Details: "Method setRenderParameter(String, String): If the value */
+ /* is null, all values for the specified name are removed" */
+ TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA5);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA6 */
+ /* Details: "Method setRenderParameter(String, String): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA6);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA7 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA7);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA8 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA8);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB1 */
+ /* Details: "Method setRenderParameter(String, String[]): Sets the */
+ /* parameter values for the specified name." */
+ TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB1);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB2 */
+ /* Details: "Method setRenderParameter(String, String[]): All */
+ /* existing values are removed" */
+ TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB2);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB3 */
+ /* Details: "Method setRenderParameter(String, String[]): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB3);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB4 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB4);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB5 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the values array is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB5);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB6 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB6);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA1 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Publishes an event with the specified name */
+ /* and payload" */
+ TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA1);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA2 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the name */
+ /* is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA2);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA3 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value is not serializable" */
+ TestResult tr34 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA3);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA4 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value does not have a valid JAXB binding" */
+ TestResult tr35 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA4);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA5 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value object type is not as specified in the deployment */
+ /* descriptor" */
+ TestResult tr36 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA5);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB1 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
+ /* an event with the specified name and payload" */
+ TestResult tr37 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB2 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB3 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value is not serializable" */
+ TestResult tr39 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB3);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB4 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value does not have a valid JAXB */
+ /* binding" */
+ TestResult tr40 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB4);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB5 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value object type is not as */
+ /* specified in the deployment descriptor" */
+ TestResult tr41 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB5);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Returns a map of the */
+ /* render parameters currently set on the response" */
+ TestResult tr42 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains public render parameters" */
+ TestResult tr43 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap3 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains private render parameters" */
+ TestResult tr44 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETRENDERPARAMETERMAP3);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getRenderParameterMap4 */
+ /* Details: "Method getRenderParameterMap(): An empty map is returned */
+ /* if no parameters have been set " */
+ TestResult tr45 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETRENDERPARAMETERMAP4);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the current PortletMode */
+ /* for the portlet" */
+ TestResult tr46 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETPORTLETMODE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if no PortletMode */
+ /* has been set" */
+ TestResult tr47 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETPORTLETMODE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the current WindowState */
+ /* for the portlet" */
+ TestResult tr48 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if no WindowState */
+ /* has been set" */
+ TestResult tr49 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_GETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ TestResult tr50 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_REMOVEPUBLICRENDERPARAMETER1);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_REMOVEPUBLICRENDERPARAMETER2);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>ResponseTests_StateAwareResponse_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
[22/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event_event.java
deleted file mode 100644
index b7cc710..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event_event.java
+++ /dev/null
@@ -1,901 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class RequestTests_PortletRequest_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDUSER_INFO);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDCCPP_PROFILE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDBASIC_AUTH);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDFORM_AUTH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDCLIENT_CERT_AUTH);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDDIGEST_AUTH);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDACTION_PHASE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDEVENT_PHASE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_PHASE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRESOURCE_PHASE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDLIFECYCLE_PHASE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_PART);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_HEADERS);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDRENDER_MARKUP);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_FIELDACTION_SCOPE_ID);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISWINDOWSTATEALLOWED1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISWINDOWSTATEALLOWED2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISPORTLETMODEALLOWED1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISPORTLETMODEALLOWED2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETMODE);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETWINDOWSTATE);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPREFERENCES);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONA1);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONA2);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB1);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB2);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB3);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTLETSESSIONB4);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY1);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY2);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTY3);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTIES3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTYNAMES1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPROPERTYNAMES2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETAUTHTYPE1);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETAUTHTYPE2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCONTEXTPATH3);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREMOTEUSER1);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREMOTEUSER2);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETUSERPRINCIPAL1);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETUSERPRINCIPAL2);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE1);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE2);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISUSERINROLE3);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE1);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE2);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTE3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTENAMES1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETATTRIBUTENAMES2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER1);
- /* TODO: implement test */
- tr54.appendTcDetail("Not implemented.");
- tr54.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER2);
- /* TODO: implement test */
- tr55.appendTcDetail("Not implemented.");
- tr55.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER3);
- /* TODO: implement test */
- tr56.appendTcDetail("Not implemented.");
- tr56.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER4);
- /* TODO: implement test */
- tr57.appendTcDetail("Not implemented.");
- tr57.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETER5);
- /* TODO: implement test */
- tr58.appendTcDetail("Not implemented.");
- tr58.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERNAMES1);
- /* TODO: implement test */
- tr59.appendTcDetail("Not implemented.");
- tr59.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERNAMES2);
- /* TODO: implement test */
- tr60.appendTcDetail("Not implemented.");
- tr60.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES1);
- /* TODO: implement test */
- tr61.appendTcDetail("Not implemented.");
- tr61.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES2);
- /* TODO: implement test */
- tr62.appendTcDetail("Not implemented.");
- tr62.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES3);
- /* TODO: implement test */
- tr63.appendTcDetail("Not implemented.");
- tr63.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERVALUES4);
- /* TODO: implement test */
- tr64.appendTcDetail("Not implemented.");
- tr64.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP1);
- /* TODO: implement test */
- tr65.appendTcDetail("Not implemented.");
- tr65.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP2);
- /* TODO: implement test */
- tr66.appendTcDetail("Not implemented.");
- tr66.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPARAMETERMAP3);
- /* TODO: implement test */
- tr67.appendTcDetail("Not implemented.");
- tr67.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISSECURE1);
- /* TODO: implement test */
- tr68.appendTcDetail("Not implemented.");
- tr68.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISSECURE2);
- /* TODO: implement test */
- tr69.appendTcDetail("Not implemented.");
- tr69.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE1);
- /* TODO: implement test */
- tr70.appendTcDetail("Not implemented.");
- tr70.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE2);
- /* TODO: implement test */
- tr71.appendTcDetail("Not implemented.");
- tr71.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_SETATTRIBUTE3);
- /* TODO: implement test */
- tr72.appendTcDetail("Not implemented.");
- tr72.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the request" */
- TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_REMOVEATTRIBUTE1);
- /* TODO: implement test */
- tr73.appendTcDetail("Not implemented.");
- tr73.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr74.appendTcDetail("Not implemented.");
- tr74.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRequestedSessionId1 */
- /* Details: "Method getRequestedSessionId(): Returns the session ID */
- /* indicated in the client request" */
- TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREQUESTEDSESSIONID1);
- /* TODO: implement test */
- tr75.appendTcDetail("Not implemented.");
- tr75.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRequestedSessionId2 */
- /* Details: "Method getRequestedSessionId(): Returns null if no */
- /* session ID was indicated in the client request" */
- TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETREQUESTEDSESSIONID2);
- /* TODO: implement test */
- tr76.appendTcDetail("Not implemented.");
- tr76.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid1 */
- /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
- /* session ID is valid" */
- TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISREQUESTEDSESSIONIDVALID1);
- /* TODO: implement test */
- tr77.appendTcDetail("Not implemented.");
- tr77.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid2 */
- /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
- /* session ID is not valid" */
- TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_ISREQUESTEDSESSIONIDVALID2);
- /* TODO: implement test */
- tr78.appendTcDetail("Not implemented.");
- tr78.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentType1 */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* representing the portal preferred content type for the response if */
- /* the content type is defined in the portlet descriptor " */
- TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPE1);
- /* TODO: implement test */
- tr79.appendTcDetail("Not implemented.");
- tr79.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentType2 */
- /* Details: "Method getResponseContentType(): Returns an empty */
- /* Enumeration if the content type is not defined in the portlet */
- /* descriptor" */
- TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPE2);
- /* TODO: implement test */
- tr80.appendTcDetail("Not implemented.");
- tr80.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentTypes1 */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object representing */
- /* the portal preferred content types for the response if the content */
- /* types are defined in the portlet descriptor" */
- TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPES1);
- /* TODO: implement test */
- tr81.appendTcDetail("Not implemented.");
- tr81.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentTypes2 */
- /* Details: "Method getResponseContentTypes(): Returns an empty */
- /* Enumeration if the content types are not defined in the portlet */
- /* descriptor" */
- TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETRESPONSECONTENTTYPES2);
- /* TODO: implement test */
- tr82.appendTcDetail("Not implemented.");
- tr82.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale object */
- /* representing the preferred Locale for the response" */
- TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETLOCALE);
- /* TODO: implement test */
- tr83.appendTcDetail("Not implemented.");
- tr83.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getLocales */
- /* Details: "Method getLocales(): Returns an */
- /* java.util.Enumeration<java.util.Locale> of the Locales in */
- /* which the portal will accept content" */
- TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETLOCALES);
- /* TODO: implement test */
- tr84.appendTcDetail("Not implemented.");
- tr84.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getScheme */
- /* Details: "Method getScheme(): Returns a String value representing */
- /* the scheme name for the request" */
- TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSCHEME);
- /* TODO: implement test */
- tr85.appendTcDetail("Not implemented.");
- tr85.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getServerName */
- /* Details: "Method getServerName(): Returns a String value */
- /* representing the host name for the request" */
- TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSERVERNAME);
- /* TODO: implement test */
- tr86.appendTcDetail("Not implemented.");
- tr86.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getServerPort */
- /* Details: "Method getServerPort(): Returns an int value */
- /* representing the port number for the request" */
- TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETSERVERPORT);
- /* TODO: implement test */
- tr87.appendTcDetail("Not implemented.");
- tr87.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getWindowID */
- /* Details: "Method getWindowID(): Returns a String value */
- /* representing the portlet window ID" */
- TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETWINDOWID);
- /* TODO: implement test */
- tr88.appendTcDetail("Not implemented.");
- tr88.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getCookies1 */
- /* Details: "Method getCookies(): Returns a */
- /* javax.servlet.http.Cookie[] array containing the cookies for this */
- /* request" */
- TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCOOKIES1);
- /* TODO: implement test */
- tr89.appendTcDetail("Not implemented.");
- tr89.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getCookies2 */
- /* Details: "Method getCookies(): Returns null if no cookies are */
- /* present" */
- TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETCOOKIES2);
- /* TODO: implement test */
- tr90.appendTcDetail("Not implemented.");
- tr90.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap1 */
- /* Details: "Method getPrivateParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the private parameter names and values if available" */
- TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP1);
- /* TODO: implement test */
- tr91.appendTcDetail("Not implemented.");
- tr91.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap2 */
- /* Details: "Method getPrivateParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP2);
- /* TODO: implement test */
- tr92.appendTcDetail("Not implemented.");
- tr92.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap3 */
- /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
- /* no private parameters exist" */
- TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPRIVATEPARAMETERMAP3);
- /* TODO: implement test */
- tr93.appendTcDetail("Not implemented.");
- tr93.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap1 */
- /* Details: "Method getPublicParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the public parameter names and values if available" */
- TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP1);
- /* TODO: implement test */
- tr94.appendTcDetail("Not implemented.");
- tr94.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap2 */
- /* Details: "Method getPublicParameterMap(): The returned map is */
- /* immutable" */
- TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP2);
- /* TODO: implement test */
- tr95.appendTcDetail("Not implemented.");
- tr95.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap3 */
- /* Details: "Method getPublicParameterMap(): Returns an empty map if */
- /* no public parameters exist" */
- TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_GETPUBLICPARAMETERMAP3);
- /* TODO: implement test */
- tr96.appendTcDetail("Not implemented.");
- tr96.writeTo(writer);
-
- /* TestCase: V2RequestTests_PortletRequest_Event_exists */
- /* Details: "Method exists(): The P3PUserInfos exist as a public */
- /* static enum" */
- TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_EVENT_EXISTS);
- /* TODO: implement test */
- tr97.appendTcDetail("Not implemented.");
- tr97.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>RequestTests_PortletRequest_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
[46/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
new file mode 100644
index 0000000..5314bd4
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
@@ -0,0 +1,303 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_CacheControl_ApiResource_event
+ *
+ */
+public class EnvironmentTests_CacheControl_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_CacheControl_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime1 */
+ /* Details: "Method getExpirationTime(): Returns the expiration time */
+ /* set through setExpirationTime" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_GETEXPIRATIONTIME1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime2 */
+ /* Details: "Method getExpirationTime(): Returns the default */
+ /* expiration time from the deployment descriptor if the expiration */
+ /* time has not been set" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_GETEXPIRATIONTIME2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime3 */
+ /* Details: "Method getExpirationTime(): Returns 0 if the expiration */
+ /* time has not been set and no default is set in the deployment */
+ /* descriptor" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_GETEXPIRATIONTIME3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime1 */
+ /* Details: "Method setExpirationTime(int): Sets the expiration time */
+ /* for the current response to the specified value" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETEXPIRATIONTIME1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime2 */
+ /* Details: "Method setExpirationTime(int): If the expiration value */
+ /* is set to 0, caching is disabled" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETEXPIRATIONTIME2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime3 */
+ /* Details: "Method setExpirationTime(int): If the expiration value */
+ /* is set to -1, the cache does not expire" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETEXPIRATIONTIME3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_isPublicScope1 */
+ /* Details: "Method isPublicScope(): Returns true if the caching */
+ /* scope has been set to public through the setPublicScope method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_ISPUBLICSCOPE1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_isPublicScope2 */
+ /* Details: "Method isPublicScope(): Returns true if the caching */
+ /* scope default has not been set with the setPublicScope method, but */
+ /* has been set to public in the deployment descriptor " */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_ISPUBLICSCOPE2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_isPublicScope3 */
+ /* Details: "Method isPublicScope(): Returns false if the caching */
+ /* scope has not been set with the setPublicScope method, but has */
+ /* been set to private through the setPublicScope method " */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_ISPUBLICSCOPE3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_isPublicScope5 */
+ /* Details: "Method isPublicScope(): Returns false if the caching */
+ /* scope has not been set with the setPublicScope method and has not */
+ /* been set in the deployment descriptor" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_ISPUBLICSCOPE5);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setPublicScope1 */
+ /* Details: "Method setPublicScope(boolean): If the input parameter */
+ /* is true, the cache scope is set to public" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETPUBLICSCOPE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setPublicScope2 */
+ /* Details: "Method setPublicScope(boolean): If the input parameter */
+ /* is false, the cache scope is set to non-public" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETPUBLICSCOPE2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getETag1 */
+ /* Details: "Method getETag(): Returns a String containing the ETag */
+ /* for the current response" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_GETETAG1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getETag2 */
+ /* Details: "Method getETag(): Returns null if no ETag is set on the */
+ /* response" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_GETETAG2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setETag1 */
+ /* Details: "Method setETag(String): Sets an ETag for the current */
+ /* response" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETETAG1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setETag2 */
+ /* Details: "Method setETag(String): A previously-set ETag is */
+ /* overwritten" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETETAG2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setETag3 */
+ /* Details: "Method setETag(String): Removes the ETag if the input */
+ /* parameter is null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETETAG3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_useCachedContent1 */
+ /* Details: "Method useCachedContent(): Returns true if cached */
+ /* content has been set to valid through the setUseCachedContent */
+ /* method" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_USECACHEDCONTENT1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_useCachedContent2 */
+ /* Details: "Method useCachedContent(): Returns false if cached */
+ /* content has been set to invalid through the setUseCachedContent */
+ /* method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_USECACHEDCONTENT2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_useCachedContent3 */
+ /* Details: "Method useCachedContent(): Returns false if the use */
+ /* cached content indcator has not been set" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_USECACHEDCONTENT3);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent1 */
+ /* Details: "Method setUseCachedContent(boolean): If set to true, the */
+ /* cached content is valid " */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETUSECACHEDCONTENT1);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent2 */
+ /* Details: "Method setUseCachedContent(boolean): If set to false, */
+ /* the cached content is invalid " */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_APIRESOURCE_SETUSECACHEDCONTENT2);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"EnvironmentTests_CacheControl_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"EnvironmentTests_CacheControl_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Render.java
deleted file mode 100644
index 5a9def7..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Render.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_CacheControl_Render_event
- *
- */
-public class EnvironmentTests_CacheControl_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_CacheControl_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_getExpirationTime1 */
- /* Details: "Method getExpirationTime(): Returns the expiration time */
- /* set through setExpirationTime" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_GETEXPIRATIONTIME1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_getExpirationTime2 */
- /* Details: "Method getExpirationTime(): Returns the default */
- /* expiration time from the deployment descriptor if the expiration */
- /* time has not been set" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_GETEXPIRATIONTIME2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_getExpirationTime3 */
- /* Details: "Method getExpirationTime(): Returns 0 if the expiration */
- /* time has not been set and no default is set in the deployment */
- /* descriptor" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_GETEXPIRATIONTIME3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setExpirationTime1 */
- /* Details: "Method setExpirationTime(int): Sets the expiration time */
- /* for the current response to the specified value" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETEXPIRATIONTIME1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setExpirationTime2 */
- /* Details: "Method setExpirationTime(int): If the expiration value */
- /* is set to 0, caching is disabled" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETEXPIRATIONTIME2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setExpirationTime3 */
- /* Details: "Method setExpirationTime(int): If the expiration value */
- /* is set to -1, the cache does not expire" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETEXPIRATIONTIME3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_isPublicScope1 */
- /* Details: "Method isPublicScope(): Returns true if the caching */
- /* scope has been set to public through the setPublicScope method" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_ISPUBLICSCOPE1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_isPublicScope2 */
- /* Details: "Method isPublicScope(): Returns true if the caching */
- /* scope default has not been set with the setPublicScope method, but */
- /* has been set to public in the deployment descriptor " */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_ISPUBLICSCOPE2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_isPublicScope3 */
- /* Details: "Method isPublicScope(): Returns false if the caching */
- /* scope has not been set with the setPublicScope method, but has */
- /* been set to private through the setPublicScope method " */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_ISPUBLICSCOPE3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_isPublicScope5 */
- /* Details: "Method isPublicScope(): Returns false if the caching */
- /* scope has not been set with the setPublicScope method and has not */
- /* been set in the deployment descriptor" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_ISPUBLICSCOPE5);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setPublicScope1 */
- /* Details: "Method setPublicScope(boolean): If the input parameter */
- /* is true, the cache scope is set to public" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETPUBLICSCOPE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setPublicScope2 */
- /* Details: "Method setPublicScope(boolean): If the input parameter */
- /* is false, the cache scope is set to non-public" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETPUBLICSCOPE2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_getETag1 */
- /* Details: "Method getETag(): Returns a String containing the ETag */
- /* for the current response" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_GETETAG1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_getETag2 */
- /* Details: "Method getETag(): Returns null if no ETag is set on the */
- /* response" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_GETETAG2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setETag1 */
- /* Details: "Method setETag(String): Sets an ETag for the current */
- /* response" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETETAG1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setETag2 */
- /* Details: "Method setETag(String): A previously-set ETag is */
- /* overwritten" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETETAG2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setETag3 */
- /* Details: "Method setETag(String): Removes the ETag if the input */
- /* parameter is null" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETETAG3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_useCachedContent1 */
- /* Details: "Method useCachedContent(): Returns true if cached */
- /* content has been set to valid through the setUseCachedContent */
- /* method" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_USECACHEDCONTENT1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_useCachedContent2 */
- /* Details: "Method useCachedContent(): Returns false if cached */
- /* content has been set to invalid through the setUseCachedContent */
- /* method" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_USECACHEDCONTENT2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_useCachedContent3 */
- /* Details: "Method useCachedContent(): Returns false if the use */
- /* cached content indcator has not been set" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_USECACHEDCONTENT3);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setUseCachedContent1 */
- /* Details: "Method setUseCachedContent(boolean): If set to true, the */
- /* cached content is valid " */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETUSECACHEDCONTENT1);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Render_setUseCachedContent2 */
- /* Details: "Method setUseCachedContent(boolean): If set to false, */
- /* the cached content is invalid " */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RENDER_SETUSECACHEDCONTENT2);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Resource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Resource.java
deleted file mode 100644
index 7e10e75..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_Resource.java
+++ /dev/null
@@ -1,303 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_CacheControl_Resource_event
- *
- */
-public class EnvironmentTests_CacheControl_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_CacheControl_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_getExpirationTime1 */
- /* Details: "Method getExpirationTime(): Returns the expiration time */
- /* set through setExpirationTime" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_GETEXPIRATIONTIME1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_getExpirationTime2 */
- /* Details: "Method getExpirationTime(): Returns the default */
- /* expiration time from the deployment descriptor if the expiration */
- /* time has not been set" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_GETEXPIRATIONTIME2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_getExpirationTime3 */
- /* Details: "Method getExpirationTime(): Returns 0 if the expiration */
- /* time has not been set and no default is set in the deployment */
- /* descriptor" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_GETEXPIRATIONTIME3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setExpirationTime1 */
- /* Details: "Method setExpirationTime(int): Sets the expiration time */
- /* for the current response to the specified value" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETEXPIRATIONTIME1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setExpirationTime2 */
- /* Details: "Method setExpirationTime(int): If the expiration value */
- /* is set to 0, caching is disabled" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETEXPIRATIONTIME2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setExpirationTime3 */
- /* Details: "Method setExpirationTime(int): If the expiration value */
- /* is set to -1, the cache does not expire" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETEXPIRATIONTIME3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_isPublicScope1 */
- /* Details: "Method isPublicScope(): Returns true if the caching */
- /* scope has been set to public through the setPublicScope method" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_ISPUBLICSCOPE1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_isPublicScope2 */
- /* Details: "Method isPublicScope(): Returns true if the caching */
- /* scope default has not been set with the setPublicScope method, but */
- /* has been set to public in the deployment descriptor " */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_ISPUBLICSCOPE2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_isPublicScope3 */
- /* Details: "Method isPublicScope(): Returns false if the caching */
- /* scope has not been set with the setPublicScope method, but has */
- /* been set to private through the setPublicScope method " */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_ISPUBLICSCOPE3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_isPublicScope5 */
- /* Details: "Method isPublicScope(): Returns false if the caching */
- /* scope has not been set with the setPublicScope method and has not */
- /* been set in the deployment descriptor" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_ISPUBLICSCOPE5);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setPublicScope1 */
- /* Details: "Method setPublicScope(boolean): If the input parameter */
- /* is true, the cache scope is set to public" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETPUBLICSCOPE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setPublicScope2 */
- /* Details: "Method setPublicScope(boolean): If the input parameter */
- /* is false, the cache scope is set to non-public" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETPUBLICSCOPE2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_getETag1 */
- /* Details: "Method getETag(): Returns a String containing the ETag */
- /* for the current response" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_GETETAG1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_getETag2 */
- /* Details: "Method getETag(): Returns null if no ETag is set on the */
- /* response" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_GETETAG2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setETag1 */
- /* Details: "Method setETag(String): Sets an ETag for the current */
- /* response" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETETAG1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setETag2 */
- /* Details: "Method setETag(String): A previously-set ETag is */
- /* overwritten" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETETAG2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setETag3 */
- /* Details: "Method setETag(String): Removes the ETag if the input */
- /* parameter is null" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETETAG3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_useCachedContent1 */
- /* Details: "Method useCachedContent(): Returns true if cached */
- /* content has been set to valid through the setUseCachedContent */
- /* method" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_USECACHEDCONTENT1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_useCachedContent2 */
- /* Details: "Method useCachedContent(): Returns false if cached */
- /* content has been set to invalid through the setUseCachedContent */
- /* method" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_USECACHEDCONTENT2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_useCachedContent3 */
- /* Details: "Method useCachedContent(): Returns false if the use */
- /* cached content indcator has not been set" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_USECACHEDCONTENT3);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setUseCachedContent1 */
- /* Details: "Method setUseCachedContent(boolean): If set to true, the */
- /* cached content is valid " */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETUSECACHEDCONTENT1);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_CacheControl_Resource_setUseCachedContent2 */
- /* Details: "Method setUseCachedContent(boolean): If set to false, */
- /* the cached content is invalid " */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_CACHECONTROL_RESOURCE_SETUSECACHEDCONTENT2);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"EnvironmentTests_CacheControl_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"EnvironmentTests_CacheControl_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
new file mode 100644
index 0000000..34aa004
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
@@ -0,0 +1,261 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortalContext_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortalContext_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortalContext_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_fieldMARKUP_HEAD_ELEMENT_SUPPORT */
+ /* Details: "Has String field MARKUP_HEAD_ELEMENT_SUPPORT with value */
+ /* of \"javax.portlet.markup.head.element.support\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_FIELDMARKUP_HEAD_ELEMENT_SUPPORT);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getProperty1 */
+ /* Details: "Method getProperty(String): Returns a String containing */
+ /* the value for the specified property " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTY1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getProperty2 */
+ /* Details: "Method getProperty(String): Returns null if there is no */
+ /* property defined for the specified name" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTY2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the specified name is null " */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTY3);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing all */
+ /* portal property names" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTYNAMES1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no portal property names defined" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTYNAMES2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes1 */
+ /* Details: "Method getSupportedPortletModes(): Returns an */
+ /* java.util.Enumeration<PortletMode> containing all supported */
+ /* portlet modes" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDPORTLETMODES1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes2 */
+ /* Details: "Method getSupportedPortletModes(): The Enumeration */
+ /* returned must contain the view mode" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDPORTLETMODES2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes3 */
+ /* Details: "Method getSupportedPortletModes(): The Enumeration */
+ /* returned must contain the edit mode" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDPORTLETMODES3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes4 */
+ /* Details: "Method getSupportedPortletModes(): The Enumeration */
+ /* returned must contain the help mode" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDPORTLETMODES4);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates1 */
+ /* Details: "Method getSupportedWindowStates(): Returns an */
+ /* java.util.Enumeration<WindowState> containing all supported */
+ /* window states" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDWINDOWSTATES1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates2 */
+ /* Details: "Method getSupportedWindowStates(): The Enumeration */
+ /* returned must contain the maximized state" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDWINDOWSTATES2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates3 */
+ /* Details: "Method getSupportedWindowStates(): The Enumeration */
+ /* returned must contain the minimized state" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDWINDOWSTATES3);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates4 */
+ /* Details: "Method getSupportedWindowStates(): The Enumeration */
+ /* returned must contain the normal state" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETSUPPORTEDWINDOWSTATES4);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo1 */
+ /* Details: "Method getPortalInfo(): Returns a String containing */
+ /* information about the portal" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPORTALINFO1);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo2 */
+ /* Details: "Method getPortalInfo(): The returned string is of the */
+ /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is */
+ /* the version, and $3 is optional additional information" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPORTALINFO2);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo3 */
+ /* Details: "Method getPortalInfo(): The returned string contains the */
+ /* portal name" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPORTALINFO3);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo4 */
+ /* Details: "Method getPortalInfo(): The returned string contains the */
+ /* portal version" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPORTALINFO4);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo5 */
+ /* Details: "Method getPortalInfo(): The returned string may not be */
+ /* null" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPORTALINFO5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_Render.java
deleted file mode 100644
index 86b5c71..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_Render.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortalContext_Render_event
- *
- */
-public class EnvironmentTests_PortalContext_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortalContext_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_fieldMARKUP_HEAD_ELEMENT_SUPPORT */
- /* Details: "Has String field MARKUP_HEAD_ELEMENT_SUPPORT with value */
- /* of \"javax.portlet.markup.head.element.support\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_FIELDMARKUP_HEAD_ELEMENT_SUPPORT);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getProperty1 */
- /* Details: "Method getProperty(String): Returns a String containing */
- /* the value for the specified property " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPROPERTY1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getProperty2 */
- /* Details: "Method getProperty(String): Returns null if there is no */
- /* property defined for the specified name" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPROPERTY2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the specified name is null " */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPROPERTY3);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing all */
- /* portal property names" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPROPERTYNAMES1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no portal property names defined" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPROPERTYNAMES2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes1 */
- /* Details: "Method getSupportedPortletModes(): Returns an */
- /* java.util.Enumeration<PortletMode> containing all supported */
- /* portlet modes" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDPORTLETMODES1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes2 */
- /* Details: "Method getSupportedPortletModes(): The Enumeration */
- /* returned must contain the view mode" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDPORTLETMODES2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes3 */
- /* Details: "Method getSupportedPortletModes(): The Enumeration */
- /* returned must contain the edit mode" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDPORTLETMODES3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes4 */
- /* Details: "Method getSupportedPortletModes(): The Enumeration */
- /* returned must contain the help mode" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDPORTLETMODES4);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates1 */
- /* Details: "Method getSupportedWindowStates(): Returns an */
- /* java.util.Enumeration<WindowState> containing all supported */
- /* window states" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDWINDOWSTATES1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates2 */
- /* Details: "Method getSupportedWindowStates(): The Enumeration */
- /* returned must contain the maximized state" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDWINDOWSTATES2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates3 */
- /* Details: "Method getSupportedWindowStates(): The Enumeration */
- /* returned must contain the minimized state" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDWINDOWSTATES3);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates4 */
- /* Details: "Method getSupportedWindowStates(): The Enumeration */
- /* returned must contain the normal state" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETSUPPORTEDWINDOWSTATES4);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPortalInfo1 */
- /* Details: "Method getPortalInfo(): Returns a String containing */
- /* information about the portal" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPORTALINFO1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPortalInfo2 */
- /* Details: "Method getPortalInfo(): The returned string is of the */
- /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is */
- /* the version, and $3 is optional additional information" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPORTALINFO2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPortalInfo3 */
- /* Details: "Method getPortalInfo(): The returned string contains the */
- /* portal name" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPORTALINFO3);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPortalInfo4 */
- /* Details: "Method getPortalInfo(): The returned string contains the */
- /* portal version" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPORTALINFO4);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortalContext_Render_getPortalInfo5 */
- /* Details: "Method getPortalInfo(): The returned string may not be */
- /* null" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_RENDER_GETPORTALINFO5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- }
-
-}
[33/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event_event.java
deleted file mode 100644
index ce7b9d7..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_Event_event.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class PortletTests_Event_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_Event_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_Event_Event_getQName1 */
- /* Details: "Method getQName(): Returns the javax.xml.namespace.QName */
- /* object for the Event" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETQNAME1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_Event_Event_getQName2 */
- /* Details: "Method getQName(): Returned value may not be null" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETQNAME2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_Event_Event_getName1 */
- /* Details: "Method getName(): Returns a String containing the event */
- /* local name" */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETNAME1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_Event_Event_getName2 */
- /* Details: "Method getName(): Returned value may not be null" */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETNAME2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_Event_Event_getValue1 */
- /* Details: "Method getValue(String, String): Returns a */
- /* java.io.Serializable object representing the event payload" */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETVALUE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_Event_Event_getValue2 */
- /* Details: "Method getValue(String, String): Returned value is null */
- /* if the event has no payload" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_EVENT_GETVALUE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "PortletTests_Event_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>PortletTests_Event_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "PortletTests_Event_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
new file mode 100644
index 0000000..1259bc0
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
@@ -0,0 +1,474 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_GenericPortlet_ApiRender_event
+ *
+ */
+public class PortletTests_GenericPortlet_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_GenericPortlet_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_initA */
+ /* Details: "Method init(): Called when the portlet is initialized" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_INITA);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_initB */
+ /* Details: "Method init(PortletConfig): Called when the portlet is */
+ /* initialized" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_INITB);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction1 */
+ /* Details: "Method processAction(ActionRequest, ActionResponse): If */
+ /* overridden, the Portlet.processAction tests execute correctly" */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction2 */
+ /* Details: "Method processAction(ActionRequest, ActionResponse): */
+ /* Dispatches to @ProcessAction annotated method matching the */
+ /* ActionRequest.ACTION_NAME parameter" */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction3 */
+ /* Details: "Method processAction(ActionRequest, ActionResponse): */
+ /* Throws PortletException if no matching @ProcessAction annotated */
+ /* method found" */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render1 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* overridden, Portlet.render tests execute correctly" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER1);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render2 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=null, Calls the doHeaders(RenderRequest, */
+ /* RenderResponse): method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER2);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render3 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=null, Sets the title on RenderResponse with the value */
+ /* returned by the getTitle(RenderRequest): method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER3);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render4 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=null, Retrieves the next possible portlet modes from */
+ /* the PortletConfig and sets them on the RenderResponse" */
+ TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER4);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render5 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=null, Calls the DoDispatch(RenderRequest, */
+ /* RenderResponse): method " */
+ TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER5);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render6 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=RENDER_HEADERS, Calls the doHeaders(RenderRequest, */
+ /* RenderResponse): method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER6);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render7 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=RENDER_HEADERS, Sets the title on RenderResponse with */
+ /* the value returned by the getTitle(RenderRequest): method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER7);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render8 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=RENDER_HEADERS, Retrieves the next possible portlet */
+ /* modes from the PortletConfig and sets them on the RenderResponse" */
+ TestResult tr12 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER8);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render9 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=RENDER_MARKUP, Calls the DoDispatch(RenderRequest, */
+ /* RenderResponse): method " */
+ TestResult tr13 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER9);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render10 */
+ /* Details: "Method render(RenderRequest, RenderResponse): If */
+ /* RENDER_PART=<any other value>, throws PortletException " */
+ TestResult tr14 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER10);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle1 */
+ /* Details: "Method getTitle(): If overridden, the String returned by */
+ /* this method is used as the portlet title" */
+ TestResult tr15 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle2 */
+ /* Details: "Method getTitle(): Returns a String containing the title */
+ /* from the portlet resource bundle under the key */
+ /* \"javax.portlet.title\"" */
+ TestResult tr16 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle3 */
+ /* Details: "Method getTitle(): Returns null if no title is available */
+ /* from the portlet resource bundle" */
+ TestResult tr17 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE3);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch1 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If */
+ /* overridden, is called when markup is to be generated" */
+ TestResult tr18 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH1);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch2 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden, If the WindowState is minimized, no markup method is */
+ /* called and no markup is generated" */
+ TestResult tr19 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH2);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch3 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden and not minimized, the @RenderMode annotated method */
+ /* matching the current PortletMode is called " */
+ TestResult tr20 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH3);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch4 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden, not minimized, and no annotated method is found, if */
+ /* the current render mode is \"view\", the doView(RenderRequest, */
+ /* RenderResponse): method is called " */
+ TestResult tr21 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH4);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch5 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden, not minimized, and no annotated method is found, if */
+ /* the current render mode is \"edit\", the doEdit(RenderRequest, */
+ /* RenderResponse): method is called " */
+ TestResult tr22 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH5);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch6 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden, not minimized, and no annotated method is found, if */
+ /* the current render mode is \"help\", the doHelp(RenderRequest, */
+ /* RenderResponse): method is called " */
+ TestResult tr23 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH6);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch7 */
+ /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
+ /* overridden not minimized, no annotated method is found, ant the */
+ /* mode is not \"view\", \"edit\", or \"help\", throws a */
+ /* PortletException" */
+ TestResult tr24 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH7);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doView1 */
+ /* Details: "Method doView(RenderRequest, RenderResponse): If */
+ /* overridden, is called when a render request in view mode occurs" */
+ TestResult tr25 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOVIEW1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doView2 */
+ /* Details: "Method doView(RenderRequest, RenderResponse): If not */
+ /* overridden, throws a PortletException" */
+ TestResult tr26 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOVIEW2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doEdit1 */
+ /* Details: "Method doEdit(RenderRequest, RenderResponse): If */
+ /* overridden, is called when a render request in edit mode occurs" */
+ TestResult tr27 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOEDIT1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doEdit2 */
+ /* Details: "Method doEdit(RenderRequest, RenderResponse): If not */
+ /* overridden, throws a PortletException" */
+ TestResult tr28 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOEDIT2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHelp1 */
+ /* Details: "Method doHelp(RenderRequest, RenderResponse): If */
+ /* overridden, is called when a render request in help mode occurs" */
+ TestResult tr29 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHELP1);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHelp2 */
+ /* Details: "Method doHelp(RenderRequest, RenderResponse): If not */
+ /* overridden, throws a PortletException" */
+ TestResult tr30 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHELP2);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getPortletConfig */
+ /* Details: "Method getPortletConfig(): Returns the PortletConfig */
+ /* object for the portlet" */
+ TestResult tr31 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETPORTLETCONFIG);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_destroy */
+ /* Details: "Method destroy(): Called by the portlet container to */
+ /* indicate to a portlet that the portlet is being taken out of */
+ /* service. " */
+ TestResult tr32 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DESTROY);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource1 */
+ /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
+ /* Is called when a ResourceURL targeting the portlet is triggered" */
+ TestResult tr33 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE1);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource2 */
+ /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
+ /* Forwards the request to the ResourceID value if the method is not */
+ /* overridden and if the resource ID is not null" */
+ TestResult tr34 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE2);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource3 */
+ /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
+ /* Does nothing if the method is not overridden and if the resource */
+ /* ID is null" */
+ TestResult tr35 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE3);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent1 */
+ /* Details: "Method processEvent(EventRequest, EventResponse): Is */
+ /* called when an Event targeting the portlet occurs" */
+ TestResult tr36 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT1);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent2 */
+ /* Details: "Method processEvent(EventRequest, EventResponse): The */
+ /* @ProcessEvent annotated method matching the current Event is */
+ /* called " */
+ TestResult tr37 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT2);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent3 */
+ /* Details: "Method processEvent(EventRequest, EventResponse): If */
+ /* there is no matching annotated method, sets the render parameters */
+ /* on the EventResponse to equal the EventRequest parameters" */
+ TestResult tr38 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT3);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHeaders1 */
+ /* Details: "Method doHeaders(RenderRequest, RenderResponse): Is */
+ /* called during generic portlet render request processing " */
+ TestResult tr39 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHEADERS1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHeaders2 */
+ /* Details: "Method doHeaders(RenderRequest, RenderResponse): The */
+ /* default implementation does nothing" */
+ TestResult tr40 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHEADERS2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes1 */
+ /* Details: "Method getNextPossiblePortletModes(): Is called during */
+ /* generic portlet render request processing" */
+ TestResult tr41 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETNEXTPOSSIBLEPORTLETMODES1);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes2 */
+ /* Details: "Method getNextPossiblePortletModes(): The default */
+ /* implementation returns null" */
+ TestResult tr42 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETNEXTPOSSIBLEPORTLETMODES2);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_Render.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_Render.java
deleted file mode 100644
index 625f3e0..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_Render.java
+++ /dev/null
@@ -1,474 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_GenericPortlet_Render_event
- *
- */
-public class PortletTests_GenericPortlet_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_GenericPortlet_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_initA */
- /* Details: "Method init(): Called when the portlet is initialized" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_INITA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_initB */
- /* Details: "Method init(PortletConfig): Called when the portlet is */
- /* initialized" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_INITB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processAction1 */
- /* Details: "Method processAction(ActionRequest, ActionResponse): If */
- /* overridden, the Portlet.processAction tests execute correctly" */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSACTION1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processAction2 */
- /* Details: "Method processAction(ActionRequest, ActionResponse): */
- /* Dispatches to @ProcessAction annotated method matching the */
- /* ActionRequest.ACTION_NAME parameter" */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSACTION2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processAction3 */
- /* Details: "Method processAction(ActionRequest, ActionResponse): */
- /* Throws PortletException if no matching @ProcessAction annotated */
- /* method found" */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSACTION3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render1 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* overridden, Portlet.render tests execute correctly" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER1);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render2 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=null, Calls the doHeaders(RenderRequest, */
- /* RenderResponse): method" */
- TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER2);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render3 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=null, Sets the title on RenderResponse with the value */
- /* returned by the getTitle(RenderRequest): method" */
- TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER3);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render4 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=null, Retrieves the next possible portlet modes from */
- /* the PortletConfig and sets them on the RenderResponse" */
- TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER4);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render5 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=null, Calls the DoDispatch(RenderRequest, */
- /* RenderResponse): method " */
- TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER5);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render6 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=RENDER_HEADERS, Calls the doHeaders(RenderRequest, */
- /* RenderResponse): method" */
- TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER6);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render7 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=RENDER_HEADERS, Sets the title on RenderResponse with */
- /* the value returned by the getTitle(RenderRequest): method" */
- TestResult tr11 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER7);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render8 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=RENDER_HEADERS, Retrieves the next possible portlet */
- /* modes from the PortletConfig and sets them on the RenderResponse" */
- TestResult tr12 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER8);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render9 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=RENDER_MARKUP, Calls the DoDispatch(RenderRequest, */
- /* RenderResponse): method " */
- TestResult tr13 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER9);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_render10 */
- /* Details: "Method render(RenderRequest, RenderResponse): If */
- /* RENDER_PART=<any other value>, throws PortletException " */
- TestResult tr14 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_RENDER10);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getTitle1 */
- /* Details: "Method getTitle(): If overridden, the String returned by */
- /* this method is used as the portlet title" */
- TestResult tr15 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETTITLE1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getTitle2 */
- /* Details: "Method getTitle(): Returns a String containing the title */
- /* from the portlet resource bundle under the key */
- /* \"javax.portlet.title\"" */
- TestResult tr16 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETTITLE2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getTitle3 */
- /* Details: "Method getTitle(): Returns null if no title is available */
- /* from the portlet resource bundle" */
- TestResult tr17 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETTITLE3);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch1 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If */
- /* overridden, is called when markup is to be generated" */
- TestResult tr18 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH1);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch2 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden, If the WindowState is minimized, no markup method is */
- /* called and no markup is generated" */
- TestResult tr19 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH2);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch3 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden and not minimized, the @RenderMode annotated method */
- /* matching the current PortletMode is called " */
- TestResult tr20 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH3);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch4 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden, not minimized, and no annotated method is found, if */
- /* the current render mode is \"view\", the doView(RenderRequest, */
- /* RenderResponse): method is called " */
- TestResult tr21 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH4);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch5 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden, not minimized, and no annotated method is found, if */
- /* the current render mode is \"edit\", the doEdit(RenderRequest, */
- /* RenderResponse): method is called " */
- TestResult tr22 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH5);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch6 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden, not minimized, and no annotated method is found, if */
- /* the current render mode is \"help\", the doHelp(RenderRequest, */
- /* RenderResponse): method is called " */
- TestResult tr23 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH6);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doDispatch7 */
- /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not */
- /* overridden not minimized, no annotated method is found, ant the */
- /* mode is not \"view\", \"edit\", or \"help\", throws a */
- /* PortletException" */
- TestResult tr24 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DODISPATCH7);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doView1 */
- /* Details: "Method doView(RenderRequest, RenderResponse): If */
- /* overridden, is called when a render request in view mode occurs" */
- TestResult tr25 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOVIEW1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doView2 */
- /* Details: "Method doView(RenderRequest, RenderResponse): If not */
- /* overridden, throws a PortletException" */
- TestResult tr26 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOVIEW2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doEdit1 */
- /* Details: "Method doEdit(RenderRequest, RenderResponse): If */
- /* overridden, is called when a render request in edit mode occurs" */
- TestResult tr27 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOEDIT1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doEdit2 */
- /* Details: "Method doEdit(RenderRequest, RenderResponse): If not */
- /* overridden, throws a PortletException" */
- TestResult tr28 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOEDIT2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doHelp1 */
- /* Details: "Method doHelp(RenderRequest, RenderResponse): If */
- /* overridden, is called when a render request in help mode occurs" */
- TestResult tr29 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOHELP1);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doHelp2 */
- /* Details: "Method doHelp(RenderRequest, RenderResponse): If not */
- /* overridden, throws a PortletException" */
- TestResult tr30 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOHELP2);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getPortletConfig */
- /* Details: "Method getPortletConfig(): Returns the PortletConfig */
- /* object for the portlet" */
- TestResult tr31 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETPORTLETCONFIG);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_destroy */
- /* Details: "Method destroy(): Called by the portlet container to */
- /* indicate to a portlet that the portlet is being taken out of */
- /* service. " */
- TestResult tr32 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DESTROY);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_serveResource1 */
- /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
- /* Is called when a ResourceURL targeting the portlet is triggered" */
- TestResult tr33 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_SERVERESOURCE1);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_serveResource2 */
- /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
- /* Forwards the request to the ResourceID value if the method is not */
- /* overridden and if the resource ID is not null" */
- TestResult tr34 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_SERVERESOURCE2);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_serveResource3 */
- /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
- /* Does nothing if the method is not overridden and if the resource */
- /* ID is null" */
- TestResult tr35 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_SERVERESOURCE3);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processEvent1 */
- /* Details: "Method processEvent(EventRequest, EventResponse): Is */
- /* called when an Event targeting the portlet occurs" */
- TestResult tr36 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSEVENT1);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processEvent2 */
- /* Details: "Method processEvent(EventRequest, EventResponse): The */
- /* @ProcessEvent annotated method matching the current Event is */
- /* called " */
- TestResult tr37 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSEVENT2);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_processEvent3 */
- /* Details: "Method processEvent(EventRequest, EventResponse): If */
- /* there is no matching annotated method, sets the render parameters */
- /* on the EventResponse to equal the EventRequest parameters" */
- TestResult tr38 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_PROCESSEVENT3);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doHeaders1 */
- /* Details: "Method doHeaders(RenderRequest, RenderResponse): Is */
- /* called during generic portlet render request processing " */
- TestResult tr39 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOHEADERS1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_doHeaders2 */
- /* Details: "Method doHeaders(RenderRequest, RenderResponse): The */
- /* default implementation does nothing" */
- TestResult tr40 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_DOHEADERS2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getNextPossiblePortletModes1 */
- /* Details: "Method getNextPossiblePortletModes(): Is called during */
- /* generic portlet render request processing" */
- TestResult tr41 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETNEXTPOSSIBLEPORTLETMODES1);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2PortletTests_GenericPortlet_Render_getNextPossiblePortletModes2 */
- /* Details: "Method getNextPossiblePortletModes(): The default */
- /* implementation returns null" */
- TestResult tr42 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_RENDER_GETNEXTPOSSIBLEPORTLETMODES2);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
new file mode 100644
index 0000000..52edd80
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender.java
@@ -0,0 +1,235 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_PortletConfig_ApiRender_event
+ *
+ */
+public class PortletTests_PortletConfig_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_PortletConfig_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getPortletName */
+ /* Details: "Method getPortletName(): Returns a String containing the */
+ /* portlet name" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETPORTLETNAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getPortletContext */
+ /* Details: "Method getPortletContext(): Returns the PortletContext */
+ /* object associated with the portlet" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETPORTLETCONTEXT);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getResourceBundle */
+ /* Details: "Method getResourceBundle(Locale): Returns the */
+ /* ResourceBundle for the specified locale" */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETRESOURCEBUNDLE);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getInitParameter1 */
+ /* Details: "Method getInitParameter(String): Returns a String */
+ /* containing the initialization parameter value for the given name" */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETINITPARAMETER1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getInitParameter3 */
+ /* Details: "Method getInitParameter(String): Throws */
+ /* IllegalArgumentException if the name parameter is null" */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETINITPARAMETER3);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getInitParameterNames1 */
+ /* Details: "Method getInitParameterNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the names */
+ /* of the initialization parameters" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETINITPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getPublicRenderParameterNames1 */
+ /* Details: "Method getPublicRenderParameterNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the names */
+ /* of the public render parameters" */
+ TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETPUBLICRENDERPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getDefaultNamespace1 */
+ /* Details: "Method getDefaultNamespace(): Returns a String */
+ /* containing the default namespace for events and public render */
+ /* parameters as defined in the deployment descriptor" */
+ TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETDEFAULTNAMESPACE1);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getPublishingEventQNames1 */
+ /* Details: "Method getPublishingEventQNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* publishing event qnames as defined in the deployment descriptor" */
+ TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETPUBLISHINGEVENTQNAMES1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getProcessingEventQNames1 */
+ /* Details: "Method getProcessingEventQNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* processing event qnames as defined in the deployment descriptor" */
+ TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETPROCESSINGEVENTQNAMES1);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getSupportedLocales1 */
+ /* Details: "Method getSupportedLocales(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the names */
+ /* of the supported locales as defined in the deployment descriptor" */
+ TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETSUPPORTEDLOCALES1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions1 */
+ /* Details: "Method getContainerRuntimeOptions(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* containing the container runtime options as defined in the */
+ /* deployment descriptor" */
+ TestResult tr11 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETCONTAINERRUNTIMEOPTIONS1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions2 */
+ /* Details: "Method getContainerRuntimeOptions(): If the same option */
+ /* is defined at the portlet application and at the portlet level, */
+ /* the definition at the portlet level takes precedence" */
+ TestResult tr12 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETCONTAINERRUNTIMEOPTIONS2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions3 */
+ /* Details: "Method getContainerRuntimeOptions(): If the portlet */
+ /* container does not support a runtime option defined in the portlet */
+ /* descriptor, that option will not be returned in this map" */
+ TestResult tr13 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETCONTAINERRUNTIMEOPTIONS3);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions4 */
+ /* Details: "Method getContainerRuntimeOptions(): Returns an empty */
+ /* map if no container runtime options have been defined " */
+ TestResult tr14 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER_GETCONTAINERRUNTIMEOPTIONS4);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
new file mode 100644
index 0000000..dafd1b2
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_ApiRender2.java
@@ -0,0 +1,162 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_PortletConfig_ApiRender2_event
+ *
+ */
+public class PortletTests_PortletConfig_ApiRender2 implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_PortletConfig_ApiRender2.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getInitParameter2 */
+ /* Details: "Method getInitParameter(String): Returns null if the */
+ /* specified initialization parameter does not exist" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETINITPARAMETER2);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getInitParameterNames2 */
+ /* Details: "Method getInitParameterNames(): Returns an empty */
+ /* Enumeration if there are no initialization parameters available " */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETINITPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getPublicRenderParameterNames2 */
+ /* Details: "Method getPublicRenderParameterNames(): Returns an empty */
+ /* Enumeration if there are no public render parameters are defined " */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETPUBLICRENDERPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getDefaultNamespace2 */
+ /* Details: "Method getDefaultNamespace(): Returns */
+ /* XMLConstants.NULL_NS_URI if no default namespace is defined in the */
+ /* deployment descriptor " */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETDEFAULTNAMESPACE2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getPublishingEventQNames2 */
+ /* Details: "Method getPublishingEventQNames(): Returns an empty */
+ /* Enumeration if there are no processing events are defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETPUBLISHINGEVENTQNAMES2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getProcessingEventQNames2 */
+ /* Details: "Method getProcessingEventQNames(): Returns an empty */
+ /* Enumeration if there are no processing events are defined" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETPROCESSINGEVENTQNAMES2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletConfig_ApiRender2_getSupportedLocales2 */
+ /* Details: "Method getSupportedLocales(): Returns an empty */
+ /* Enumeration if there are no supported locales are defined" */
+ TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_APIRENDER2_GETSUPPORTEDLOCALES2);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ }
+
+}
[40/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_Render.java
deleted file mode 100644
index 6231afd..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_Render.java
+++ /dev/null
@@ -1,565 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletSession_Render_event
- *
- */
-public class EnvironmentTests_PortletSession_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletSession_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_fieldAPPLICATION_SCOPE */
- /* Details: "Has int field APPLICATION_SCOPE with value of 0x01 " */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_FIELDAPPLICATION_SCOPE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_fieldPORTLET_SCOPE */
- /* Details: "Has int field PORTLET_SCOPE with value of 0x02 " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_FIELDPORTLET_SCOPE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeA1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name in the PORTLET_SCOPE" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEA1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeA2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists in the PORTLET_SCOPE" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEA2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeA3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEA3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeA4 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalStateException if the method is called on an invalidated */
- /* session" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEA4);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeB1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name in the specified scope" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEB1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeB2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists in the specified scope" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEB2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeB3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEB3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeB4 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalStateException if the method is called on an invalidated */
- /* session" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEB4);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeNamesA1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names in the PORTLET_SCOPE" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTENAMESA1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeNamesA2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available in the PORTLET_SCOPE" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTENAMESA2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeNamesB1 */
- /* Details: "Method getAttributeNames(int): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names in the specified scope" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTENAMESB1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeNamesB2 */
- /* Details: "Method getAttributeNames(int): Returns an empty */
- /* Enumeration if there are no attributes available in the specified */
- /* scope" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTENAMESB2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getCreationTime1 */
- /* Details: "Method getCreationTime(): Returns a long containing the */
- /* time the session was created in milliseconds since 1/1/1970 " */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETCREATIONTIME1);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getCreationTime2 */
- /* Details: "Method getCreationTime(): Throws IllegalStateException */
- /* if this method is called on an invalidated session" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETCREATIONTIME2);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getId */
- /* Details: "Method getId(): Returns a String containing a unique */
- /* identifier for the session" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETID);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getLastAccessedTime */
- /* Details: "Method getLastAccessedTime(): Returns a long containing */
- /* the last time the session was accessed in milliseconds since */
- /* 1/1/1970" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETLASTACCESSEDTIME);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getMaxInactiveInterval */
- /* Details: "Method getMaxInactiveInterval(): Returns the maximum */
- /* time interval, in seconds, for which the portlet container keeps */
- /* this session open between client accesses" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETMAXINACTIVEINTERVAL);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_invalidate1 */
- /* Details: "Method invalidate(): Invalidates this session (all */
- /* scopes): and unbinds any objects bound to it" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_INVALIDATE1);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_invalidate2 */
- /* Details: "Method invalidate(): The underlying HTTP session is also */
- /* invalidated" */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_INVALIDATE2);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_isNew1 */
- /* Details: "Method isNew(): Returns true if the client has not yet */
- /* joined the session" */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_ISNEW1);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_isNew2 */
- /* Details: "Method isNew(): Returns false if the client has joined */
- /* the session" */
- TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_ISNEW2);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeA1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the PORTLET_SCOPE" */
- TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEA1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeA2 */
- /* Details: "Method removeAttribute(String): If there is no attribute */
- /* by the specified name in the the PORTLET_SCOPE, this method does */
- /* nothing" */
- TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEA2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeA3 */
- /* Details: "Method removeAttribute(String): If an attribute was */
- /* removed, the HttpSessionAttributeListener.attributeRemoved method */
- /* is called on all HttpSessionAttributeListeners in the web */
- /* application" */
- TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEA3);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeA4 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEA4);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeB1 */
- /* Details: "Method removeAttribute(String, int): Removes the */
- /* attribute specified by the name from the specified scope" */
- TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEB1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeB2 */
- /* Details: "Method removeAttribute(String, int): If there is no */
- /* attribute by the specified name in the specified scope, this */
- /* method does nothing" */
- TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEB2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeB3 */
- /* Details: "Method removeAttribute(String, int): If an attribute was */
- /* removed, the HttpSessionAttributeListener.attributeRemoved method */
- /* is called on all HttpSessionAttributeListeners in the web */
- /* application" */
- TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEB3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_removeAttributeB4 */
- /* Details: "Method removeAttribute(String, int): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_REMOVEATTRIBUTEB4);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the PORTLET_SCOPE" */
- TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA2 */
- /* Details: "Method setAttribute(String, Object): Replaces the */
- /* attribute by the specified name if the attribute already exists" */
- TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA3 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA4 */
- /* Details: "Method setAttribute(String, Object): If the attribute */
- /* object implements HttpSessionBindingListener, its */
- /* HttpSessionBindingListener.valueBound method is called" */
- TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA4);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA5 */
- /* Details: "Method setAttribute(String, Object): If an existing */
- /* attribute object implements HttpSessionBindingListener and is */
- /* replaced, its HttpSessionBindingListener.valueUnbound method is */
- /* called" */
- TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA5);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA6 */
- /* Details: "Method setAttribute(String, Object): If an attribute was */
- /* replaced, the HttpSessionAttributeListener.attributeReplaced */
- /* method is called on all HttpSessionAttributeListeners in the web */
- /* application" */
- TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA6);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA7 */
- /* Details: "Method setAttribute(String, Object): If a new attribute */
- /* was added, the HttpSessionAttributeListener.attributeAdded method */
- /* is called on all HttpSessionAttributeListeners in the web */
- /* application" */
- TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA7);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeA8 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEA8);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB1 */
- /* Details: "Method setAttribute(String, Object, int): Stores an */
- /* attribute object under the specified name in the specified scope" */
- TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB2 */
- /* Details: "Method setAttribute(String, Object, int): Replaces the */
- /* attribute by the specified name if the attribute already exists" */
- TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB3 */
- /* Details: "Method setAttribute(String, Object, int): Removes the */
- /* attribute by the specified name if the object is null" */
- TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB3);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB4 */
- /* Details: "Method setAttribute(String, Object, int): If the */
- /* attribute object implements HttpSessionBindingListener, its */
- /* HttpSessionBindingListener.valueBound method is called" */
- TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB4);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB5 */
- /* Details: "Method setAttribute(String, Object, int): If an existing */
- /* attribute object implements HttpSessionBindingListener and is */
- /* replaced, its HttpSessionBindingListener.valueUnbound method is */
- /* called" */
- TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB5);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB6 */
- /* Details: "Method setAttribute(String, Object, int): If an */
- /* attribute was replaced, the */
- /* HttpSessionAttributeListener.attributeReplaced method is called on */
- /* all HttpSessionAttributeListeners in the web application" */
- TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB6);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB7 */
- /* Details: "Method setAttribute(String, Object, int): If a new */
- /* attribute was added, the */
- /* HttpSessionAttributeListener.attributeAdded method is called on */
- /* all HttpSessionAttributeListeners in the web application" */
- TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB7);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setAttributeB8 */
- /* Details: "Method setAttribute(String, Object, int): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETATTRIBUTEB8);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setMaxInactiveInterval1 */
- /* Details: "Method setMaxInactiveInterval(int): Specifies the time */
- /* in seconds between client requests before the portlet contaner */
- /* invalidates the session" */
- TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETMAXINACTIVEINTERVAL1);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_setMaxInactiveInterval2 */
- /* Details: "Method setMaxInactiveInterval(int): If the specified */
- /* time is negative, the session should never timeout" */
- TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_SETMAXINACTIVEINTERVAL2);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getPortletContext */
- /* Details: "Method getPortletContext(): Returns the PortletContext */
- /* object for this session" */
- TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETPORTLETCONTEXT);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeMapA1 */
- /* Details: "Method getAttributeMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.Object> object for */
- /* the attributes available in the PORTLET_SCOPE" */
- TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEMAPA1);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeMapA2 */
- /* Details: "Method getAttributeMap(): Returns an empty map if no */
- /* attributes exist in the PORTLET_SCOPE" */
- TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEMAPA2);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeMapB1 */
- /* Details: "Method getAttributeMap(int): Returns an */
- /* java.util.Map<java.lang.String,java.lang.Object> object for */
- /* the attributes available in the PORTLET_SCOPE" */
- TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEMAPB1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletSession_Render_getAttributeMapB2 */
- /* Details: "Method getAttributeMap(int): Returns an empty map if no */
- /* attributes exist in the PORTLET_SCOPE" */
- TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_RENDER_GETATTRIBUTEMAPB2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Action.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Action.java
deleted file mode 100644
index 18b6363..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Action.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PreferencesValidator_Action_event
- *
- */
-public class EnvironmentTests_PreferencesValidator_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PreferencesValidator_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_canBeConfigured */
- /* Details: "A PreferencesValidator can be configured in the */
- /* deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_ACTION_CANBECONFIGURED);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_validate1 */
- /* Details: "Method validate(PortletPreferences): The */
- /* validate(PortletPreferences): method is called when the */
- /* preferences are stored " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_ACTION_VALIDATE1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_validate2 */
- /* Details: "Method validate(PortletPreferences): If a */
- /* ValidatorException is thrown, the preferences are not stored" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_ACTION_VALIDATE2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_canBeConfigured */
- /* Details: "A PreferencesValidator can be configured in the */
- /* deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Action_canBeConfigured", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_validate1 */
- /* Details: "Method validate(PortletPreferences): The */
- /* validate(PortletPreferences): method is called when the */
- /* preferences are stored " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Action_validate1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Action_validate2 */
- /* Details: "Method validate(PortletPreferences): If a */
- /* ValidatorException is thrown, the preferences are not stored" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Action_validate2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
new file mode 100644
index 0000000..1aa12d4
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
@@ -0,0 +1,171 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PreferencesValidator_ApiAction_event
+ *
+ */
+public class EnvironmentTests_PreferencesValidator_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PreferencesValidator_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_canBeConfigured */
+ /* Details: "A PreferencesValidator can be configured in the */
+ /* deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_CANBECONFIGURED);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_validate1 */
+ /* Details: "Method validate(PortletPreferences): The */
+ /* validate(PortletPreferences): method is called when the */
+ /* preferences are stored " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_VALIDATE1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_validate2 */
+ /* Details: "Method validate(PortletPreferences): If a */
+ /* ValidatorException is thrown, the preferences are not stored" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_VALIDATE2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_canBeConfigured */
+ /* Details: "A PreferencesValidator can be configured in the */
+ /* deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiAction_canBeConfigured", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_validate1 */
+ /* Details: "Method validate(PortletPreferences): The */
+ /* validate(PortletPreferences): method is called when the */
+ /* preferences are stored " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiAction_validate1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_validate2 */
+ /* Details: "Method validate(PortletPreferences): If a */
+ /* ValidatorException is thrown, the preferences are not stored" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiAction_validate2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent.java
new file mode 100644
index 0000000..2f8b6de
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent.java
@@ -0,0 +1,135 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PreferencesValidator_ApiEvent_event
+ *
+ */
+public class EnvironmentTests_PreferencesValidator_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PreferencesValidator_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "EnvironmentTests_PreferencesValidator_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_canBeConfigured */
+ /* Details: "A PreferencesValidator can be configured in the */
+ /* deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiEvent_canBeConfigured", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_validate1 */
+ /* Details: "Method validate(PortletPreferences): The */
+ /* validate(PortletPreferences): method is called when the */
+ /* preferences are stored " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiEvent_validate1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_validate2 */
+ /* Details: "Method validate(PortletPreferences): If a */
+ /* ValidatorException is thrown, the preferences are not stored" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_ApiEvent_validate2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
new file mode 100644
index 0000000..93823bf
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
@@ -0,0 +1,134 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class EnvironmentTests_PreferencesValidator_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PreferencesValidator_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_canBeConfigured */
+ /* Details: "A PreferencesValidator can be configured in the */
+ /* deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_CANBECONFIGURED);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_validate1 */
+ /* Details: "Method validate(PortletPreferences): The */
+ /* validate(PortletPreferences): method is called when the */
+ /* preferences are stored " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_VALIDATE1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_validate2 */
+ /* Details: "Method validate(PortletPreferences): If a */
+ /* ValidatorException is thrown, the preferences are not stored" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_VALIDATE2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>EnvironmentTests_PreferencesValidator_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
new file mode 100644
index 0000000..df41626
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
@@ -0,0 +1,145 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PreferencesValidator_ApiResource_event
+ *
+ */
+public class EnvironmentTests_PreferencesValidator_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PreferencesValidator_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiResource_canBeConfigured */
+ /* Details: "A PreferencesValidator can be configured in the */
+ /* deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIRESOURCE_CANBECONFIGURED);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiResource_validate1 */
+ /* Details: "Method validate(PortletPreferences): The */
+ /* validate(PortletPreferences): method is called when the */
+ /* preferences are stored " */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIRESOURCE_VALIDATE1);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PreferencesValidator_ApiResource_validate2 */
+ /* Details: "Method validate(PortletPreferences): If a */
+ /* ValidatorException is thrown, the preferences are not stored" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIRESOURCE_VALIDATE2);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"EnvironmentTests_PreferencesValidator_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"EnvironmentTests_PreferencesValidator_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event.java
deleted file mode 100644
index e90c386..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PreferencesValidator_Event_event
- *
- */
-public class EnvironmentTests_PreferencesValidator_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PreferencesValidator_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "EnvironmentTests_PreferencesValidator_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_canBeConfigured */
- /* Details: "A PreferencesValidator can be configured in the */
- /* deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Event_canBeConfigured", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_validate1 */
- /* Details: "Method validate(PortletPreferences): The */
- /* validate(PortletPreferences): method is called when the */
- /* preferences are stored " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Event_validate1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_validate2 */
- /* Details: "Method validate(PortletPreferences): If a */
- /* ValidatorException is thrown, the preferences are not stored" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PreferencesValidator_Event_validate2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event_event.java
deleted file mode 100644
index a5acc61..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Event_event.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class EnvironmentTests_PreferencesValidator_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PreferencesValidator_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_canBeConfigured */
- /* Details: "A PreferencesValidator can be configured in the */
- /* deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_EVENT_CANBECONFIGURED);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_validate1 */
- /* Details: "Method validate(PortletPreferences): The */
- /* validate(PortletPreferences): method is called when the */
- /* preferences are stored " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_EVENT_VALIDATE1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Event_validate2 */
- /* Details: "Method validate(PortletPreferences): If a */
- /* ValidatorException is thrown, the preferences are not stored" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_EVENT_VALIDATE2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>EnvironmentTests_PreferencesValidator_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PreferencesValidator_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Resource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Resource.java
deleted file mode 100644
index 7d03224..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_Resource.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PreferencesValidator_Resource_event
- *
- */
-public class EnvironmentTests_PreferencesValidator_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PreferencesValidator_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Resource_canBeConfigured */
- /* Details: "A PreferencesValidator can be configured in the */
- /* deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_RESOURCE_CANBECONFIGURED);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Resource_validate1 */
- /* Details: "Method validate(PortletPreferences): The */
- /* validate(PortletPreferences): method is called when the */
- /* preferences are stored " */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_RESOURCE_VALIDATE1);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PreferencesValidator_Resource_validate2 */
- /* Details: "Method validate(PortletPreferences): If a */
- /* ValidatorException is thrown, the preferences are not stored" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_RESOURCE_VALIDATE2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"EnvironmentTests_PreferencesValidator_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"EnvironmentTests_PreferencesValidator_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[43/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
new file mode 100644
index 0000000..dff4229
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
@@ -0,0 +1,473 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletPreferences_ApiEvent_event
+ *
+ */
+public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletPreferences_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "EnvironmentTests_PortletPreferences_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValue1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValue2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValue3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValue4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue1 */
+ /* Details: "Method setValue(String, String): Sets the specified */
+ /* value for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValue1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue2 */
+ /* Details: "Method setValue(String, String): Any existing String or */
+ /* String[] value for the specified key is replaced" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValue2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue3 */
+ /* Details: "Method setValue(String, String): The value may be set to */
+ /* null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValue3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValue4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue5 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValue5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues1 */
+ /* Details: "Method setValues(String, String[]): Sets the specified */
+ /* value array for the specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues2 */
+ /* Details: "Method setValues(String, String[]): Any existing String */
+ /* or String[] Values for the specified key is replaced" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues3 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* be set to null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues4 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* contain null members" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues5 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues6 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_setValues6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getNames1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getNames2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_getMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset1 */
+ /* Details: "Method reset(): Removes the value associated with the */
+ /* specified key" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_reset1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_reset2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset3 */
+ /* Details: "Method reset(): Throws IllegalArgumentException if the */
+ /* key is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_reset3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store1 */
+ /* Details: "Method store(): Commits changes made to the preferences */
+ /* to the persistent store " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store2 */
+ /* Details: "Method store(): If the store(): method is not called, */
+ /* changes made are discarded" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store3 */
+ /* Details: "Method store(): If a validator is defined, it is called */
+ /* before the actual store is performed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store4 */
+ /* Details: "Method store(): If validation fails, the store is not */
+ /* performed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store6 */
+ /* Details: "Method store(): Throws ValidatorException if the */
+ /* validation performed by the associated validator fails " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_ApiEvent_store6", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
new file mode 100644
index 0000000..904a145
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
@@ -0,0 +1,406 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletPreferences_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUES1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUES2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUES3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUES4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue1 */
+ /* Details: "Method setValue(String, String): Sets the specified */
+ /* value for the specified key" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue2 */
+ /* Details: "Method setValue(String, String): Any existing String or */
+ /* String[] value for the specified key is replaced" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue3 */
+ /* Details: "Method setValue(String, String): The value may be set to */
+ /* null" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE3);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE4);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue5 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE5);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues1 */
+ /* Details: "Method setValues(String, String[]): Sets the specified */
+ /* value array for the specified key" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues2 */
+ /* Details: "Method setValues(String, String[]): Any existing String */
+ /* or String[] Values for the specified key is replaced" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues3 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* be set to null" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES3);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues4 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* contain null members" */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES4);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues5 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES5);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues6 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES6);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETNAMES1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETNAMES2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETMAP1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETMAP2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset1 */
+ /* Details: "Method reset(): Removes the value associated with the */
+ /* specified key" */
+ TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset3 */
+ /* Details: "Method reset(): Throws IllegalArgumentException if the */
+ /* key is null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET3);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store1 */
+ /* Details: "Method store(): Commits changes made to the preferences */
+ /* to the persistent store " */
+ TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE1);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store2 */
+ /* Details: "Method store(): If the store(): method is not called, */
+ /* changes made are discarded" */
+ TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE2);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store3 */
+ /* Details: "Method store(): If a validator is defined, it is called */
+ /* before the actual store is performed" */
+ TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE3);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store4 */
+ /* Details: "Method store(): If validation fails, the store is not */
+ /* performed" */
+ TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE4);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE5);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store6 */
+ /* Details: "Method store(): Throws ValidatorException if the */
+ /* validation performed by the associated validator fails " */
+ TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE6);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>EnvironmentTests_PortletPreferences_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
new file mode 100644
index 0000000..b7f3755
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
@@ -0,0 +1,265 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletPreferences_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletPreferences_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletPreferences_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUES1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUES2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUES3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUES4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_SETVALUE4);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETNAMES1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETNAMES2);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETMAP1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETMAP2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_RESET2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_STORE5);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
new file mode 100644
index 0000000..3ca9c9e
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
@@ -0,0 +1,417 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletPreferences_ApiResource_event
+ *
+ */
+public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletPreferences_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly1 */
+ /* Details: "Method isReadOnly(): Returns true if the preference */
+ /* specified by the key is defined to be read-only in the deployment */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly2 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is not defined to be read-only in the */
+ /* deployment descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly3 */
+ /* Details: "Method isReadOnly(): Returns false if the preference */
+ /* specified by the key is undefined" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly4 */
+ /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
+ /* the key is null" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValue1 */
+ /* Details: "Method getValue(String, String): Returns the first */
+ /* String value for the specified key" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValue2 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if there is no value for the specified key " */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValue3 */
+ /* Details: "Method getValue(String, String): Returns the specified */
+ /* default value if the existing value for the specified key is null */
+ /* " */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE3);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValue4 */
+ /* Details: "Method getValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE4);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValues1 */
+ /* Details: "Method getValues(String, String[]): Returns the values */
+ /* String[] for the specified key" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUES1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValues2 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if there is no Values for the specified */
+ /* key " */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUES2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValues3 */
+ /* Details: "Method getValues(String, String[]): Returns the */
+ /* specified default String[] if the existing String[] for the */
+ /* specified key is null " */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUES3);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValues4 */
+ /* Details: "Method getValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUES4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue1 */
+ /* Details: "Method setValue(String, String): Sets the specified */
+ /* value for the specified key" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE1);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue2 */
+ /* Details: "Method setValue(String, String): Any existing String or */
+ /* String[] value for the specified key is replaced" */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE2);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue3 */
+ /* Details: "Method setValue(String, String): The value may be set to */
+ /* null" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE3);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue4 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE4);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue5 */
+ /* Details: "Method setValue(String, String): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE5);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues1 */
+ /* Details: "Method setValues(String, String[]): Sets the specified */
+ /* value array for the specified key" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues2 */
+ /* Details: "Method setValues(String, String[]): Any existing String */
+ /* or String[] Values for the specified key is replaced" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues3 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* be set to null" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES3);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues4 */
+ /* Details: "Method setValues(String, String[]): The value array may */
+ /* contain null members" */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES4);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues5 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* ReadOnlyException if the preference cannot be modified for this */
+ /* request" */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES5);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues6 */
+ /* Details: "Method setValues(String, String[]): Throws */
+ /* IllegalArgumentException if the key is null" */
+ TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES6);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getNames1 */
+ /* Details: "Method getNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available preference keys" */
+ TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETNAMES1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getNames2 */
+ /* Details: "Method getNames(): Returns an empty Enumeration if no */
+ /* preference keys are available" */
+ TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETNAMES2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getMap1 */
+ /* Details: "Method getMap(): Returns an */
+ /* java.util.Map<java.lang.String> containing the available */
+ /* preferences" */
+ TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETMAP1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getMap2 */
+ /* Details: "Method getMap(): Returns an empty Map if no preferences */
+ /* are available" */
+ TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETMAP2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset1 */
+ /* Details: "Method reset(): Removes the value associated with the */
+ /* specified key" */
+ TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset2 */
+ /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* preference cannot be modified for this request" */
+ TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset3 */
+ /* Details: "Method reset(): Throws IllegalArgumentException if the */
+ /* key is null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET3);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store1 */
+ /* Details: "Method store(): Commits changes made to the preferences */
+ /* to the persistent store " */
+ TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE1);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store2 */
+ /* Details: "Method store(): If the store(): method is not called, */
+ /* changes made are discarded" */
+ TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE2);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store3 */
+ /* Details: "Method store(): If a validator is defined, it is called */
+ /* before the actual store is performed" */
+ TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE3);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store4 */
+ /* Details: "Method store(): If validation fails, the store is not */
+ /* performed" */
+ TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE4);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store5 */
+ /* Details: "Method store(): Throws IllegalStateException if store(): */
+ /* is called in the render method " */
+ TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE5);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store6 */
+ /* Details: "Method store(): Throws ValidatorException if the */
+ /* validation performed by the associated validator fails " */
+ TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE6);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"EnvironmentTests_PortletPreferences_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"EnvironmentTests_PortletPreferences_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
[45/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
new file mode 100644
index 0000000..68b7064
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
@@ -0,0 +1,548 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet EnvironmentTests_PortletContext_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletContext_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ EnvironmentTests_PortletContext_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo1 */
+ /* Details: "Method getServerInfo(): Returns a String containing */
+ /* information about the portlet container" */
+ TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo2 */
+ /* Details: "Method getServerInfo(): The returned string is of the */
+ /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is */
+ /* the version, and $3 is optional additional information" */
+ TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo3 */
+ /* Details: "Method getServerInfo(): The returned string contains the */
+ /* container name" */
+ TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo4 */
+ /* Details: "Method getServerInfo(): The returned string contains the */
+ /* container version" */
+ TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo5 */
+ /* Details: "Method getServerInfo(): The returned string may not be */
+ /* null" */
+ TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO5);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher1 */
+ /* Details: "Method getRequestDispatcher(String): Returns a */
+ /* PortletRequestDispatcher for the specified path" */
+ TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER1);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher2 */
+ /* Details: "Method getRequestDispatcher(String): Returns null if the */
+ /* specified path does not begin with \"/\"" */
+ TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER2);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher3 */
+ /* Details: "Method getRequestDispatcher(String): Returns null if any */
+ /* other error occurs" */
+ TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER3);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher1 */
+ /* Details: "Method getNamedDispatcher(String): Returns a */
+ /* PortletRequestDispatcher for the specified servlet name" */
+ TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETNAMEDDISPATCHER1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher2 */
+ /* Details: "Method getNamedDispatcher(String): Returns null if an */
+ /* error occurs" */
+ TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETNAMEDDISPATCHER2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream1 */
+ /* Details: "Method getResourceAsStream(String): Returns a */
+ /* java.io.InputStream for the resource at the specified path" */
+ TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream2 */
+ /* Details: "Method getResourceAsStream(String): Protected resources */
+ /* can be accessed by prefixing the path with \"/WEB-INF/\"" */
+ TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM2);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream3 */
+ /* Details: "Method getResourceAsStream(String): Returns null if no */
+ /* resource exists at the specified path" */
+ TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM3);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMajorVersion */
+ /* Details: "Method getMajorVersion(): Returns the major version of */
+ /* the portlet API supported by the container " */
+ TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMAJORVERSION);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMinorVersion */
+ /* Details: "Method getMinorVersion(): Returns the minor version of */
+ /* the portlet API supported by the container" */
+ TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMINORVERSION);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType1 */
+ /* Details: "Method getMimeType(String): Returns a String containing */
+ /* the MIME type of the specified file name" */
+ TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType2 */
+ /* Details: "Method getMimeType(String): Returns \"text/html\" for an */
+ /* HTML file with the approriate <mime-mapping> element in */
+ /* web.xml " */
+ TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType3 */
+ /* Details: "Method getMimeType(String): Returns \"image/gif\" for an */
+ /* image file with the approriate <mime-mapping> element in */
+ /* web.xml" */
+ TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE3);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType4 */
+ /* Details: "Method getMimeType(String): Returns null if the MIME */
+ /* type cannot be determined" */
+ TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE4);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType5 */
+ /* Details: "Method getMimeType(String): Returns null if the file */
+ /* does not exist" */
+ TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE5);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath1 */
+ /* Details: "Method getRealPath(String): Returns a String containing */
+ /* the OS-specific real path for the given virtual path" */
+ TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH1);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath2 */
+ /* Details: "Method getRealPath(String): Returns null if the file */
+ /* does not exist" */
+ TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH2);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath3 */
+ /* Details: "Method getRealPath(String): Returns null if the */
+ /* transformation cannot be performed" */
+ TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH3);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths1 */
+ /* Details: "Method getResourcePaths(String): Returns a */
+ /* java.util.Set<java.lang.String> containing all the paths to */
+ /* resources within the web application longest sub-path of which */
+ /* matches the supplied path argument " */
+ TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths2 */
+ /* Details: "Method getResourcePaths(String): A path indicating a */
+ /* file does not end with a slash (/)" */
+ TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths3 */
+ /* Details: "Method getResourcePaths(String): A path indicating a */
+ /* subdirectory ends with a slash (/)" */
+ TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS3);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths4 */
+ /* Details: "Method getResourcePaths(String): Returns null if there */
+ /* are no resources in the web application of which the path begins */
+ /* with the supplied path" */
+ TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS4);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource1 */
+ /* Details: "Method getResource(String): Returns a java.net.URL */
+ /* object that maps to the specified path" */
+ TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource2 */
+ /* Details: "Method getResource(String): Returns null if no resource */
+ /* is mapped to the path" */
+ TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource3 */
+ /* Details: "Method getResource(String): Throws */
+ /* java.net.MalformedURLException if the path does not begin with a */
+ /* slash (/)" */
+ TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE3);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource4 */
+ /* Details: "Method getResource(String): Throws */
+ /* java.net.MalformedURLException if the path is malformed" */
+ TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE4);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* attribute value for the specified name" */
+ TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if there is no */
+ /* attribute value for the specified name" */
+ TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* attribute names in the PortletContext" */
+ TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTENAMES1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if no attributes are available" */
+ TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTENAMES2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter1 */
+ /* Details: "Method getInitParameter(String): Returns a */
+ /* java.lang.String PortletContext initialization parameter value for */
+ /* the specified name" */
+ TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER1);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter2 */
+ /* Details: "Method getInitParameter(String): Returns null if there */
+ /* is no inittialization parameter for the specified name" */
+ TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER2);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter3 */
+ /* Details: "Method getInitParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER3);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames1 */
+ /* Details: "Method getInitParameterNames(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* InitParameter names in the PortletContext" */
+ TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames2 */
+ /* Details: "Method getInitParameterNames(): Returns an empty */
+ /* Enumeration if no InitParameters are available" */
+ TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_logA */
+ /* Details: "Method log(String): Writes specified message to a */
+ /* portlet log file" */
+ TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_LOGA);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_logB */
+ /* Details: "Method log(String, Throwable): Writes specified message */
+ /* and stack trace to a portlet log file" */
+ TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_LOGB);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* with the specified nale" */
+ TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_REMOVEATTRIBUTE1);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_REMOVEATTRIBUTE2);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Sets an attribute */
+ /* for the specified name in the portlet context" */
+ TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE1);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Any existing */
+ /* attribute for the specified name is removed" */
+ TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE2);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): If the specified */
+ /* name is null, the attribute is removed" */
+ TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE3);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute4 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE4);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 */
+ /* Details: "Method getPortletContextName(): Returns the portlet */
+ /* application name" */
+ TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME1);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2 */
+ /* Details: "Method getPortletContextName(): The name is as specified */
+ /* in web.xml the <display-name> element" */
+ TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME2);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName3 */
+ /* Details: "Method getPortletContextName(): Returns null if no */
+ /* web.xml <display-name> element is defined" */
+ TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME3);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions1 */
+ /* Details: "Method getContainerRuntimeOptions(): Returns an */
+ /* java.util.Enumeration<java.lang.String> containing the */
+ /* available runtime option names" */
+ TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions2 */
+ /* Details: "Method getContainerRuntimeOptions(): Returns an empty */
+ /* Enumeration if no runtime options are available" */
+ TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
deleted file mode 100644
index b0f1426..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
+++ /dev/null
@@ -1,548 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletContext_Render_event
- *
- */
-public class EnvironmentTests_PortletContext_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletContext_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo1 */
- /* Details: "Method getServerInfo(): Returns a String containing */
- /* information about the portlet container" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo2 */
- /* Details: "Method getServerInfo(): The returned string is of the */
- /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is */
- /* the version, and $3 is optional additional information" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo3 */
- /* Details: "Method getServerInfo(): The returned string contains the */
- /* container name" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo4 */
- /* Details: "Method getServerInfo(): The returned string contains the */
- /* container version" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo5 */
- /* Details: "Method getServerInfo(): The returned string may not be */
- /* null" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO5);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher1 */
- /* Details: "Method getRequestDispatcher(String): Returns a */
- /* PortletRequestDispatcher for the specified path" */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER1);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher2 */
- /* Details: "Method getRequestDispatcher(String): Returns null if the */
- /* specified path does not begin with \"/\"" */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER2);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher3 */
- /* Details: "Method getRequestDispatcher(String): Returns null if any */
- /* other error occurs" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER3);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getNamedDispatcher1 */
- /* Details: "Method getNamedDispatcher(String): Returns a */
- /* PortletRequestDispatcher for the specified servlet name" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETNAMEDDISPATCHER1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getNamedDispatcher2 */
- /* Details: "Method getNamedDispatcher(String): Returns null if an */
- /* error occurs" */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETNAMEDDISPATCHER2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream1 */
- /* Details: "Method getResourceAsStream(String): Returns a */
- /* java.io.InputStream for the resource at the specified path" */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream2 */
- /* Details: "Method getResourceAsStream(String): Protected resources */
- /* can be accessed by prefixing the path with \"/WEB-INF/\"" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM2);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream3 */
- /* Details: "Method getResourceAsStream(String): Returns null if no */
- /* resource exists at the specified path" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM3);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMajorVersion */
- /* Details: "Method getMajorVersion(): Returns the major version of */
- /* the portlet API supported by the container " */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMAJORVERSION);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMinorVersion */
- /* Details: "Method getMinorVersion(): Returns the minor version of */
- /* the portlet API supported by the container" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMINORVERSION);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType1 */
- /* Details: "Method getMimeType(String): Returns a String containing */
- /* the MIME type of the specified file name" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType2 */
- /* Details: "Method getMimeType(String): Returns \"text/html\" for an */
- /* HTML file with the approriate <mime-mapping> element in */
- /* web.xml " */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType3 */
- /* Details: "Method getMimeType(String): Returns \"image/gif\" for an */
- /* image file with the approriate <mime-mapping> element in */
- /* web.xml" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE3);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType4 */
- /* Details: "Method getMimeType(String): Returns null if the MIME */
- /* type cannot be determined" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE4);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType5 */
- /* Details: "Method getMimeType(String): Returns null if the file */
- /* does not exist" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE5);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath1 */
- /* Details: "Method getRealPath(String): Returns a String containing */
- /* the OS-specific real path for the given virtual path" */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH1);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath2 */
- /* Details: "Method getRealPath(String): Returns null if the file */
- /* does not exist" */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH2);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath3 */
- /* Details: "Method getRealPath(String): Returns null if the */
- /* transformation cannot be performed" */
- TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH3);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths1 */
- /* Details: "Method getResourcePaths(String): Returns a */
- /* java.util.Set<java.lang.String> containing all the paths to */
- /* resources within the web application longest sub-path of which */
- /* matches the supplied path argument " */
- TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths2 */
- /* Details: "Method getResourcePaths(String): A path indicating a */
- /* file does not end with a slash (/)" */
- TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths3 */
- /* Details: "Method getResourcePaths(String): A path indicating a */
- /* subdirectory ends with a slash (/)" */
- TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS3);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths4 */
- /* Details: "Method getResourcePaths(String): Returns null if there */
- /* are no resources in the web application of which the path begins */
- /* with the supplied path" */
- TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS4);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource1 */
- /* Details: "Method getResource(String): Returns a java.net.URL */
- /* object that maps to the specified path" */
- TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource2 */
- /* Details: "Method getResource(String): Returns null if no resource */
- /* is mapped to the path" */
- TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource3 */
- /* Details: "Method getResource(String): Throws */
- /* java.net.MalformedURLException if the path does not begin with a */
- /* slash (/)" */
- TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource4 */
- /* Details: "Method getResource(String): Throws */
- /* java.net.MalformedURLException if the path is malformed" */
- TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE4);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* attribute value for the specified name" */
- TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE1);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if there is no */
- /* attribute value for the specified name" */
- TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE2);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* attribute names in the PortletContext" */
- TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTENAMES1);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if no attributes are available" */
- TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTENAMES2);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter1 */
- /* Details: "Method getInitParameter(String): Returns a */
- /* java.lang.String PortletContext initialization parameter value for */
- /* the specified name" */
- TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER1);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter2 */
- /* Details: "Method getInitParameter(String): Returns null if there */
- /* is no inittialization parameter for the specified name" */
- TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER2);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter3 */
- /* Details: "Method getInitParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER3);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameterNames1 */
- /* Details: "Method getInitParameterNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* InitParameter names in the PortletContext" */
- TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETERNAMES1);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameterNames2 */
- /* Details: "Method getInitParameterNames(): Returns an empty */
- /* Enumeration if no InitParameters are available" */
- TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETERNAMES2);
- /* TODO: implement test */
- tr40.appendTcDetail("Not implemented.");
- tr40.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_logA */
- /* Details: "Method log(String): Writes specified message to a */
- /* portlet log file" */
- TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_LOGA);
- /* TODO: implement test */
- tr41.appendTcDetail("Not implemented.");
- tr41.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_logB */
- /* Details: "Method log(String, Throwable): Writes specified message */
- /* and stack trace to a portlet log file" */
- TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_LOGB);
- /* TODO: implement test */
- tr42.appendTcDetail("Not implemented.");
- tr42.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* with the specified nale" */
- TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_REMOVEATTRIBUTE1);
- /* TODO: implement test */
- tr43.appendTcDetail("Not implemented.");
- tr43.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
- tr44.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Sets an attribute */
- /* for the specified name in the portlet context" */
- TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE1);
- /* TODO: implement test */
- tr45.appendTcDetail("Not implemented.");
- tr45.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Any existing */
- /* attribute for the specified name is removed" */
- TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE2);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
- tr46.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): If the specified */
- /* name is null, the attribute is removed" */
- TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
- tr47.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute4 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE4);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
- tr48.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName1 */
- /* Details: "Method getPortletContextName(): Returns the portlet */
- /* application name" */
- TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME1);
- /* TODO: implement test */
- tr49.appendTcDetail("Not implemented.");
- tr49.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName2 */
- /* Details: "Method getPortletContextName(): The name is as specified */
- /* in web.xml the <display-name> element" */
- TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME2);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
- tr50.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName3 */
- /* Details: "Method getPortletContextName(): Returns null if no */
- /* web.xml <display-name> element is defined" */
- TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME3);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
- tr51.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions1 */
- /* Details: "Method getContainerRuntimeOptions(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available runtime option names" */
- TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETCONTAINERRUNTIMEOPTIONS1);
- /* TODO: implement test */
- tr52.appendTcDetail("Not implemented.");
- tr52.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions2 */
- /* Details: "Method getContainerRuntimeOptions(): Returns an empty */
- /* Enumeration if no runtime options are available" */
- TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETCONTAINERRUNTIMEOPTIONS2);
- /* TODO: implement test */
- tr53.appendTcDetail("Not implemented.");
- tr53.writeTo(writer);
-
- }
-
-}
[42/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event.java
deleted file mode 100644
index 4a3c641..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event.java
+++ /dev/null
@@ -1,473 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletPreferences_Event_event
- *
- */
-public class EnvironmentTests_PortletPreferences_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletPreferences_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "EnvironmentTests_PortletPreferences_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_isReadOnly1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_isReadOnly2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_isReadOnly3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_isReadOnly4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValue1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValue2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValue3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValue4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue1 */
- /* Details: "Method setValue(String, String): Sets the specified */
- /* value for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValue1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue2 */
- /* Details: "Method setValue(String, String): Any existing String or */
- /* String[] value for the specified key is replaced" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValue2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue3 */
- /* Details: "Method setValue(String, String): The value may be set to */
- /* null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValue3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValue4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue5 */
- /* Details: "Method setValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValue5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues1 */
- /* Details: "Method setValues(String, String[]): Sets the specified */
- /* value array for the specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues2 */
- /* Details: "Method setValues(String, String[]): Any existing String */
- /* or String[] Values for the specified key is replaced" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues3 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* be set to null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues4 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* contain null members" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues5 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues6 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_setValues6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_getMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_reset1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_reset2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_reset3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store1 */
- /* Details: "Method store(): Commits changes made to the preferences */
- /* to the persistent store " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store2 */
- /* Details: "Method store(): If the store(): method is not called, */
- /* changes made are discarded" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store3 */
- /* Details: "Method store(): If a validator is defined, it is called */
- /* before the actual store is performed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store4 */
- /* Details: "Method store(): If validation fails, the store is not */
- /* performed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store6 */
- /* Details: "Method store(): Throws ValidatorException if the */
- /* validation performed by the associated validator fails " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2EnvironmentTests_PortletPreferences_Event_store6", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event_event.java
deleted file mode 100644
index 4d8ca10..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Event_event.java
+++ /dev/null
@@ -1,406 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class EnvironmentTests_PortletPreferences_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletPreferences_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_ISREADONLY1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_ISREADONLY2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_ISREADONLY3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUES1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUES2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUES3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue1 */
- /* Details: "Method setValue(String, String): Sets the specified */
- /* value for the specified key" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUE1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue2 */
- /* Details: "Method setValue(String, String): Any existing String or */
- /* String[] value for the specified key is replaced" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUE2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue3 */
- /* Details: "Method setValue(String, String): The value may be set to */
- /* null" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUE3);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUE4);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValue5 */
- /* Details: "Method setValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues1 */
- /* Details: "Method setValues(String, String[]): Sets the specified */
- /* value array for the specified key" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues2 */
- /* Details: "Method setValues(String, String[]): Any existing String */
- /* or String[] Values for the specified key is replaced" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues3 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* be set to null" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES3);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues4 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* contain null members" */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES4);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues5 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES5);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_setValues6 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETNAMES1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETNAMES2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETMAP1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_GETMAP2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
- TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_RESET1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_RESET2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
- TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store1 */
- /* Details: "Method store(): Commits changes made to the preferences */
- /* to the persistent store " */
- TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE1);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store2 */
- /* Details: "Method store(): If the store(): method is not called, */
- /* changes made are discarded" */
- TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE2);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store3 */
- /* Details: "Method store(): If a validator is defined, it is called */
- /* before the actual store is performed" */
- TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE3);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store4 */
- /* Details: "Method store(): If validation fails, the store is not */
- /* performed" */
- TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE4);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE5);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Event_store6 */
- /* Details: "Method store(): Throws ValidatorException if the */
- /* validation performed by the associated validator fails " */
- TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_EVENT_STORE6);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>EnvironmentTests_PortletPreferences_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "EnvironmentTests_PortletPreferences_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Render.java
deleted file mode 100644
index 349965c..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Render.java
+++ /dev/null
@@ -1,265 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletPreferences_Render_event
- *
- */
-public class EnvironmentTests_PortletPreferences_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletPreferences_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_ISREADONLY1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_ISREADONLY2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_ISREADONLY3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUES1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUES2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUES3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_SETVALUE4);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETNAMES1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETNAMES2);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETMAP1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_GETMAP2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_RESET2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Render_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RENDER_STORE5);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Resource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Resource.java
deleted file mode 100644
index 67cff50..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_Resource.java
+++ /dev/null
@@ -1,417 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet EnvironmentTests_PortletPreferences_Resource_event
- *
- */
-public class EnvironmentTests_PortletPreferences_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- EnvironmentTests_PortletPreferences_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_ISREADONLY1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_ISREADONLY2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
- TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_ISREADONLY3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
- TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValue1 */
- /* Details: "Method getValue(String, String): Returns the first */
- /* String value for the specified key" */
- TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUE1);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValue2 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if there is no value for the specified key " */
- TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUE2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValue3 */
- /* Details: "Method getValue(String, String): Returns the specified */
- /* default value if the existing value for the specified key is null */
- /* " */
- TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValue4 */
- /* Details: "Method getValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValues1 */
- /* Details: "Method getValues(String, String[]): Returns the values */
- /* String[] for the specified key" */
- TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUES1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValues2 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if there is no Values for the specified */
- /* key " */
- TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUES2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValues3 */
- /* Details: "Method getValues(String, String[]): Returns the */
- /* specified default String[] if the existing String[] for the */
- /* specified key is null " */
- TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUES3);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getValues4 */
- /* Details: "Method getValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValue1 */
- /* Details: "Method setValue(String, String): Sets the specified */
- /* value for the specified key" */
- TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUE1);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValue2 */
- /* Details: "Method setValue(String, String): Any existing String or */
- /* String[] value for the specified key is replaced" */
- TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUE2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValue3 */
- /* Details: "Method setValue(String, String): The value may be set to */
- /* null" */
- TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUE3);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValue4 */
- /* Details: "Method setValue(String, String): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUE4);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValue5 */
- /* Details: "Method setValue(String, String): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues1 */
- /* Details: "Method setValues(String, String[]): Sets the specified */
- /* value array for the specified key" */
- TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES1);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues2 */
- /* Details: "Method setValues(String, String[]): Any existing String */
- /* or String[] Values for the specified key is replaced" */
- TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES2);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues3 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* be set to null" */
- TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES3);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues4 */
- /* Details: "Method setValues(String, String[]): The value array may */
- /* contain null members" */
- TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES4);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues5 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* ReadOnlyException if the preference cannot be modified for this */
- /* request" */
- TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES5);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_setValues6 */
- /* Details: "Method setValues(String, String[]): Throws */
- /* IllegalArgumentException if the key is null" */
- TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getNames1 */
- /* Details: "Method getNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* available preference keys" */
- TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETNAMES1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getNames2 */
- /* Details: "Method getNames(): Returns an empty Enumeration if no */
- /* preference keys are available" */
- TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETNAMES2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getMap1 */
- /* Details: "Method getMap(): Returns an */
- /* java.util.Map<java.lang.String> containing the available */
- /* preferences" */
- TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETMAP1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_getMap2 */
- /* Details: "Method getMap(): Returns an empty Map if no preferences */
- /* are available" */
- TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_GETMAP2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
- TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_RESET1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
- /* preference cannot be modified for this request" */
- TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_RESET2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
- TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store1 */
- /* Details: "Method store(): Commits changes made to the preferences */
- /* to the persistent store " */
- TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE1);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store2 */
- /* Details: "Method store(): If the store(): method is not called, */
- /* changes made are discarded" */
- TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE2);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store3 */
- /* Details: "Method store(): If a validator is defined, it is called */
- /* before the actual store is performed" */
- TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE3);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store4 */
- /* Details: "Method store(): If validation fails, the store is not */
- /* performed" */
- TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE4);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store5 */
- /* Details: "Method store(): Throws IllegalStateException if store(): */
- /* is called in the render method " */
- TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE5);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2EnvironmentTests_PortletPreferences_Resource_store6 */
- /* Details: "Method store(): Throws ValidatorException if the */
- /* validation performed by the associated validator fails " */
- TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_RESOURCE_STORE6);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"EnvironmentTests_PortletPreferences_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"EnvironmentTests_PortletPreferences_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[17/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
new file mode 100644
index 0000000..7247177
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
@@ -0,0 +1,367 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_MimeResponse_ApiRender_event
+ *
+ */
+public class ResponseTests_MimeResponse_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_MimeResponse_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldEXPIRATION_CACHE */
+ /* Details: "Has String field EXPIRATION_CACHE with value of */
+ /* \"portlet.expiration-cache\"" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE );
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldCACHE_SCOPE */
+ /* Details: "Has String field CACHE_SCOPE with value of */
+ /* \"portlet.cache-scope\"" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE );
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPUBLIC_SCOPE */
+ /* Details: "Has String field PUBLIC_SCOPE with value of */
+ /* \"portlet.public-scope\"" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE );
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPRIVATE_SCOPE */
+ /* Details: "Has String field PRIVATE_SCOPE with value of */
+ /* \"portlet.private-scope\"" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPRIVATE_SCOPE );
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldETAG */
+ /* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDETAG );
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldUSE_CACHED_CONTENT */
+ /* Details: "Has String field USE_CACHED_CONTENT with value of */
+ /* \"portlet.use-cached-content\"" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDUSE_CACHED_CONTENT );
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldNAMESPACED_RESPONSE */
+ /* Details: "Has String field NAMESPACED_RESPONSE with value of */
+ /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDNAMESPACED_RESPONSE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldMARKUP_HEAD_ELEMENT */
+ /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
+ /* \"javax.portlet.markup.head.element\"" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDMARKUP_HEAD_ELEMENT);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType1 */
+ /* Details: "Method getContentType(): Returns a String containing the */
+ /* MIME type that can be used with the response" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType2 */
+ /* Details: "Method getContentType(): Returns null if no content type */
+ /* is set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType1 */
+ /* Details: "Method setContentType(String): Sets the MIME type for */
+ /* the response" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType4 */
+ /* Details: "Method setContentType(String): Throws */
+ /* IllegalArgumentException if the specified MIME type is invalid" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Returns a String */
+ /* containing the name of the charset used for the response body" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter1 */
+ /* Details: "Method getWriter(): Returns a PrintWriter object" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter2 */
+ /* Details: "Method getWriter(): Throws IllegalStateException if */
+ /* called after the getPortletOutputStream method has been called" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER2);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale */
+ /* representing the locale assigned to the response" */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETLOCALE);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize1 */
+ /* Details: "Method setBufferSize(int): Sets the preferred buffer */
+ /* size for the response body" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE1);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize2 */
+ /* Details: "Method setBufferSize(int): Throws IllegalStateException */
+ /* if called after content has been written" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize1 */
+ /* Details: "Method getBufferSize(): Returns an int designating the */
+ /* actual buffer size used for the response" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE1);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize2 */
+ /* Details: "Method getBufferSize(): Returns null if buffering is not */
+ /* used" */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE2);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_flushBuffer1 */
+ /* Details: "Method flushBuffer(): Returns void and flushes buffer to */
+ /* OutputStream" */
+ TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FLUSHBUFFER1);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer1 */
+ /* Details: "Method resetBuffer(): Returns void and clears and data */
+ /* and properties from the buffer" */
+ TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER1);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer2 */
+ /* Details: "Method resetBuffer(): Throws IllegalStateException if */
+ /* called after the response has been committed" */
+ TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER2);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted1 */
+ /* Details: "Method isCommitted(): Returns true if the response has */
+ /* been committed" */
+ TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted2 */
+ /* Details: "Method isCommitted(): Returns false if the response has */
+ /* not been committed" */
+ TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset1 */
+ /* Details: "Method reset(): Returns void and clears and data and */
+ /* properties from the buffer" */
+ TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset2 */
+ /* Details: "Method reset(): Throws IllegalStateException if called */
+ /* after the response has been committed" */
+ TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream1 */
+ /* Details: "Method getPortletOutputStream(): Returns a */
+ /* PortletOutputStream object" */
+ TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream2 */
+ /* Details: "Method getPortletOutputStream(): Throws */
+ /* IllegalStateException if called after the getWriter method has */
+ /* been called" */
+ TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createRenderURL */
+ /* Details: "Method createRenderURL(): Returns a PortletURL object */
+ /* representing a render URL targeting the portlet" */
+ TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERENDERURL);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createActionURL */
+ /* Details: "Method createActionURL(): Returns a PortletURL object */
+ /* representing an action URL targeting the portlet" */
+ TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATEACTIONURL);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createResourceURL */
+ /* Details: "Method createResourceURL(): Returns a ResourceURL object */
+ /* targeting the portlet" */
+ TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERESOURCEURL);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getCacheControl */
+ /* Details: "Method getCacheControl(): Returns a CacheControl object" */
+ TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCACHECONTROL);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
new file mode 100644
index 0000000..049fa5c
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
@@ -0,0 +1,382 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_MimeResponse_ApiResource_event
+ *
+ */
+public class ResponseTests_MimeResponse_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_MimeResponse_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldEXPIRATION_CACHE */
+ /* Details: "Has String field EXPIRATION_CACHE with value of */
+ /* \"portlet.expiration-cache\"" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDEXPIRATION_CACHE );
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldCACHE_SCOPE */
+ /* Details: "Has String field CACHE_SCOPE with value of */
+ /* \"portlet.cache-scope\"" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDCACHE_SCOPE );
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldPUBLIC_SCOPE */
+ /* Details: "Has String field PUBLIC_SCOPE with value of */
+ /* \"portlet.public-scope\"" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPUBLIC_SCOPE );
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldPRIVATE_SCOPE */
+ /* Details: "Has String field PRIVATE_SCOPE with value of */
+ /* \"portlet.private-scope\"" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPRIVATE_SCOPE );
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldETAG */
+ /* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDETAG );
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldUSE_CACHED_CONTENT */
+ /* Details: "Has String field USE_CACHED_CONTENT with value of */
+ /* \"portlet.use-cached-content\"" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDUSE_CACHED_CONTENT );
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldNAMESPACED_RESPONSE */
+ /* Details: "Has String field NAMESPACED_RESPONSE with value of */
+ /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDNAMESPACED_RESPONSE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_fieldMARKUP_HEAD_ELEMENT */
+ /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
+ /* \"javax.portlet.markup.head.element\"" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDMARKUP_HEAD_ELEMENT);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getContentType1 */
+ /* Details: "Method getContentType(): Returns a String containing the */
+ /* MIME type that can be used with the response" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getContentType2 */
+ /* Details: "Method getContentType(): Returns null if no content type */
+ /* is set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCONTENTTYPE2);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_setContentType1 */
+ /* Details: "Method setContentType(String): Sets the MIME type for */
+ /* the response" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_setContentType4 */
+ /* Details: "Method setContentType(String): Throws */
+ /* IllegalArgumentException if the specified MIME type is invalid" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETCONTENTTYPE4);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Returns a String */
+ /* containing the name of the charset used for the response body" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getWriter1 */
+ /* Details: "Method getWriter(): Returns a PrintWriter object" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETWRITER1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getWriter2 */
+ /* Details: "Method getWriter(): Throws IllegalStateException if */
+ /* called after the getPortletOutputStream method has been called" */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETWRITER2);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale */
+ /* representing the locale assigned to the response" */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETLOCALE);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_setBufferSize1 */
+ /* Details: "Method setBufferSize(int): Sets the preferred buffer */
+ /* size for the response body" */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETBUFFERSIZE1);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_setBufferSize2 */
+ /* Details: "Method setBufferSize(int): Throws IllegalStateException */
+ /* if called after content has been written" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETBUFFERSIZE2);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getBufferSize1 */
+ /* Details: "Method getBufferSize(): Returns an int designating the */
+ /* actual buffer size used for the response" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETBUFFERSIZE1);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getBufferSize2 */
+ /* Details: "Method getBufferSize(): Returns null if buffering is not */
+ /* used" */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETBUFFERSIZE2);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_flushBuffer1 */
+ /* Details: "Method flushBuffer(): Returns void and flushes buffer to */
+ /* OutputStream" */
+ TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FLUSHBUFFER1);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_resetBuffer1 */
+ /* Details: "Method resetBuffer(): Returns void and clears and data */
+ /* and properties from the buffer" */
+ TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESETBUFFER1);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_resetBuffer2 */
+ /* Details: "Method resetBuffer(): Throws IllegalStateException if */
+ /* called after the response has been committed" */
+ TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESETBUFFER2);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_isCommitted1 */
+ /* Details: "Method isCommitted(): Returns true if the response has */
+ /* been committed" */
+ TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_ISCOMMITTED1);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_isCommitted2 */
+ /* Details: "Method isCommitted(): Returns false if the response has */
+ /* not been committed" */
+ TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_ISCOMMITTED2);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_reset1 */
+ /* Details: "Method reset(): Returns void and clears and data and */
+ /* properties from the buffer" */
+ TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESET1);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_reset2 */
+ /* Details: "Method reset(): Throws IllegalStateException if called */
+ /* after the response has been committed" */
+ TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESET2);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getPortletOutputStream1 */
+ /* Details: "Method getPortletOutputStream(): Returns a */
+ /* PortletOutputStream object" */
+ TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETPORTLETOUTPUTSTREAM1);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getPortletOutputStream2 */
+ /* Details: "Method getPortletOutputStream(): Throws */
+ /* IllegalStateException if called after the getWriter method has */
+ /* been called" */
+ TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETPORTLETOUTPUTSTREAM2);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_createRenderURL */
+ /* Details: "Method createRenderURL(): Returns a PortletURL object */
+ /* representing a render URL targeting the portlet" */
+ TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATERENDERURL);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_createActionURL */
+ /* Details: "Method createActionURL(): Returns a PortletURL object */
+ /* representing an action URL targeting the portlet" */
+ TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATEACTIONURL);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_createResourceURL */
+ /* Details: "Method createResourceURL(): Returns a ResourceURL object */
+ /* targeting the portlet" */
+ TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATERESOURCEURL);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_MimeResponse_ApiResource_getCacheControl */
+ /* Details: "Method getCacheControl(): Returns a CacheControl object" */
+ TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCACHECONTROL);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"ResponseTests_MimeResponse_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"ResponseTests_MimeResponse_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Render.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Render.java
deleted file mode 100644
index 3ae44d9..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Render.java
+++ /dev/null
@@ -1,367 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_MimeResponse_Render_event
- *
- */
-public class ResponseTests_MimeResponse_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_MimeResponse_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldEXPIRATION_CACHE */
- /* Details: "Has String field EXPIRATION_CACHE with value of */
- /* \"portlet.expiration-cache\"" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDEXPIRATION_CACHE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldCACHE_SCOPE */
- /* Details: "Has String field CACHE_SCOPE with value of */
- /* \"portlet.cache-scope\"" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDCACHE_SCOPE );
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldPUBLIC_SCOPE */
- /* Details: "Has String field PUBLIC_SCOPE with value of */
- /* \"portlet.public-scope\"" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDPUBLIC_SCOPE );
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldPRIVATE_SCOPE */
- /* Details: "Has String field PRIVATE_SCOPE with value of */
- /* \"portlet.private-scope\"" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDPRIVATE_SCOPE );
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldETAG */
- /* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDETAG );
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldUSE_CACHED_CONTENT */
- /* Details: "Has String field USE_CACHED_CONTENT with value of */
- /* \"portlet.use-cached-content\"" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDUSE_CACHED_CONTENT );
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldNAMESPACED_RESPONSE */
- /* Details: "Has String field NAMESPACED_RESPONSE with value of */
- /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDNAMESPACED_RESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_fieldMARKUP_HEAD_ELEMENT */
- /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
- /* \"javax.portlet.markup.head.element\"" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FIELDMARKUP_HEAD_ELEMENT);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getContentType1 */
- /* Details: "Method getContentType(): Returns a String containing the */
- /* MIME type that can be used with the response" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETCONTENTTYPE1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getContentType2 */
- /* Details: "Method getContentType(): Returns null if no content type */
- /* is set" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETCONTENTTYPE2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_setContentType1 */
- /* Details: "Method setContentType(String): Sets the MIME type for */
- /* the response" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_SETCONTENTTYPE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_setContentType4 */
- /* Details: "Method setContentType(String): Throws */
- /* IllegalArgumentException if the specified MIME type is invalid" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_SETCONTENTTYPE4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Returns a String */
- /* containing the name of the charset used for the response body" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getWriter1 */
- /* Details: "Method getWriter(): Returns a PrintWriter object" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETWRITER1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getWriter2 */
- /* Details: "Method getWriter(): Throws IllegalStateException if */
- /* called after the getPortletOutputStream method has been called" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETWRITER2);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale */
- /* representing the locale assigned to the response" */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETLOCALE);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_setBufferSize1 */
- /* Details: "Method setBufferSize(int): Sets the preferred buffer */
- /* size for the response body" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_SETBUFFERSIZE1);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_setBufferSize2 */
- /* Details: "Method setBufferSize(int): Throws IllegalStateException */
- /* if called after content has been written" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_SETBUFFERSIZE2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getBufferSize1 */
- /* Details: "Method getBufferSize(): Returns an int designating the */
- /* actual buffer size used for the response" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETBUFFERSIZE1);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getBufferSize2 */
- /* Details: "Method getBufferSize(): Returns null if buffering is not */
- /* used" */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETBUFFERSIZE2);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_flushBuffer1 */
- /* Details: "Method flushBuffer(): Returns void and flushes buffer to */
- /* OutputStream" */
- TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_FLUSHBUFFER1);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_resetBuffer1 */
- /* Details: "Method resetBuffer(): Returns void and clears and data */
- /* and properties from the buffer" */
- TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_RESETBUFFER1);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_resetBuffer2 */
- /* Details: "Method resetBuffer(): Throws IllegalStateException if */
- /* called after the response has been committed" */
- TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_RESETBUFFER2);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_isCommitted1 */
- /* Details: "Method isCommitted(): Returns true if the response has */
- /* been committed" */
- TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_ISCOMMITTED1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_isCommitted2 */
- /* Details: "Method isCommitted(): Returns false if the response has */
- /* not been committed" */
- TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_ISCOMMITTED2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_reset1 */
- /* Details: "Method reset(): Returns void and clears and data and */
- /* properties from the buffer" */
- TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_RESET1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_reset2 */
- /* Details: "Method reset(): Throws IllegalStateException if called */
- /* after the response has been committed" */
- TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_RESET2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getPortletOutputStream1 */
- /* Details: "Method getPortletOutputStream(): Returns a */
- /* PortletOutputStream object" */
- TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETPORTLETOUTPUTSTREAM1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getPortletOutputStream2 */
- /* Details: "Method getPortletOutputStream(): Throws */
- /* IllegalStateException if called after the getWriter method has */
- /* been called" */
- TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETPORTLETOUTPUTSTREAM2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_createRenderURL */
- /* Details: "Method createRenderURL(): Returns a PortletURL object */
- /* representing a render URL targeting the portlet" */
- TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_CREATERENDERURL);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_createActionURL */
- /* Details: "Method createActionURL(): Returns a PortletURL object */
- /* representing an action URL targeting the portlet" */
- TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_CREATEACTIONURL);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_createResourceURL */
- /* Details: "Method createResourceURL(): Returns a ResourceURL object */
- /* targeting the portlet" */
- TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_CREATERESOURCEURL);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Render_getCacheControl */
- /* Details: "Method getCacheControl(): Returns a CacheControl object" */
- TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RENDER_GETCACHECONTROL);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Resource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Resource.java
deleted file mode 100644
index 4dd82d5..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_Resource.java
+++ /dev/null
@@ -1,382 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_MimeResponse_Resource_event
- *
- */
-public class ResponseTests_MimeResponse_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_MimeResponse_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldEXPIRATION_CACHE */
- /* Details: "Has String field EXPIRATION_CACHE with value of */
- /* \"portlet.expiration-cache\"" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDEXPIRATION_CACHE );
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldCACHE_SCOPE */
- /* Details: "Has String field CACHE_SCOPE with value of */
- /* \"portlet.cache-scope\"" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDCACHE_SCOPE );
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldPUBLIC_SCOPE */
- /* Details: "Has String field PUBLIC_SCOPE with value of */
- /* \"portlet.public-scope\"" */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDPUBLIC_SCOPE );
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldPRIVATE_SCOPE */
- /* Details: "Has String field PRIVATE_SCOPE with value of */
- /* \"portlet.private-scope\"" */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDPRIVATE_SCOPE );
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldETAG */
- /* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDETAG );
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldUSE_CACHED_CONTENT */
- /* Details: "Has String field USE_CACHED_CONTENT with value of */
- /* \"portlet.use-cached-content\"" */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDUSE_CACHED_CONTENT );
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldNAMESPACED_RESPONSE */
- /* Details: "Has String field NAMESPACED_RESPONSE with value of */
- /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDNAMESPACED_RESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_fieldMARKUP_HEAD_ELEMENT */
- /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
- /* \"javax.portlet.markup.head.element\"" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FIELDMARKUP_HEAD_ELEMENT);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getContentType1 */
- /* Details: "Method getContentType(): Returns a String containing the */
- /* MIME type that can be used with the response" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETCONTENTTYPE1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getContentType2 */
- /* Details: "Method getContentType(): Returns null if no content type */
- /* is set" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETCONTENTTYPE2);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_setContentType1 */
- /* Details: "Method setContentType(String): Sets the MIME type for */
- /* the response" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_SETCONTENTTYPE1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_setContentType4 */
- /* Details: "Method setContentType(String): Throws */
- /* IllegalArgumentException if the specified MIME type is invalid" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_SETCONTENTTYPE4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Returns a String */
- /* containing the name of the charset used for the response body" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getWriter1 */
- /* Details: "Method getWriter(): Returns a PrintWriter object" */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETWRITER1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getWriter2 */
- /* Details: "Method getWriter(): Throws IllegalStateException if */
- /* called after the getPortletOutputStream method has been called" */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETWRITER2);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale */
- /* representing the locale assigned to the response" */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETLOCALE);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_setBufferSize1 */
- /* Details: "Method setBufferSize(int): Sets the preferred buffer */
- /* size for the response body" */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_SETBUFFERSIZE1);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_setBufferSize2 */
- /* Details: "Method setBufferSize(int): Throws IllegalStateException */
- /* if called after content has been written" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_SETBUFFERSIZE2);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getBufferSize1 */
- /* Details: "Method getBufferSize(): Returns an int designating the */
- /* actual buffer size used for the response" */
- TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETBUFFERSIZE1);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getBufferSize2 */
- /* Details: "Method getBufferSize(): Returns null if buffering is not */
- /* used" */
- TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETBUFFERSIZE2);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_flushBuffer1 */
- /* Details: "Method flushBuffer(): Returns void and flushes buffer to */
- /* OutputStream" */
- TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_FLUSHBUFFER1);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_resetBuffer1 */
- /* Details: "Method resetBuffer(): Returns void and clears and data */
- /* and properties from the buffer" */
- TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_RESETBUFFER1);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_resetBuffer2 */
- /* Details: "Method resetBuffer(): Throws IllegalStateException if */
- /* called after the response has been committed" */
- TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_RESETBUFFER2);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_isCommitted1 */
- /* Details: "Method isCommitted(): Returns true if the response has */
- /* been committed" */
- TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_ISCOMMITTED1);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_isCommitted2 */
- /* Details: "Method isCommitted(): Returns false if the response has */
- /* not been committed" */
- TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_ISCOMMITTED2);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_reset1 */
- /* Details: "Method reset(): Returns void and clears and data and */
- /* properties from the buffer" */
- TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_RESET1);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_reset2 */
- /* Details: "Method reset(): Throws IllegalStateException if called */
- /* after the response has been committed" */
- TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_RESET2);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getPortletOutputStream1 */
- /* Details: "Method getPortletOutputStream(): Returns a */
- /* PortletOutputStream object" */
- TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETPORTLETOUTPUTSTREAM1);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getPortletOutputStream2 */
- /* Details: "Method getPortletOutputStream(): Throws */
- /* IllegalStateException if called after the getWriter method has */
- /* been called" */
- TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETPORTLETOUTPUTSTREAM2);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_createRenderURL */
- /* Details: "Method createRenderURL(): Returns a PortletURL object */
- /* representing a render URL targeting the portlet" */
- TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_CREATERENDERURL);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_createActionURL */
- /* Details: "Method createActionURL(): Returns a PortletURL object */
- /* representing an action URL targeting the portlet" */
- TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_CREATEACTIONURL);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_createResourceURL */
- /* Details: "Method createResourceURL(): Returns a ResourceURL object */
- /* targeting the portlet" */
- TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_CREATERESOURCEURL);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2ResponseTests_MimeResponse_Resource_getCacheControl */
- /* Details: "Method getCacheControl(): Returns a CacheControl object" */
- TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_RESOURCE_GETCACHECONTROL);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"ResponseTests_MimeResponse_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"ResponseTests_MimeResponse_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
[63/63] [abbrv] git commit: Updated the assertion CSV files in the
doc-files directory
Posted by ms...@apache.org.
Updated the assertion CSV files in the doc-files directory
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/d6d7d72c
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/d6d7d72c
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/d6d7d72c
Branch: refs/heads/master
Commit: d6d7d72cb2377fe6c46c5b5c98eefb95d71c624a
Parents: 2f638d7
Author: Scott Nicklous <ms...@apache.org>
Authored: Mon Sep 1 15:25:55 2014 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Mon Sep 1 15:25:55 2014 +0200
----------------------------------------------------------------------
.../doc-files/JSR286ApidocAssertions.csv | 3658 ++++++++----------
.../javadoc/doc-files/JSR286ApidocGenerated.csv | 1582 ++++++++
.../javadoc/doc-files/JSR286SpecAssertions.csv | 1794 +++++----
.../JSR286SpecAssertionsDispatcher.csv | 920 ++++-
.../JSR286TCDispatchTableAssertions.csv | 1335 +++++++
5 files changed, 6410 insertions(+), 2879 deletions(-)
----------------------------------------------------------------------
[38/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_Render.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_Render.java
deleted file mode 100644
index 6bb1ba8..0000000
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_Render.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ExceptionTests_PortletModeException_Render_event
- *
- */
-public class ExceptionTests_PortletModeException_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ExceptionTests_PortletModeException_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ExceptionTests_PortletModeException_Render_hasGetMode2 */
- /* Details: "Returns the PortletMode object causing this exception" */
- TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_RENDER_HASGETMODE2);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
new file mode 100644
index 0000000..87fc385
--- /dev/null
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
@@ -0,0 +1,143 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ExceptionTests_UnavailableException_ApiRender_event
+ *
+ */
+public class ExceptionTests_UnavailableException_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ExceptionTests_UnavailableException_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent1 */
+ /* Details: "Method isPermanent(): Returns a boolean" */
+ TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent2 */
+ /* Details: "Method isPermanent(): Returns true if the portlet is */
+ /* permanently unavailable " */
+ TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent3 */
+ /* Details: "Method isPermanent(): Returns false if the portlet is */
+ /* temporarily unavailable " */
+ TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds1 */
+ /* Details: "Method getUnavailableSeconds(): Returns an integer " */
+ TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds2 */
+ /* Details: "Method getUnavailableSeconds(): Returns a number <= 0 */
+ /* if the portlet is permanently unavailable" */
+ TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_Render.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_Render.java
deleted file mode 100644
index 2fcbfb6..0000000
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_Render.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ExceptionTests_UnavailableException_Render_event
- *
- */
-public class ExceptionTests_UnavailableException_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ExceptionTests_UnavailableException_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ExceptionTests_UnavailableException_Render_isPermanent1 */
- /* Details: "Method isPermanent(): Returns a boolean" */
- TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_RENDER_ISPERMANENT1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_UnavailableException_Render_isPermanent2 */
- /* Details: "Method isPermanent(): Returns true if the portlet is */
- /* permanently unavailable " */
- TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_RENDER_ISPERMANENT2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_UnavailableException_Render_isPermanent3 */
- /* Details: "Method isPermanent(): Returns false if the portlet is */
- /* temporarily unavailable " */
- TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_RENDER_ISPERMANENT3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_UnavailableException_Render_getUnavailableSeconds1 */
- /* Details: "Method getUnavailableSeconds(): Returns an integer " */
- TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_RENDER_GETUNAVAILABLESECONDS1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_UnavailableException_Render_getUnavailableSeconds2 */
- /* Details: "Method getUnavailableSeconds(): Returns a number <= 0 */
- /* if the portlet is permanently unavailable" */
- TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_RENDER_GETUNAVAILABLESECONDS2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
new file mode 100644
index 0000000..ae516bb
--- /dev/null
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
@@ -0,0 +1,150 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ExceptionTests_ValidatorException_ApiRender_event
+ *
+ */
+public class ExceptionTests_ValidatorException_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ExceptionTests_ValidatorException_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor2 */
+ /* Details: "For ValidatorException(java.lang.String, */
+ /* java.util.Collection<java.lang.String>), the failedKeys */
+ /* parameter may be null" */
+ TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR2);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor4 */
+ /* Details: "For ValidatorException(java.lang.String, */
+ /* java.lang.Throwable, */
+ /* java.util.Collection<java.lang.String>), the failedKeys */
+ /* parameter may be null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR4);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor6 */
+ /* Details: "For ValidatorException(java.lang.Throwable, */
+ /* java.util.Collection<java.lang.String>), the failedKeys */
+ /* parameter may be null" */
+ TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR6);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys1 */
+ /* Details: "Method getFailedKeys(): Returns a */
+ /* java.util.Enumeration<java.lang.String> object containing */
+ /* the preference keys that failed validation" */
+ TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys2 */
+ /* Details: "Method getFailedKeys(): Returns an empty enmueration if */
+ /* no failed keys are available" */
+ TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_Render.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_Render.java
deleted file mode 100644
index bce9f3a..0000000
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_Render.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ExceptionTests_ValidatorException_Render_event
- *
- */
-public class ExceptionTests_ValidatorException_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ExceptionTests_ValidatorException_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ExceptionTests_ValidatorException_Render_constructor2 */
- /* Details: "For ValidatorException(java.lang.String, */
- /* java.util.Collection<java.lang.String>), the failedKeys */
- /* parameter may be null" */
- TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_RENDER_CONSTRUCTOR2);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_ValidatorException_Render_constructor4 */
- /* Details: "For ValidatorException(java.lang.String, */
- /* java.lang.Throwable, */
- /* java.util.Collection<java.lang.String>), the failedKeys */
- /* parameter may be null" */
- TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_RENDER_CONSTRUCTOR4);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_ValidatorException_Render_constructor6 */
- /* Details: "For ValidatorException(java.lang.Throwable, */
- /* java.util.Collection<java.lang.String>), the failedKeys */
- /* parameter may be null" */
- TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_RENDER_CONSTRUCTOR6);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_ValidatorException_Render_getFailedKeys1 */
- /* Details: "Method getFailedKeys(): Returns a */
- /* java.util.Enumeration<java.lang.String> object containing */
- /* the preference keys that failed validation" */
- TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_RENDER_GETFAILEDKEYS1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ExceptionTests_ValidatorException_Render_getFailedKeys2 */
- /* Details: "Method getFailedKeys(): Returns an empty enmueration if */
- /* no failed keys are available" */
- TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_RENDER_GETFAILEDKEYS2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
new file mode 100644
index 0000000..0fbd089
--- /dev/null
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
@@ -0,0 +1,113 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ExceptionTests_WindowStateException_ApiRender_event
+ *
+ */
+public class ExceptionTests_WindowStateException_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ExceptionTests_WindowStateException_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ExceptionTests_WindowStateException_ApiRender_getState */
+ /* Details: "Method getState(): Returns the WindowState object */
+ /* causing this exception" */
+ TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_WINDOWSTATEEXCEPTION_APIRENDER_GETSTATE);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_Render.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_Render.java
deleted file mode 100644
index a5030d6..0000000
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_Render.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ExceptionTests_WindowStateException_Render_event
- *
- */
-public class ExceptionTests_WindowStateException_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ExceptionTests_WindowStateException_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ExceptionTests_WindowStateException_Render_getState */
- /* Details: "Method getState(): Returns the WindowState object */
- /* causing this exception" */
- TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_WINDOWSTATEEXCEPTION_RENDER_GETSTATE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2ExceptionTests/src/main/resources/xml-resources/additionalTCs.xml
index 8d18787..0a79e54 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,16 +20,16 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API ExceptionTests test case names and page mappings -->
-<entry key="V2ExceptionTests_PortletModeException_Render_hasGetMode2">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_UnavailableException_Render_isPermanent1">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_UnavailableException_Render_isPermanent2">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_UnavailableException_Render_isPermanent3">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_UnavailableException_Render_getUnavailableSeconds1">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_UnavailableException_Render_getUnavailableSeconds2">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_ValidatorException_Render_constructor2">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_ValidatorException_Render_constructor4">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_ValidatorException_Render_constructor6">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_ValidatorException_Render_getFailedKeys1">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_ValidatorException_Render_getFailedKeys2">V2ExceptionTests</entry>
-<entry key="V2ExceptionTests_WindowStateException_Render_getState">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_PortletModeException_ApiRender_hasGetMode2">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_UnavailableException_ApiRender_isPermanent1">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_UnavailableException_ApiRender_isPermanent2">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_UnavailableException_ApiRender_isPermanent3">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds1">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds2">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_ValidatorException_ApiRender_constructor2">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_ValidatorException_ApiRender_constructor4">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_ValidatorException_ApiRender_constructor6">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys1">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys2">V2ExceptionTests</entry>
+<entry key="V2ExceptionTests_WindowStateException_ApiRender_getState">V2ExceptionTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
index 3bd320e..67f44cc 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,94 +23,96 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2ExceptionTests">
<portlet>
- <portlet-name>ExceptionTests_PortletModeException_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ExceptionTests_PortletModeException_Render</portlet-class>
+ <portlet-name>ExceptionTests_PortletModeException_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ExceptionTests_PortletModeException_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ExceptionTests_PortletModeException_Render</title>
+ <title>ExceptionTests_PortletModeException_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ExceptionTests_UnavailableException_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ExceptionTests_UnavailableException_Render</portlet-class>
+ <portlet-name>ExceptionTests_UnavailableException_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ExceptionTests_UnavailableException_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ExceptionTests_UnavailableException_Render</title>
+ <title>ExceptionTests_UnavailableException_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ExceptionTests_ValidatorException_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ExceptionTests_ValidatorException_Render</portlet-class>
+ <portlet-name>ExceptionTests_ValidatorException_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ExceptionTests_ValidatorException_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ExceptionTests_ValidatorException_Render</title>
+ <title>ExceptionTests_ValidatorException_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>ExceptionTests_WindowStateException_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.ExceptionTests_WindowStateException_Render</portlet-class>
+ <portlet-name>ExceptionTests_WindowStateException_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.ExceptionTests_WindowStateException_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>ExceptionTests_WindowStateException_Render</title>
+ <title>ExceptionTests_WindowStateException_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
new file mode 100644
index 0000000..1b4c422
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ActionFilter_ApiActionFilter_filter.java
@@ -0,0 +1,160 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_ActionFilter_ApiActionFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_ActionFilter_ApiActionFilter_filter implements ActionFilter {
+ private static final String LOG_CLASS =
+ FilterTests_ActionFilter_ApiActionFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ActionRequest portletReq, ActionResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured1 */
+ /* Details: "An ActionFilter can be configured in the portlet */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_CANBECONFIGURED1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured2 */
+ /* Details: "Multiple ActionFilter classes can be configured in the */
+ /* portlet descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_CANBECONFIGURED2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterIsCalled */
+ /* Details: "The doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method is called before the processAction method for */
+ /* the portlet" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTERISCALLED);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction1 */
+ /* Details: "After the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processActionMethod is called" */
+ TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTERPROCESSACTION1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction2 */
+ /* Details: "After the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTERPROCESSACTION2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterBlock */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method does not invoke the next filter, */
+ /* processAction is not called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTERBLOCK);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterException1 */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method throws an UnavailableException, processAction */
+ /* is not called" */
+ TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTEREXCEPTION1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterException2 */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTEREXCEPTION2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterExamine */
+ /* Details: "Method doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the ActionResponse may be examined" */
+ TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_APIACTIONFILTER_DOFILTEREXAMINE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ApiActionFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
new file mode 100644
index 0000000..b0f72fc
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_EventFilter_ApiEventFilter_filter.java
@@ -0,0 +1,159 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_EventFilter_ApiEventFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_EventFilter_ApiEventFilter_filter implements EventFilter {
+ private static final String LOG_CLASS =
+ FilterTests_EventFilter_ApiEventFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(EventRequest portletReq, EventResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured1 */
+ /* Details: "An EventFilter can be configured in the portlet */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_CANBECONFIGURED1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured2 */
+ /* Details: "Multiple EventFilter classes can be configured in the */
+ /* portlet descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_CANBECONFIGURED2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterIsCalled */
+ /* Details: "The doFilter(EventRequest, EventResponse, FilterChain): */
+ /* method is called before the processEvent method for the portlet" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTERISCALLED);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent1 */
+ /* Details: "After the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processEventMethod is called" */
+ TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTERPROCESSEVENT1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent2 */
+ /* Details: "After the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTERPROCESSEVENT2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterBlock */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method does not invoke the next filter, processEvent */
+ /* is not called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTERBLOCK);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterException1 */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method throws an UnavailableException, processEvent */
+ /* is not called" */
+ TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTEREXCEPTION1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterException2 */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTEREXCEPTION2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterExamine */
+ /* Details: "Method doFilter(EventRequest, EventResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the EventResponse may be examined" */
+ TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_EVENTFILTER_APIEVENTFILTER_DOFILTEREXAMINE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_EventFilter_ApiEventFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiActionFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiActionFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiActionFilter_filter.java
new file mode 100644
index 0000000..68b9da2
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiActionFilter_filter.java
@@ -0,0 +1,105 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_FilterChain_ApiActionFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_FilterChain_ApiActionFilter_filter implements ActionFilter {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiActionFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ActionRequest portletReq, ActionResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter */
+ /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
+ /* next filter to be invoked" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIACTIONFILTER_INVOKEACTIONFILTER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionFilter2 */
+ /* Details: "Invoking doFilter(ActionRequest, ActionResponse): causes */
+ /* portlet action method to be invoked" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIACTIONFILTER_INVOKEACTIONFILTER2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiActionFilter_invokeActionException */
+ /* Details: "Method doFilter(ActionRequest, ActionResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIACTIONFILTER_INVOKEACTIONEXCEPTION);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ApiActionFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiEventFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiEventFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiEventFilter_filter.java
new file mode 100644
index 0000000..1f9d794
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiEventFilter_filter.java
@@ -0,0 +1,105 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_FilterChain_ApiEventFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_FilterChain_ApiEventFilter_filter implements EventFilter {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiEventFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(EventRequest portletReq, EventResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter */
+ /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
+ /* next filter to be invoked" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIEVENTFILTER_INVOKEEVENTFILTER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventFilter2 */
+ /* Details: "Invoking doFilter(EventRequest, EventResponse): causes */
+ /* portlet Event method to be invoked" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIEVENTFILTER_INVOKEEVENTFILTER2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiEventFilter_invokeEventException */
+ /* Details: "Method doFilter(EventRequest, EventResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIEVENTFILTER_INVOKEEVENTEXCEPTION);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_FilterChain_ApiEventFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiRenderFilter_filter.java
new file mode 100644
index 0000000..50f6845
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiRenderFilter_filter.java
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_FilterChain_ApiRenderFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_FilterChain_ApiRenderFilter_filter implements RenderFilter {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiRenderFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(RenderRequest portletReq, RenderResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderFilter */
+ /* Details: "Invoking doFilter(RenderRequest, RenderResponse): causes */
+ /* next filter to be invoked" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRENDERFILTER_INVOKERENDERFILTER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderFilter2 */
+ /* Details: "Invoking doFilter(RenderRequest, RenderResponse): causes */
+ /* portlet Render method to be invoked" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRENDERFILTER_INVOKERENDERFILTER2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiRenderFilter_invokeRenderException */
+ /* Details: "Method doFilter(RenderRequest, RenderResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRENDERFILTER_INVOKERENDEREXCEPTION);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiResourceFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiResourceFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiResourceFilter_filter.java
new file mode 100644
index 0000000..596f357
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterChain_ApiResourceFilter_filter.java
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_FilterChain_ApiResourceFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_FilterChain_ApiResourceFilter_filter implements ResourceFilter {
+ private static final String LOG_CLASS =
+ FilterTests_FilterChain_ApiResourceFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ResourceRequest portletReq, ResourceResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceFilter */
+ /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
+ /* causes next filter to be invoked" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRESOURCEFILTER_INVOKERESOURCEFILTER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceFilter2 */
+ /* Details: "Invoking doFilter(ResourceRequest, ResourceResponse): */
+ /* causes portlet Resource method to be invoked" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRESOURCEFILTER_INVOKERESOURCEFILTER2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterChain_ApiResourceFilter_invokeResourceException */
+ /* Details: "Method doFilter(ResourceRequest, ResourceResponse): If a */
+ /* PortletException is thrown before invoking the next filter in the */
+ /* chain, processing does not continue down the chain " */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCHAIN_APIRESOURCEFILTER_INVOKERESOURCEEXCEPTION);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+
+ }
+}
[03/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
new file mode 100644
index 0000000..86e31b2
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_ApiRender.java
@@ -0,0 +1,128 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_RenderRequestWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_RenderRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_RenderRequestWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped RenderRequest */
+ /* object" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_GETREQUEST);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_setRequest */
+ /* Details: "Method setRequest(RenderRequest): Allows wrapped */
+ /* RenderRequest object to be set " */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_SETREQUEST);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderRequestWrapper_ApiRender_getETag */
+ /* Details: "Method getETag(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_APIRENDER_GETETAG);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_Render.java
deleted file mode 100644
index 2def41f..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderRequestWrapper_Render.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_RenderRequestWrapper_Render_event
- *
- */
-public class WrapperTests_RenderRequestWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_RenderRequestWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_RenderRequestWrapper_Render_getRequest */
- /* Details: "Method getRequest(): Returns wrapped RenderRequest */
- /* object" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_GETREQUEST);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderRequestWrapper_Render_setRequest */
- /* Details: "Method setRequest(RenderRequest): Allows wrapped */
- /* RenderRequest object to be set " */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_SETREQUEST);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderRequestWrapper_Render_getETag */
- /* Details: "Method getETag(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERREQUESTWRAPPER_RENDER_GETETAG);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
new file mode 100644
index 0000000..983d2a3
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_ApiRender.java
@@ -0,0 +1,248 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_RenderResponseWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_RenderResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_RenderResponseWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_flushBuffer */
+ /* Details: "Method flushBuffer(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_FLUSHBUFFER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getBufferSize */
+ /* Details: "Method getBufferSize(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getLocale */
+ /* Details: "Method getLocale(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETLOCALE);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getPortletOutputStream */
+ /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getWriter */
+ /* Details: "Method getWriter(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETWRITER);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_isCommitted */
+ /* Details: "Method isCommitted(): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_ISCOMMITTED);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_reset */
+ /* Details: "Method reset(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_RESET);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_resetBuffer */
+ /* Details: "Method resetBuffer(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_RESETBUFFER);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setBufferSize */
+ /* Details: "Method setBufferSize(int): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setContentType */
+ /* Details: "Method setContentType(String): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setTitle */
+ /* Details: "Method setTitle(String): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETTITLE);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getCacheControl */
+ /* Details: "Method getCacheControl(): Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCACHECONTROL);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setNextPossiblePortletModes */
+ /* Details: "Method */
+ /* setNextPossiblePortletModes(java.util.Collection): Calls wrapped */
+ /* method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETNEXTPOSSIBLEPORTLETMODES);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_getResponse */
+ /* Details: "Method getResponse(): Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_setResponse */
+ /* Details: "Method setResponse(RenderResponse): Allows wrapped */
+ /* RenderResponse object to be set " */
+ TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createActionURL */
+ /* Details: "Method createActionURL(): Calls wrapped method" */
+ TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATEACTIONURL);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createRenderURL */
+ /* Details: "Method createRenderURL(): Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERENDERURL);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_RenderResponseWrapper_ApiRender_createResourceURL */
+ /* Details: "Method createResourceURL(): Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_Render.java
deleted file mode 100644
index e469ae5..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_RenderResponseWrapper_Render.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_RenderResponseWrapper_Render_event
- *
- */
-public class WrapperTests_RenderResponseWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_RenderResponseWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_flushBuffer */
- /* Details: "Method flushBuffer(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_FLUSHBUFFER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getBufferSize */
- /* Details: "Method getBufferSize(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETBUFFERSIZE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getLocale */
- /* Details: "Method getLocale(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETLOCALE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getPortletOutputStream */
- /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETPORTLETOUTPUTSTREAM);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getWriter */
- /* Details: "Method getWriter(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETWRITER);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_isCommitted */
- /* Details: "Method isCommitted(): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_ISCOMMITTED);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_reset */
- /* Details: "Method reset(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_RESET);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_resetBuffer */
- /* Details: "Method resetBuffer(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_RESETBUFFER);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_setBufferSize */
- /* Details: "Method setBufferSize(int): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETBUFFERSIZE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_setContentType */
- /* Details: "Method setContentType(String): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETCONTENTTYPE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_setTitle */
- /* Details: "Method setTitle(String): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETTITLE);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getCacheControl */
- /* Details: "Method getCacheControl(): Calls wrapped method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETCACHECONTROL);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_setNextPossiblePortletModes */
- /* Details: "Method */
- /* setNextPossiblePortletModes(java.util.Collection): Calls wrapped */
- /* method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETNEXTPOSSIBLEPORTLETMODES);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_getResponse */
- /* Details: "Method getResponse(): Calls wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_GETRESPONSE);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_setResponse */
- /* Details: "Method setResponse(RenderResponse): Allows wrapped */
- /* RenderResponse object to be set " */
- TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_SETRESPONSE);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_createActionURL */
- /* Details: "Method createActionURL(): Calls wrapped method" */
- TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATEACTIONURL);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_createRenderURL */
- /* Details: "Method createRenderURL(): Calls wrapped method" */
- TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATERENDERURL);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2WrapperTests_RenderResponseWrapper_Render_createResourceURL */
- /* Details: "Method createResourceURL(): Calls wrapped method" */
- TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_RENDER_CREATERESOURCEURL);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
new file mode 100644
index 0000000..1193d50
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_ApiRender.java
@@ -0,0 +1,200 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ResourceRequestWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_ResourceRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ResourceRequestWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getPortletInputStream */
+ /* Details: "Method getPortletInputStream(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getReader */
+ /* Details: "Method getReader(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREADER);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped ResourceRequest */
+ /* object" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREQUEST);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_setRequest */
+ /* Details: "Method setRequest(ResourceRequest): Allows wrapped */
+ /* ResourceRequest object to be set" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETREQUEST);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentLength */
+ /* Details: "Method getContentLength(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getETag */
+ /* Details: "Method getETag(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETETAG);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETMETHOD);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getResourceID */
+ /* Details: "Method getResourceID(): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETRESOURCEID);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getPrivateRenderParameterMap */
+ /* Details: "Method getPrivateRenderParameterMap(): Calls wrapped */
+ /* method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPRIVATERENDERPARAMETERMAP);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceRequestWrapper_ApiRender_getCacheability */
+ /* Details: "Method getCacheability(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCACHEABILITY);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_Render.java
deleted file mode 100644
index 35063fd..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceRequestWrapper_Render.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ResourceRequestWrapper_Render_event
- *
- */
-public class WrapperTests_ResourceRequestWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ResourceRequestWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getPortletInputStream */
- /* Details: "Method getPortletInputStream(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETPORTLETINPUTSTREAM);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getReader */
- /* Details: "Method getReader(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETREADER);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getRequest */
- /* Details: "Method getRequest(): Returns wrapped ResourceRequest */
- /* object" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETREQUEST);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_setRequest */
- /* Details: "Method setRequest(ResourceRequest): Allows wrapped */
- /* ResourceRequest object to be set" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_SETREQUEST);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getContentLength */
- /* Details: "Method getContentLength(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCONTENTLENGTH);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getETag */
- /* Details: "Method getETag(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETETAG);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETMETHOD);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getResourceID */
- /* Details: "Method getResourceID(): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETRESOURCEID);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getPrivateRenderParameterMap */
- /* Details: "Method getPrivateRenderParameterMap(): Calls wrapped */
- /* method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETPRIVATERENDERPARAMETERMAP);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceRequestWrapper_Render_getCacheability */
- /* Details: "Method getCacheability(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_RENDER_GETCACHEABILITY);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
new file mode 100644
index 0000000..36ab0e2
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_ApiRender.java
@@ -0,0 +1,255 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ResourceResponseWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_ResourceResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ResourceResponseWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_flushBuffer */
+ /* Details: "Method flushBuffer(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_FLUSHBUFFER);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getBufferSize */
+ /* Details: "Method getBufferSize(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getLocale */
+ /* Details: "Method getLocale(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETLOCALE);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getPortletOutputStream */
+ /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getWriter */
+ /* Details: "Method getWriter(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETWRITER);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_isCommitted */
+ /* Details: "Method isCommitted(): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_ISCOMMITTED);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_reset */
+ /* Details: "Method reset(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESET);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_resetBuffer */
+ /* Details: "Method resetBuffer(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESETBUFFER);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setBufferSize */
+ /* Details: "Method setBufferSize(int): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentType */
+ /* Details: "Method setContentType(String): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getCacheControl */
+ /* Details: "Method getCacheControl(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCACHECONTROL);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCHARACTERENCODING);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setLocale */
+ /* Details: "Method setLocale(Locale): Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETLOCALE);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentLength */
+ /* Details: "Method setContentLength(int): Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTLENGTH);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped RespurceResponse */
+ /* object" */
+ TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETRESPONSE);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_setResponse */
+ /* Details: "Method setResponse(ResourceResponse): Allows wrapped */
+ /* ResourceResponse object to be set" */
+ TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETRESPONSE);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createActionURL */
+ /* Details: "Method createActionURL(): Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATEACTIONURL);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createRenderURL */
+ /* Details: "Method createRenderURL(): Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERENDERURL);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ResourceResponseWrapper_ApiRender_createResourceURL */
+ /* Details: "Method createResourceURL(): Calls wrapped method" */
+ TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_Render.java
deleted file mode 100644
index da7e0bf..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ResourceResponseWrapper_Render.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ResourceResponseWrapper_Render_event
- *
- */
-public class WrapperTests_ResourceResponseWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ResourceResponseWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_flushBuffer */
- /* Details: "Method flushBuffer(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_FLUSHBUFFER);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getBufferSize */
- /* Details: "Method getBufferSize(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETBUFFERSIZE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getLocale */
- /* Details: "Method getLocale(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETLOCALE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getPortletOutputStream */
- /* Details: "Method getPortletOutputStream(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETPORTLETOUTPUTSTREAM);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getWriter */
- /* Details: "Method getWriter(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETWRITER);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_isCommitted */
- /* Details: "Method isCommitted(): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_ISCOMMITTED);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_reset */
- /* Details: "Method reset(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_RESET);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_resetBuffer */
- /* Details: "Method resetBuffer(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_RESETBUFFER);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setBufferSize */
- /* Details: "Method setBufferSize(int): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETBUFFERSIZE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setContentType */
- /* Details: "Method setContentType(String): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCONTENTTYPE);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getCacheControl */
- /* Details: "Method getCacheControl(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETCACHECONTROL);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setLocale */
- /* Details: "Method setLocale(Locale): Calls wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETLOCALE);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setContentLength */
- /* Details: "Method setContentLength(int): Calls wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETCONTENTLENGTH);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_getResponse */
- /* Details: "Method getResponse(): Returns wrapped RespurceResponse */
- /* object" */
- TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_GETRESPONSE);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_setResponse */
- /* Details: "Method setResponse(ResourceResponse): Allows wrapped */
- /* ResourceResponse object to be set" */
- TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_SETRESPONSE);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_createActionURL */
- /* Details: "Method createActionURL(): Calls wrapped method" */
- TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATEACTIONURL);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_createRenderURL */
- /* Details: "Method createRenderURL(): Calls wrapped method" */
- TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATERENDERURL);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ResourceResponseWrapper_Render_createResourceURL */
- /* Details: "Method createResourceURL(): Calls wrapped method" */
- TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_RENDER_CREATERESOURCEURL);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- }
-
-}
[39/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2EnvironmentTests/src/main/resources/xml-resources/additionalTCs.xml
index 6b36e99..b3470dc 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,328 +20,328 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API EnvironmentTests test case names and page mappings -->
-<entry key="V2EnvironmentTests_CacheControl_Render_getExpirationTime1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_getExpirationTime2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_getExpirationTime3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setExpirationTime1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setExpirationTime2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setExpirationTime3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_isPublicScope1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_isPublicScope2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_isPublicScope3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_isPublicScope5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setPublicScope1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setPublicScope2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_getETag1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_getETag2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setETag1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setETag2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setETag3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_useCachedContent1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_useCachedContent2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_useCachedContent3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setUseCachedContent1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Render_setUseCachedContent2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_getExpirationTime1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_getExpirationTime2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_getExpirationTime3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setExpirationTime1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setExpirationTime2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setExpirationTime3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_isPublicScope1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_isPublicScope2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_isPublicScope3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_isPublicScope5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setPublicScope1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setPublicScope2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_getETag1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_getETag2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setETag1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setETag2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setETag3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_useCachedContent1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_useCachedContent2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_useCachedContent3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setUseCachedContent1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_CacheControl_Resource_setUseCachedContent2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_fieldMARKUP_HEAD_ELEMENT_SUPPORT">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getProperty1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getProperty2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getProperty3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPropertyNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPropertyNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedPortletModes4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getSupportedWindowStates4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPortalInfo1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPortalInfo2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPortalInfo3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPortalInfo4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortalContext_Render_getPortalInfo5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getServerInfo1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getServerInfo2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getServerInfo3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getServerInfo4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getServerInfo5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRequestDispatcher1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRequestDispatcher2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRequestDispatcher3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getNamedDispatcher1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getNamedDispatcher2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourceAsStream1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourceAsStream2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourceAsStream3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMajorVersion">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMinorVersion">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMimeType1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMimeType2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMimeType3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMimeType4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getMimeType5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRealPath1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRealPath2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getRealPath3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourcePaths1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourcePaths2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourcePaths3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResourcePaths4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResource1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResource2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResource3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getResource4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getAttribute1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getAttribute2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getAttribute3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getAttributeNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getAttributeNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getInitParameter1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getInitParameter2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getInitParameter3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getInitParameterNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getInitParameterNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_logA">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_logB">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_removeAttribute1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_removeAttribute2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_setAttribute1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_setAttribute2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_setAttribute3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_setAttribute4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getPortletContextName1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getPortletContextName2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getPortletContextName3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_isReadOnly1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_isReadOnly2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_isReadOnly3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_isReadOnly4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_setValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getMap1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_getMap2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_reset2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Render_store5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_isReadOnly1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_isReadOnly2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_isReadOnly3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_isReadOnly4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValue5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_setValues6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getMap1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_getMap2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_reset1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_reset2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_reset3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Action_store6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Action_canBeConfigured">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Action_validate1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Action_validate2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_isReadOnly1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_isReadOnly2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_isReadOnly3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_isReadOnly4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValue5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_setValues6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getMap1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_getMap2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_reset1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_reset2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_reset3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Event_store6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Event_canBeConfigured">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Event_validate1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Event_validate2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_isReadOnly1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_isReadOnly2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_isReadOnly3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_isReadOnly4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValue1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValue2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValue3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValue4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValue5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_setValues6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getNames1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getNames2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getMap1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_getMap2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_reset1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_reset2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_reset3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletPreferences_Resource_store6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Resource_canBeConfigured">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Resource_validate1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PreferencesValidator_Resource_validate2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeA3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeA4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeB3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_includeB4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_forward1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_forward2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_forward3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletRequestDispatcher_Render_forward4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_fieldAPPLICATION_SCOPE">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_fieldPORTLET_SCOPE">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeA3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeA4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeB3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeB4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeNamesA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeNamesA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeNamesB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeNamesB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getCreationTime1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getCreationTime2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getId">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getLastAccessedTime">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getMaxInactiveInterval">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_invalidate1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_invalidate2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_isNew1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_isNew2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeA3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeA4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeB3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_removeAttributeB4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA7">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeA8">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB3">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB4">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB5">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB6">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB7">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setAttributeB8">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setMaxInactiveInterval1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_setMaxInactiveInterval2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getPortletContext">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeMapA1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeMapA2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeMapB1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSession_Render_getAttributeMapB2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSessionUtil_Render_decodeAttributeName1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSessionUtil_Render_decodeAttributeName2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSessionUtil_Render_decodeScope1">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSessionUtil_Render_decodeScope2">V2EnvironmentTests</entry>
-<entry key="V2EnvironmentTests_PortletSessionUtil_Render_decodeScope3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setExpirationTime3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_isPublicScope1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_isPublicScope2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_isPublicScope3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_isPublicScope5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setPublicScope1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setPublicScope2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_getETag1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_getETag2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setETag1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setETag2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setETag3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_useCachedContent1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_useCachedContent2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_useCachedContent3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setUseCachedContent1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiRender_setUseCachedContent2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setExpirationTime3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_isPublicScope1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_isPublicScope2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_isPublicScope3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_isPublicScope5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setPublicScope1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setPublicScope2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_getETag1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_getETag2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setETag1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setETag2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setETag3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_useCachedContent1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_useCachedContent2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_useCachedContent3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_fieldMARKUP_HEAD_ELEMENT_SUPPORT">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getProperty1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getProperty2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getProperty3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPropertyNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPropertyNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedPortletModes4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getSupportedWindowStates4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getServerInfo1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getServerInfo2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getServerInfo3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getServerInfo4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getServerInfo5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMajorVersion">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMinorVersion">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMimeType1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMimeType2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMimeType3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMimeType4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getMimeType5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRealPath1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRealPath2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getRealPath3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResource1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResource2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResource3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getResource4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getAttribute1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getAttribute2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getAttribute3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getInitParameter1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getInitParameter2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getInitParameter3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_logA">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_logB">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_removeAttribute1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_removeAttribute2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_setAttribute1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_setAttribute2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_setAttribute3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_setAttribute4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_setValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getMap1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_getMap2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_reset2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiRender_store5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValue5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_setValues6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getMap1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_getMap2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_reset1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_reset2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_reset3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiAction_store6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiAction_canBeConfigured">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiAction_validate1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiAction_validate2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValue5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_setValues6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getMap1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_getMap2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_reset1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_reset2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_reset3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiEvent_store6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiEvent_canBeConfigured">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiEvent_validate1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiEvent_validate2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValue1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValue2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValue3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValue4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValue5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_setValues6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getNames1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getNames2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getMap1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_getMap2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_reset1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_reset2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_reset3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletPreferences_ApiResource_store6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiResource_canBeConfigured">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiResource_validate1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PreferencesValidator_ApiResource_validate2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeB4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletRequestDispatcher_ApiRender_forward4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_fieldAPPLICATION_SCOPE">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_fieldPORTLET_SCOPE">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeA3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeA4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeB3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeB4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeNamesB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getCreationTime1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getCreationTime2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getId">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getLastAccessedTime">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getMaxInactiveInterval">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_invalidate1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_invalidate2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_isNew1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_isNew2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeA4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA7">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeA8">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB3">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB4">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB5">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB6">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB7">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setAttributeB8">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setMaxInactiveInterval1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_setMaxInactiveInterval2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getPortletContext">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapA1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapA2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapB1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSession_ApiRender_getAttributeMapB2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeAttributeName1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeAttributeName2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope1">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope2">V2EnvironmentTests</entry>
+<entry key="V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeScope3">V2EnvironmentTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
index e947733..5d1b495 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,287 +23,289 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2EnvironmentTests">
<portlet>
- <portlet-name>EnvironmentTests_CacheControl_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_CacheControl_Render</portlet-class>
+ <portlet-name>EnvironmentTests_CacheControl_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_CacheControl_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_CacheControl_Render</title>
+ <title>EnvironmentTests_CacheControl_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_CacheControl_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_CacheControl_Resource</portlet-class>
+ <portlet-name>EnvironmentTests_CacheControl_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_CacheControl_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_CacheControl_Resource</title>
+ <title>EnvironmentTests_CacheControl_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortalContext_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortalContext_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortalContext_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortalContext_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortalContext_Render</title>
+ <title>EnvironmentTests_PortalContext_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletContext_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletContext_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortletContext_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletContext_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletContext_Render</title>
+ <title>EnvironmentTests_PortletContext_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletPreferences_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortletPreferences_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletPreferences_Render</title>
+ <title>EnvironmentTests_PortletPreferences_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletPreferences_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_Action</portlet-class>
+ <portlet-name>EnvironmentTests_PortletPreferences_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletPreferences_Action</title>
+ <title>EnvironmentTests_PortletPreferences_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PreferencesValidator_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_Action</portlet-class>
+ <portlet-name>EnvironmentTests_PreferencesValidator_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PreferencesValidator_Action</title>
+ <title>EnvironmentTests_PreferencesValidator_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletPreferences_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_Event</portlet-class>
+ <portlet-name>EnvironmentTests_PortletPreferences_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletPreferences_Event</title>
+ <title>EnvironmentTests_PortletPreferences_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:EnvironmentTests_PortletPreferences_Event</qname>
+ <qname>tck:EnvironmentTests_PortletPreferences_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletPreferences_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_Event_event</portlet-class>
+ <portlet-name>EnvironmentTests_PortletPreferences_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletPreferences_Event_event</title>
+ <title>EnvironmentTests_PortletPreferences_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:EnvironmentTests_PortletPreferences_Event</qname>
+ <qname>tck:EnvironmentTests_PortletPreferences_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PreferencesValidator_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_Event</portlet-class>
+ <portlet-name>EnvironmentTests_PreferencesValidator_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PreferencesValidator_Event</title>
+ <title>EnvironmentTests_PreferencesValidator_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:EnvironmentTests_PreferencesValidator_Event</qname>
+ <qname>tck:EnvironmentTests_PreferencesValidator_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PreferencesValidator_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_Event_event</portlet-class>
+ <portlet-name>EnvironmentTests_PreferencesValidator_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PreferencesValidator_Event_event</title>
+ <title>EnvironmentTests_PreferencesValidator_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:EnvironmentTests_PreferencesValidator_Event</qname>
+ <qname>tck:EnvironmentTests_PreferencesValidator_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletPreferences_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_Resource</portlet-class>
+ <portlet-name>EnvironmentTests_PortletPreferences_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletPreferences_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletPreferences_Resource</title>
+ <title>EnvironmentTests_PortletPreferences_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PreferencesValidator_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_Resource</portlet-class>
+ <portlet-name>EnvironmentTests_PreferencesValidator_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PreferencesValidator_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PreferencesValidator_Resource</title>
+ <title>EnvironmentTests_PreferencesValidator_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletRequestDispatcher_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletRequestDispatcher_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortletRequestDispatcher_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletRequestDispatcher_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletRequestDispatcher_Render</title>
+ <title>EnvironmentTests_PortletRequestDispatcher_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletSession_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletSession_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortletSession_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletSession_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletSession_Render</title>
+ <title>EnvironmentTests_PortletSession_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>EnvironmentTests_PortletSessionUtil_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletSessionUtil_Render</portlet-class>
+ <portlet-name>EnvironmentTests_PortletSessionUtil_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.EnvironmentTests_PortletSessionUtil_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>EnvironmentTests_PortletSessionUtil_Render</title>
+ <title>EnvironmentTests_PortletSessionUtil_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:AnnotationTests_ProcessEvent_Event</qname>
+ <qname>tck:AnnotationTests_ProcessEvent_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:PortletTests_Event_Event</qname>
+ <qname>tck:PortletTests_Event_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:PortletTests_EventPortlet_Event</qname>
+ <qname>tck:PortletTests_EventPortlet_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:EnvironmentTests_PortletPreferences_Event</qname>
+ <qname>tck:EnvironmentTests_PortletPreferences_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:EnvironmentTests_PreferencesValidator_Event</qname>
+ <qname>tck:EnvironmentTests_PreferencesValidator_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
new file mode 100644
index 0000000..beeeefc
--- /dev/null
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
@@ -0,0 +1,112 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ExceptionTests_PortletModeException_ApiRender_event
+ *
+ */
+public class ExceptionTests_PortletModeException_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ExceptionTests_PortletModeException_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ExceptionTests_PortletModeException_ApiRender_hasGetMode2 */
+ /* Details: "Returns the PortletMode object causing this exception" */
+ TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_APIRENDER_HASGETMODE2);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ }
+
+}
[23/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event.java
deleted file mode 100644
index 9e0b45b..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_Event.java
+++ /dev/null
@@ -1,1092 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_PortletRequest_Event_event
- *
- */
-public class RequestTests_PortletRequest_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "RequestTests_PortletRequest_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldUSER_INFO */
- /* Details: "Has String field USER_INFO with value of */
- /* \"javax.portlet.userinfo\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldUSER_INFO", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldCCPP_PROFILE */
- /* Details: "Has String field CCPP_PROFILE with value of */
- /* \"javax.portlet.ccpp\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldCCPP_PROFILE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldBASIC_AUTH */
- /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldBASIC_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldFORM_AUTH */
- /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldFORM_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldCLIENT_CERT_AUTH */
- /* Details: "Has String field CLIENT_CERT_AUTH with value of */
- /* \"CLIENT_CERT\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldCLIENT_CERT_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldDIGEST_AUTH */
- /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldDIGEST_AUTH", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldACTION_PHASE */
- /* Details: "Has String field ACTION_PHASE with value of */
- /* \"ACTION_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldACTION_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldEVENT_PHASE */
- /* Details: "Has String field EVENT_PHASE with value of */
- /* \"EVENT_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldEVENT_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_PHASE */
- /* Details: "Has String field RENDER_PHASE with value of */
- /* \"RENDER_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldRENDER_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRESOURCE_PHASE */
- /* Details: "Has String field RESOURCE_PHASE with value of */
- /* \"RESOURCE_PHASE\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldRESOURCE_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldLIFECYCLE_PHASE */
- /* Details: "Has String field LIFECYCLE_PHASE with value of */
- /* \"javax.portlet.lifecycle_phase\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldLIFECYCLE_PHASE", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_PART */
- /* Details: "Has String field RENDER_PART with value of */
- /* \"javax.portlet.render_part\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldRENDER_PART", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_HEADERS */
- /* Details: "Has String field RENDER_HEADERS with value of */
- /* \"RENDER_HEADERS\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldRENDER_HEADERS", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldRENDER_MARKUP */
- /* Details: "Has String field RENDER_MARKUP with value of */
- /* \"RENDER_MARKUP\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldRENDER_MARKUP", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_fieldACTION_SCOPE_ID */
- /* Details: "Has String field ACTION_SCOPE_ID with value of */
- /* \"javax.portlet.as\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_fieldACTION_SCOPE_ID", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isWindowStateAllowed1 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
- /* if the specified WindowState is allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isWindowStateAllowed1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isWindowStateAllowed2 */
- /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
- /* if the specified WindowState is not allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isWindowStateAllowed2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isPortletModeAllowed1 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
- /* if the specified PortletMode is allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isPortletModeAllowed1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isPortletModeAllowed2 */
- /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
- /* if the specified PortletMode is not allowed" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isPortletModeAllowed2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletMode */
- /* Details: "Method getPortletMode(): Returns current PortletMode " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletMode", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getWindowState */
- /* Details: "Method getWindowState(): Returns current WindowState" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getWindowState", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPreferences */
- /* Details: "Method getPreferences(): Returns the PortletPreferences */
- /* object associated with the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPreferences", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionA1 */
- /* Details: "Method getPortletSession(): Returns current */
- /* PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionA2 */
- /* Details: "Method getPortletSession(): Returns new PortletSession */
- /* if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB1 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns current PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB2 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* true, returns new PortletSession if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB3 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns current PortletSession if one already exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortletSessionB4 */
- /* Details: "Method getPortletSession(boolean): If input flag is */
- /* false, returns null if one does not already exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortletSessionB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty1 */
- /* Details: "Method getProperty(String): If specified request */
- /* property exists, returns its value " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperty1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty2 */
- /* Details: "Method getProperty(String): If specified request */
- /* property does not exist, returns null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperty2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperty3 */
- /* Details: "Method getProperty(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperty3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties1 */
- /* Details: "Method getProperties(String): If specified request */
- /* property exists, returns its values as an Enumeration " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperties1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties2 */
- /* Details: "Method getProperties(String): If specified request */
- /* property does not exist, returns an empty Enumeration" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperties2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getProperties3 */
- /* Details: "Method getProperties(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getProperties3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPropertyNames1 */
- /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
- /* request property names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPropertyNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPropertyNames2 */
- /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
- /* if there are no request properties defined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPropertyNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPortalContext */
- /* Details: "Method getPortalContext(): Returns the context of the */
- /* portal" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPortalContext", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAuthType1 */
- /* Details: "Method getAuthType(): Returns a String indicating the */
- /* authentication type if the request was authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAuthType1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAuthType2 */
- /* Details: "Method getAuthType(): Returns null if the request was */
- /* not authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAuthType2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath1 */
- /* Details: "Method getContextPath(): Returns a String representing */
- /* the context path associated with the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getContextPath1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath2 */
- /* Details: "Method getContextPath(): Returns an empty String if the */
- /* portlet is deployed in the default context" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getContextPath2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getContextPath3 */
- /* Details: "Method getContextPath(): If the context path is not */
- /* empty, it must start with \"/\" and may not end with \"/\"" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getContextPath3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRemoteUser1 */
- /* Details: "Method getRemoteUser(): Returns a String representing */
- /* the login of the user if the request is authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getRemoteUser1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRemoteUser2 */
- /* Details: "Method getRemoteUser(): Returns null if the request has */
- /* not been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getRemoteUser2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getUserPrincipal1 */
- /* Details: "Method getUserPrincipal(): Returns a */
- /* java.security.Principal object representing the user if the */
- /* request has been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getUserPrincipal1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getUserPrincipal2 */
- /* Details: "Method getUserPrincipal(): Returns null if the request */
- /* has not been authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getUserPrincipal2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole1 */
- /* Details: "Method isUserInRole(): Returns true if the authenticated */
- /* user is in the specified role" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isUserInRole1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole2 */
- /* Details: "Method isUserInRole(): Returns false if the */
- /* authenticated user is not in the specified role" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isUserInRole2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isUserInRole3 */
- /* Details: "Method isUserInRole(): Returns false if the user is not */
- /* authenticated" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isUserInRole3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute1 */
- /* Details: "Method getAttribute(String): Returns a java.lang.Object */
- /* for the specified attribute name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAttribute1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute2 */
- /* Details: "Method getAttribute(String): Returns null if no */
- /* attribute with the specified name exists" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAttribute2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttribute3 */
- /* Details: "Method getAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAttribute3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttributeNames1 */
- /* Details: "Method getAttributeNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* attribute names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAttributeNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getAttributeNames2 */
- /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
- /* if there are no attributes available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getAttributeNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter1 */
- /* Details: "Method getParameter(String): Returns String value of */
- /* parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameter1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter2 */
- /* Details: "Method getParameter(String): Returns String value of a */
- /* public render parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameter2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter3 */
- /* Details: "Method getParameter(String): Returns null if no */
- /* parameter exists for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameter3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter4 */
- /* Details: "Method getParameter(String): Returns first String value */
- /* from values array if use with a multivalued parameter" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameter4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameter5 */
- /* Details: "Method getParameter(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameter5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterNames1 */
- /* Details: "Method getParameterNames(): Returns a */
- /* java.util.Enumeration<java.lang.String> of the available */
- /* parameter names" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterNames1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterNames2 */
- /* Details: "Method getParameterNames(): Returns an empty Enumeration */
- /* if there are no parameters available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterNames2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues1 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterValues1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues2 */
- /* Details: "Method getParameterValues(String): Returns String[] */
- /* value of a public render parameter specified by the name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterValues2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues3 */
- /* Details: "Method getParameterValues(String): Returns null if no */
- /* parameter exists for the specified name" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterValues3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterValues4 */
- /* Details: "Method getParameterValues(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterValues4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap1 */
- /* Details: "Method getParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the parameter names and values if parameters are available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap2 */
- /* Details: "Method getParameterMap(): The returned map contains all */
- /* public and private parameters for the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getParameterMap3 */
- /* Details: "Method getParameterMap(): Returns an empty map if no */
- /* parameters exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isSecure1 */
- /* Details: "Method isSecure(): Returns true if the request was made */
- /* through a secure channel" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isSecure1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isSecure2 */
- /* Details: "Method isSecure(): Returns false if the request was not */
- /* made through a secure channel" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isSecure2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute1 */
- /* Details: "Method setAttribute(String, Object): Stores an attribute */
- /* object under the specified name in the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_setAttribute1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute2 */
- /* Details: "Method setAttribute(String, Object): Removes the */
- /* attribute by the specified name if the object is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_setAttribute2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_setAttribute3 */
- /* Details: "Method setAttribute(String, Object): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_setAttribute3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_removeAttribute1 */
- /* Details: "Method removeAttribute(String): Removes the attribute */
- /* specified by the name from the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_removeAttribute1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_removeAttribute2 */
- /* Details: "Method removeAttribute(String): Throws */
- /* IllegalArgumentException if the name is null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_removeAttribute2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRequestedSessionId1 */
- /* Details: "Method getRequestedSessionId(): Returns the session ID */
- /* indicated in the client request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getRequestedSessionId1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getRequestedSessionId2 */
- /* Details: "Method getRequestedSessionId(): Returns null if no */
- /* session ID was indicated in the client request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getRequestedSessionId2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid1 */
- /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
- /* session ID is valid" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid2 */
- /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
- /* session ID is not valid" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentType1 */
- /* Details: "Method getResponseContentType(): Returns a String */
- /* representing the portal preferred content type for the response if */
- /* the content type is defined in the portlet descriptor " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getResponseContentType1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentType2 */
- /* Details: "Method getResponseContentType(): Returns an empty */
- /* Enumeration if the content type is not defined in the portlet */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getResponseContentType2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentTypes1 */
- /* Details: "Method getResponseContentTypes(): Returns an */
- /* java.util.Enumeration<java.lang.String> object representing */
- /* the portal preferred content types for the response if the content */
- /* types are defined in the portlet descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getResponseContentTypes1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getResponseContentTypes2 */
- /* Details: "Method getResponseContentTypes(): Returns an empty */
- /* Enumeration if the content types are not defined in the portlet */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getResponseContentTypes2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getLocale */
- /* Details: "Method getLocale(): Returns an java.util.Locale object */
- /* representing the preferred Locale for the response" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getLocale", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getLocales */
- /* Details: "Method getLocales(): Returns an */
- /* java.util.Enumeration<java.util.Locale> of the Locales in */
- /* which the portal will accept content" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getLocales", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getScheme */
- /* Details: "Method getScheme(): Returns a String value representing */
- /* the scheme name for the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getScheme", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getServerName */
- /* Details: "Method getServerName(): Returns a String value */
- /* representing the host name for the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getServerName", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getServerPort */
- /* Details: "Method getServerPort(): Returns an int value */
- /* representing the port number for the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getServerPort", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getWindowID */
- /* Details: "Method getWindowID(): Returns a String value */
- /* representing the portlet window ID" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getWindowID", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getCookies1 */
- /* Details: "Method getCookies(): Returns a */
- /* javax.servlet.http.Cookie[] array containing the cookies for this */
- /* request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getCookies1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getCookies2 */
- /* Details: "Method getCookies(): Returns null if no cookies are */
- /* present" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getCookies2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap1 */
- /* Details: "Method getPrivateParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the private parameter names and values if available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPrivateParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap2 */
- /* Details: "Method getPrivateParameterMap(): The returned map is */
- /* immutable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPrivateParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPrivateParameterMap3 */
- /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
- /* no private parameters exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPrivateParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap1 */
- /* Details: "Method getPublicParameterMap(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* for the public parameter names and values if available" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPublicParameterMap1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap2 */
- /* Details: "Method getPublicParameterMap(): The returned map is */
- /* immutable" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPublicParameterMap2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_getPublicParameterMap3 */
- /* Details: "Method getPublicParameterMap(): Returns an empty map if */
- /* no public parameters exist" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_getPublicParameterMap3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_PortletRequest_Event_exists */
- /* Details: "Method exists(): The P3PUserInfos exist as a public */
- /* static enum" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_PortletRequest_Event_exists", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
[60/63] [abbrv] Updated the assertion CSV files in the doc-files
directory
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d6d7d72c/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertions.csv
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertions.csv b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertions.csv
index 69db64b..c3dfc57 100644
--- a/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertions.csv
+++ b/portlet-tck_3.0/src/main/javadoc/doc-files/JSR286SpecAssertions.csv
@@ -1,758 +1,1036 @@
-Section;Title;Name;Test;Description
-Addl Portlet Tests;;;;
-SPEC2_2;Compatibility;deployJSR168_1;TRUE;A portlet with the JSR 168 deployment descriptor can be deployed
-SPEC2_2;Compatibility;deployJSR168_2;TRUE;A portlet implementing only the JSR 168 API can be deployed
-SPEC2_5;Number of Portlet Instances;instantiate1;FALSE;In a single-VM environment, the portlet container must instantiate only one portlet object per portlet definition
-SPEC2_5;Number of Portlet Instances;instantiate2;FALSE;When the portlet application is marked as distributable in a multiple-VM environment, the portlet container must instantiate only one portlet object per portlet definition per virtual machine
-SPEC2_5;Initialization;initialization1;APITEST;The portlet container must initialize the portlet before invoking it to handle requests
-SPEC2_5;Initialization;initialization2;APITEST;A PortletConfig object must be passed to the portlet during initialization
-SPEC2_5;Initialization;initialization3;APITEST;If the portlet throws an UnavailableException or PortletException during initialization, the portlet container must not place the portlet in service
-SPEC2_5;Initialization;initialization4;FALSE;If the portlet throws an UnavailableException or PortletException during initialization, the portlet container must not call the destroy() method
-SPEC2_5;Initialization;initialization5;FALSE;If the portlet throws an UnavailableException containing time of unavailability, the portlet container must wait for the specified time to pass before initializing the portlet again
-SPEC2_5;Initialization;initialization6;TRUE;A RuntimeException thrown during initialization must be handled as a PortletException
-SPEC2_5;End Of Service;destroy1;FALSE;Once the destroy method is called on a portlet object, the portlet container must not route any requests to that portlet object
-SPEC2_5;End Of Service;destroy2;FALSE;After destroy(), if the portlet container needs to enable the portlet again, it must do so with a new portlet object, which is a new instance of the portlet's class
-SPEC2_5;End Of Service;destroy3;FALSE;If the portlet object throws a RuntimeException within the execution of the destroy method the portlet container must consider the portlet object successfully destroyed
-SPEC2_5;End Of Service;destroy4;FALSE;After the destroy method completes, the portlet container must release the portlet object so that it is eligible for garbage collection
-SPEC2_5;Request Handling;action1;APITEST;If the client request is triggered by an action URL, the portlet container must invoke the processAction method for the target portlet
-SPEC2_5;Request Handling;action2;TRUE;During action processing, the portlet container waits for the processAction method to complete before processing any events that were set
-SPEC2_5;Request Handling;action3;APITEST;During action processing, the portlet container calls the processEvent method for all portlets receiving events
-SPEC2_5;Request Handling;action4;APITEST;After event processing is finished, the portlet container calls the render method for all portlets on the page
-SPEC2_5;Request Handling;action5;TRUE;If the portlet issues a redirect during action processing, the portlet container allows the processAction method to complete
-SPEC2_5;Request Handling;action6;TRUE;If the portlet issues a redirect during action processing, the portlet container must send the redirect back to the user agent and finalize the request processing.
-SPEC2_5;Request Handling;action7;TRUE;If the portlet issues a redirect during action processing, events that were set are not processed
-SPEC2_5;Request Handling;render1;TRUE;If the client request is triggered by a render URL, the portlet container must invoke the render method for all portlets on the page that do not have valid cache entries
-SPEC2_5;Request Handling;render2;FALSE;If the client request is triggered by a render URL, the portlet container may invoke the render method for portlets on the page that have valid cache entries
-SPEC2_5;Request Handling;render3;TRUE;If the client request is triggered by a render URL, the portlet container must not invoke the processAction method for any portlet on the page
-SPEC2_5;Request Handling;resource1;TRUE;If the client request is triggered by a resource URL, the portlet container must invoke the serveResource method for the target portlet if its content does not have a valid cache entry
-SPEC2_5;Request Handling;resource2;FALSE;If the client request is triggered by a resource URL, the portlet container may invoke the serveResource method for the target portlet if its content has a valid cache entry
-SPEC2_5;Request Handling;resource3;TRUE;If the client request is triggered by a resource URL, the portlet container must not invoke the processAction method for any portlet on the page
-SPEC2_5;Request Handling;exception1;TRUE;If the portlet throws an PortletException in processAction, all operations on the ActionResponse, including set events, must be ignored
-SPEC2_5;Request Handling;exception2;TRUE;If the portlet throws a RuntimeException in processAction, all operations on the ActionResponse, including set events, must be ignored
-SPEC2_5;Request Handling;exception3;FALSE;If the portlet throws an permanent UnavailableException in processAction, the portlet container must call the destroy method and dispose of the object
-SPEC2_5;Request Handling;exception4;TRUE;If the portlet throws an PortletException in processEvent, all operations on the EventResponse, including set events, must be ignored
-SPEC2_5;Request Handling;exception5;TRUE;If the portlet throws a RuntimeException in processEvent, all operations on the EventResponse, including set events, must be ignored
-SPEC2_5;Request Handling;exception6;FALSE;If the portlet throws an permanent UnavailableException in processEvent, the portlet container must call the destroy method and dispose of the object
-SPEC2_5;GenericPortlet;actionDispatching1;APITEST;If the ActionRequest.ACTION_NAME parameter is set on the action URL, the GenericPortlet processAction method will dispatch the request to a subclass method annotated with the tag @ProcessAction(name=<action name>)
-SPEC2_5;GenericPortlet;actionDispatching2;TRUE;If the ActionRequest.ACTION_NAME parameter is not set on the action URL, the GenericPortlet processAction method will throw a PortletException
-SPEC2_5;GenericPortlet;actionDispatching3;APITEST;If the ActionRequest.ACTION_NAME annotated method cannot be found, the GenericPortlet processAction method will throw a PortletException
-SPEC2_5;GenericPortlet;eventDispatching1;TRUE;The GenericPortlet processEvent method will dispatch the request to a subclass method annotated with the tag @ProcessEvent(qname=<eventname>), where <eventname> must be in the format provided by Qname.toString()
-SPEC2_5;GenericPortlet;eventDispatching2;TRUE;The GenericPortlet processEvent method will dispatch the request to a subclass method annotated with the tag @ProcessEvent(name=<event_name_local_part>)
-SPEC2_5;GenericPortlet;eventDispatching6;APITEST;If no matching annotated method is found, the GenericPortlet processEvent method sets the render parameters to match the request parameters
-SPEC2_5;GenericPortlet;resourceDispatching1;APITEST;If the resource ID is set on the ResourceURL triggering the request, the GenericPortlet serveResource method will forward the request to the value of the resource ID field
-SPEC2_5;GenericPortlet;resourceDispatching5;APITEST;If the resource ID is not set on the ResourceURL triggering the request, the GenericPortlet serveResource method does nothing
-SPEC2_5;GenericPortlet;renderDispatching1;APITEST;render - The GenericPortlet render method will set the title returned by the getTitle method
-SPEC2_5;GenericPortlet;renderDispatching2;APITEST;render - If the Attribute RenderRequest.RENDER_PART is set to RENDER_HEADERS, the doHeaders method is called
-SPEC2_5;GenericPortlet;renderDispatching3;APITEST;render - If the Attribute RenderRequest.RENDER_PART is set to RENDER_MARKUP, the doDispatch method is called
-SPEC2_5;GenericPortlet;renderDispatching4;APITEST;render - If the Attribute RenderRequest.RENDER_PART is set to an unknown value, a PortletException is thrown
-SPEC2_5;GenericPortlet;renderDispatching5;APITEST;render - The GenericPortlet render method will call the doDispatch method
-SPEC2_5;GenericPortlet;renderDispatching6;APITEST;getTitle - If the GenericPortlet getTitle method is overwritten, the value the method returns will be used as title
-SPEC2_5;GenericPortlet;renderDispatching7;APITEST;getTitle - The GenericPortlet getTitle method will set the title retrieved from the ResourceBundle provided by the PortletConfig
-SPEC2_5;GenericPortlet;renderDispatching8;TRUE;getTitle - If a ResourceBundle containing the title string is defined in the deployment descriptor, that title string will be used
-SPEC2_5;GenericPortlet;renderDispatching9;TRUE;getTitle - If a ResourceBundle containing the title string is not defined in the deployment descriptor, the title defined in the portlet descriptor <title> element is used
-SPEC2_5;GenericPortlet;renderDispatching10;APITEST;doDispatch - If the portlet window state is WindowState.MINIMIZED, the doDispatch method does nothing
-SPEC2_5;GenericPortlet;renderDispatching11;APITEST;doDispatch - The GenericPortlet doDispatch method will dispatch the request to a subclass method annotated with the tag @RenderMode(name=<portlet mode name>)
-SPEC2_5;GenericPortlet;renderDispatching17;APITEST;doDispatch - If an annotated method cannot be found, and the portlet mode is VIEW, the doView method is called
-SPEC2_5;GenericPortlet;renderDispatching18;APITEST;doDispatch - If an annotated method cannot be found, and the portlet mode is EDIT, the doEdit method is called
-SPEC2_5;GenericPortlet;renderDispatching19;APITEST;doDispatch - If an annotated method cannot be found, and the portlet mode is HELP, the doHelp method is called
-SPEC2_5;GenericPortlet;renderDispatching20;APITEST;doDispatch - If an annotated method cannot be found and the portlet mode is not VIEW, EDIT, or HELP, a PortletException is thrown
-SPEC2_6;Config;getResourceBundle1;TRUE;The resource bundle defined in the deployment descriptor <resource-bundle> element can be obtained through the PortletConfig object
-SPEC2_6;Config;getResourceBundle2;TRUE;If the resource bundle contains a "javax.portlet.title" property, the value defined in the bundle is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle3;TRUE;If the resource bundle contains a "javax.portlet.short-title" property, the value defined in the bundle is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle4;TRUE;If the resource bundle contains a "javax.portlet.keywords" property, the value defined in the bundle is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle5;TRUE;If the resource bundle does not contain a "javax.portlet.title" property, the value defined in the deployment descriptor <title> element is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle6;TRUE;If the resource bundle does not contain a "javax.portlet.short-title" property, the value defined in the deployment descriptor <short-title> element is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle7;TRUE;If the resource bundle does not contain a "javax.portlet.keywords" property, the value defined in the deployment descriptor <keywords> element is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle8;TRUE;If no resource bundle is defined, the value defined in the deployment descriptor <title> element is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle9;TRUE;If no resource bundle is defined, the value defined in the deployment descriptor <short-title> element is returned by the corresponding getString method call
-SPEC2_6;Config;getResourceBundle10;TRUE;If no resource bundle is defined, the value defined in the deployment descriptor <keywords> element is returned by the corresponding getString method call
-SPEC2_6;Config;getDefaultNamespace1;APITEST;The getDefaultNamespace method returns the default namespace set in the <default-namespace> element of the portlet application deployment descriptor
-SPEC2_6;Config;getDefaultNamespace2;APITEST;The getDefaultNamespace method returns the value XMLConstants.NULL_NS_URI if no <default-namespace> element is set in the portlet application deployment descriptor
-SPEC2_6;Config;getPublicRenderParameterNames1;APITEST;The getPublicRenderParameterNames method returns an Enumeration of the public render parameters set in the <supported-publishing-event> element of the portlet application deployment descriptor
-SPEC2_6;Config;getPublicRenderParameterNames2;APITEST;The getPublicRenderParameterNames method returns an empty Enumeration if no <supported-publishing-event> element is set in the portlet application deployment descriptor
-SPEC2_6;Config;getPublishingEventQnames1;APITEST;The getPublishingEventQnames method returns an Enumeration of the public render parameters set in the <supported-publishing-event> element of the portlet application deployment descriptor
-SPEC2_6;Config;getPublishingEventQnames2;APITEST;The getPublishingEventQnames method returns an empty Enumeration the value XMLConstants.NULL_NS_URI if no <supported-publishing-event> element is set in the portlet application deployment descriptor
-SPEC2_6;Config;getPublishingEventQnames3;TRUE;getPublishingEventQnames - If the event was defined using the <name> element rather than the <qname> element, default namespace defined with the <default-namespace> element must be added as the event namespace
-SPEC2_6;Config;getPublishingEventQnames4;TRUE;getPublishingEventQnames - If the event was defined using the <name> element rather than the <qname> element and there is no default namespace defined, the value XMLConstants.NULL_NS_URI must be added as the event namespace
-SPEC2_6;Config;getProcessingEventQnames1;APITEST;The getProcessingEventQnames method returns an Enumeration of the public render parameters set in the <supported-Processing-event> element of the portlet application deployment descriptor
-SPEC2_6;Config;getProcessingEventQnames2;APITEST;The getProcessingEventQnames method returns an empty Enumeration the value XMLConstants.NULL_NS_URI if no <supported-Processing-event> element is set in the portlet application deployment descriptor
-SPEC2_6;Config;getProcessingEventQnames3;TRUE;getProcessingEventQnames - If the event was defined using the <name> element rather than the <qname> element, default namespace defined with the <default-namespace> element must be added as the event namespace
-SPEC2_6;Config;getProcessingEventQnames4;TRUE;getProcessingEventQnames - If the event was defined using the <name> element rather than the <qname> element and there is no default namespace defined, the value XMLConstants.NULL_NS_URI must be added as the event namespace
-SPEC2_6;Config;getSupportedLocales1;APITEST;The getSupportedLocales method returns an Enumeration of the supported locales set in the <supported-locale> element of the portlet application deployment descriptor
-SPEC2_6;Config;getSupportedLocales2;APITEST;The getSupportedLocales method returns an empty Enumeration the value XMLConstants.NULL_NS_URI if no <supported-locale> element is set in the portlet application deployment descriptor
-SPEC2_6;Config;getContainerRuntimeOptions1;APITEST;The method returns a Map
-SPEC2_6;Config;getContainerRuntimeOptions2;APITEST;The returned Map has key type of String
-SPEC2_6;Config;getContainerRuntimeOptions3;APITEST;The returned Map has value type of String[]
-SPEC2_6;Config;getContainerRuntimeOptions5;APITEST;The returned Map contains only values defined in the deployment descriptor <container-runtime-option> elements
-SPEC2_6;Config;getContainerRuntimeOptions6;TRUE;The returned Map contains values defined in the deployment descriptor <container-runtime-option> elements at the portlet application level
-SPEC2_6;Config;getContainerRuntimeOptions7;TRUE;The returned Map contains values defined in the deployment descriptor <container-runtime-option> elements at the portlet level
-SPEC2_6;Config;getContainerRuntimeOptions8;TRUE;If the deployment descriptor contains <container-runtime-option> elements defined at both the portlet and the portlet application levels, the returned Map contains a merger of all values
-SPEC2_6;Config;getContainerRuntimeOptions9;TRUE;If the deployment descriptor contains <container-runtime-option> elements of the same name defined at both the portlet and the portlet application levels, the returned Map contains a the value defined at the portlet level
-SPEC2_6;Config;getContainerRuntimeOptions10;APITESTS;The returned Map does not contain values not supported by the portlet container
-SPEC2_8;Portlet Modes;declaringPortletModes1;TRUE;Support for the VIEW mode does not need to be declared in the deployment descriptor
-SPEC2_8;Portlet Modes;declaringPortletModes2;TRUE;Support for the HELP mode must be declared in the deployment descriptor
-SPEC2_8;Portlet Modes;declaringPortletModes3;TRUE;A custom portlet mode may be declared in the deployment descriptor
-SPEC2_8;Portlet Modes;declaringPortletModes4;TRUE;A custom portlet mode with <portal-managed>false</portal-managed> may be declared in the deployment descriptor
-SPEC2_8;Portlet Modes;declaringPortletModes5;TRUE;The PortletRequest.isPortletModeAllowed method must return FALSE for a custom portlet mode with <portal-managed>true</portal-managed> that is not supported by the portlet container
-SPEC2_8;Portlet Modes;declaringPortletModes6;TRUE;The portlet container must ignore all custom portlet modes in the deployment descriptor with <portal-managed>true</portal-managed> that is not supported by the portlet container
-SPEC2_8;Portlet Modes;declaringPortletModes7;TRUE;A custom portlet mode with <portal-managed>false</portal-managed> corresponds to the VIEW mode from the portal point of view
-SPEC2_8;Portlet Modes;declaringPortletModes8;TRUE;A custom portlet mode can have a localized decoration name in the resource bundle with the name of javax.portlet.app.custom-portlet-mode.<name>.decoration-name
-SPEC2_8;Portlet Modes;declaringPortletModes9;TRUE;The portlet must not be invoked in a mode that has not been declared to be supported for a given markup type
-SPEC2_9;Window States;declaringWindowStates1;TRUE;Support for the NORMAL window state does not need to be declared in the deployment descriptor
-SPEC2_9;Window States;declaringWindowStates2;TRUE;Support for the MINIMIZED window state does not need to be declared in the deployment descriptor
-SPEC2_9;Window States;declaringWindowStates3;TRUE;Support for the MAXIMIZED window state does not need to be declared in the deployment descriptor
-SPEC2_9;Window States;declaringWindowStates4;TRUE;A custom window state may be declared in the deployment descriptor
-SPEC2_9;Window States;declaringWindowStates5;TRUE;The PortletRequest.isWindowStateAllowed method must return FALSE for a custom window state that is not supported by the portlet container
-SPEC2_9;Window States;declaringWindowStates6;TRUE;The portlet container must ignore all custom window states in the deployment descriptor that are not supported by the portal
-SPEC2_9;Window States;declaringWindowStates7;TRUE;The portlet must not be invoked in a window state other than NORMAL, MINIMIZED, or MAXIMIZED that has not been declared to be supported for a given markup type
-SPEC2_13;Resource Serving;properties1;APITEST;The setProperty method sets a property with a given name and value
-SPEC2_13;Resource Serving;properties2;APITEST;The setProperty method replaces an existing property of the same name
-SPEC2_13;Resource Serving;properties3;TRUE;The setProperty method can set HTTP header values to be transported back to the client
-SPEC2_13;Resource Serving;properties4;TRUE;If the setProperty method is called after the response has been committed, the property will not be transported back to the client
-SPEC2_13;Resource Serving;properties5;APITEST;The addProperty method adds a property with a given name and value
-SPEC2_13;Resource Serving;properties6;APITEST;The addProperty method adds a value to an existing property of the same name
-SPEC2_13;Resource Serving;properties7;TRUE;The addProperty method can add HTTP header values to be transported back to the client
-SPEC2_13;Resource Serving;properties8;TRUE;If the addProperty method is called after the response has been committed, the property will not be transported back to the client
-SPEC2_13;Resource Serving;properties9;APITEST;The portlet can use the getProperty method to access single portal property and optionally-available HTTP header values
-SPEC2_13;Resource Serving;properties10;APITEST;The portlet can use the getProperties method to access multiple portal property and optionally-available HTTP header values by the same property name
-SPEC2_13;Resource Serving;properties11;APITEST;The portlet can use the getPropertyNames method to obtain an Enumeration of all available property names
-SPEC2_13;Resource Serving;properties12;APITEST;The portlet can access cookies provided by the current request using the getCookies method
-SPEC2_13;Resource Serving;properties13;APITEST;The portlet can use the getMethod method to retrieve the HTTP method through which the request was made
-SPEC2_13;Resource Serving;properties14;APITEST;The portlet can use the getResourceID method to retrieve the resource ID string set on the ResourceURL
-SPEC2_13;Resource Serving;properties15;APITEST;If a resource ID has not been set on the ResourceURL, the getResourceID method must return null
-SPEC2_13;Resource Serving;resourceURLs1;APITEST;When a resource URL is invoked, the portlet container must call the serveResource method of the portlet or return a valid cached result for this resource URL
-SPEC2_13;Resource Serving;resourceURLs2;TRUE;When a resource URL is invoked, the portlet container must not call the processAction method
-SPEC2_13;Resource Serving;resourceURLs3;TRUE;When a resource URL is invoked, the portlet container must not call the processEvent method
-SPEC2_13;Resource Serving;resourceURLs4;TRUE;After a resource URL has been created, the portlet mode set on the resource URL cannot be changed
-SPEC2_13;Resource Serving;resourceURLs5;TRUE;After a resource URL has been created, the window state set on the resource URL cannot be changed
-SPEC2_13;Resource Serving;resourceURLs6;TRUE;After a resource URL has been created, the render parameters set on the resource URL cannot be changed
-SPEC2_13;Resource Serving;resourceURLs7;TRUE;After a resource URL has been created, a parameter set on the resource URL is a resource parameter, not a render parameter
-SPEC2_13;Resource Serving;resourceURLs8;TRUE;After a resource URL has been created, a parameter set on the URL with the same name as an exsisting render parameter results in a multivalued parameter containing both the resource pramaeter values and the render parameter values
-SPEC2_13;Resource Serving;resourceURLs9;TRUE;In the resulting multivalued parameter after a resource parameter is added with the same name as a render parameter, the the render parameter values must be the last entries in the parameter value array
-SPEC2_13;Resource Serving Cache;caching1;TRUE;If portlet URLs are included in the markup, portals / portlet containers must create correct portlet URLs for all text-based markup types.
-SPEC2_13;Resource Serving Cache;caching2;TRUE;The portlet can use the setCacheability method to set the cache level for the ResourceURL
-SPEC2_13;Resource Serving Cache;caching3;TRUE;If the cache level is not set, a generated resource URL has the cacheability of the request in which it was created
-SPEC2_13;Resource Serving Cache;cachingFULL1;TRUE;If the cache level is set to FULL, the resource URL does not contain the current render parameters
-SPEC2_13;Resource Serving Cache;cachingFULL2;TRUE;If the cache level is set to FULL, the resource URL does not contain the current portlet mode
-SPEC2_13;Resource Serving Cache;cachingFULL3;TRUE;If the cache level is set to FULL, the resource URL does not contain the current window state
-SPEC2_13;Resource Serving Cache;cachingFULL4;TRUE;If the cache level is set to FULL, the resource URL does not contain the current page state
-SPEC2_13;Resource Serving Cache;cachingFULL5;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to FULL, a resource URL with cacheability set to FULL may be generated
-SPEC2_13;Resource Serving Cache;cachingFULL6;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to FULL, setting cacheability on a resource URL to PORTLET results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingFULL7;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to FULL, setting cacheability on a resource URL to PAGE results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingFULL8;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to FULL, an attempt to create a render URL results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingFULL9;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to FULL, an attempt to create an action URL results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingPORTLET1;TRUE;If the cache level is set to PORTLET, the resource URL contains the current render parameters
-SPEC2_13;Resource Serving Cache;cachingPORTLET2;TRUE;If the cache level is set to PORTLET, the resource URL contains the current portlet mode
-SPEC2_13;Resource Serving Cache;cachingPORTLET3;TRUE;If the cache level is set to PORTLET, the resource URL contains the current window state
-SPEC2_13;Resource Serving Cache;cachingPORTLET4;TRUE;If the cache level is set to PORTLET, the resource URL does not contain the current page state
-SPEC2_13;Resource Serving Cache;cachingPORTLET5;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PORTLET, a resource URL with cacheability set to FULL may be generated
-SPEC2_13;Resource Serving Cache;cachingPORTLET6;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PORTLET, a resource URL with cacheability set to PORTLET may be generated
-SPEC2_13;Resource Serving Cache;cachingPORTLET7;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PORTLET, setting cacheability on a resource URL to PAGE results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingPORTLET8;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PORTLET, an attempt to create a render URL results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingPORTLET9;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PORTLET, an attempt to create an action URL results in an an IllegalStateException
-SPEC2_13;Resource Serving Cache;cachingPAGE1;TRUE;If the cache level is set to PAGE, the resource URL contains the current render parameters
-SPEC2_13;Resource Serving Cache;cachingPAGE2;TRUE;If the cache level is set to PAGE, the resource URL contains the current PAGE mode
-SPEC2_13;Resource Serving Cache;cachingPAGE3;TRUE;If the cache level is set to PAGE, the resource URL contains the current window state
-SPEC2_13;Resource Serving Cache;cachingPAGE4;TRUE;If the cache level is set to PAGE, the resource URL contains the current page state
-SPEC2_13;Resource Serving Cache;cachingPAGE5;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PAGE, a resource URL with cacheability set to FULL may be generated
-SPEC2_13;Resource Serving Cache;cachingPAGE6;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PAGE, a resource URL with cacheability set to PORTLET may be generated
-SPEC2_13;Resource Serving Cache;cachingPAGE7;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PAGE, a resource URL with cacheability set to PAGE may be generated
-SPEC2_13;Resource Serving Cache;cachingPAGE8;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PAGE, a render URL may be generated
-SPEC2_13;Resource Serving Cache;cachingPAGE9;TRUE;In a resource request resulting from triggering a resource URL with cacheability set to PAGE, an action URL may be generated
-SPEC2_15;Event;event1;TRUE;Event names are defined in the deployment descriptor
-SPEC2_15;Event;event2;TRUE;Event value types are defined in the deployment descriptor
-SPEC2_15;Event;event3;TRUE;The supported publishing events for the portlet are defined in the deployment descriptor
-SPEC2_15;Event;event4;TRUE;The supported processing events for the portlet are defined in the deployment descriptor
-SPEC2_15;Event;event5;TRUE;The portlet can use the EventRequest.getEvent method to obtain an Event object encapsulating the event name and value
-SPEC2_15;Event;event6;TRUE;The Event object must always have a name
-SPEC2_15;Event;event7;TRUE;If the Event object has a value set when the event is published, the value must be based on the value defined in the deployment descriptor
-SPEC2_15;Event;event8;TRUE;If the Event object has a value set when the event is published, the value must be available from the Event object in the processEvent method
-SPEC2_15;Event;event9;TRUE;If the Event object does not have a value set when the event is published, the Event object available in the processEvent method must not have a value
-SPEC2_15;Event;event10;TRUE;The Event Qname object representing the name can be retrieved through the Event getQname method
-SPEC2_15;Event;event11;TRUE;The local part of the Event Qname object representing the name can be retrieved through the Event getName method
-SPEC2_15;Event;event12;TRUE;Events are valid only in the current client request and the portlet container must therefore deliver all events within the current client request
-SPEC2_15;Event;event13;TRUE;Event distribution must be serialized for a specific portlet window per client request so that at any given time a portlet window is only processing one event in the processEvent method for the current client request
-SPEC2_15;Event;event14;TRUE;Portlet event processing may occur after the processing of the action, if the portlet was target of an action URL, and must be finished before the render phase
-SPEC2_15;Event;event15;TRUE;If a portlet throws an exception in the processEvent method, all operations on the EventResponse must be ignored
-SPEC2_15;Event;event16;TRUE;If a portlet throws a permanent UnavailableException, the portlet container must remove the portlet from service immediately, call the portlet's destroy method, and release the portlet object
-SPEC2_15;Event;eventProcessAction1;TRUE;The portlet can publish an event via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessAction2;TRUE;The portlet can publish an event with its full Qname via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessAction3;TRUE;The portlet can publish an event with only the local part of the Qname via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessAction4;TRUE;If an event is published with only the local part of the Qname, the namespace must be the default namespace defined in the deployment descriptor
-SPEC2_15;Event;eventProcessAction5;TRUE;If an event is published with only the local part of the Qname and no default namespace is defined in the deployment descriptor, the value javax.xml.XMLConstants.NULL_NS_URI must be used as the Qname namespace
-SPEC2_15;Event;eventProcessAction6;TRUE;If an object is serializeable and has a valid JAXB binding or is a Java primitive type, it can be used as an event value
-SPEC2_15;Event;eventProcessAction7;TRUE;If a value is not serializeable, the setEvent method must throw an IllegalArgumentException
-SPEC2_15;Event;eventProcessAction8;TRUE;If a value does not have a valid JAXB binding and is not a Java primitve type, the setEvent method must throw an IllegalArgumentException
-SPEC2_15;Event;eventProcessAction9;TRUE;The portlet can publish multiple events via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessAction10;FALSE;The portlet can publish an event that is not described in the portlet descriptor via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessEvent1;TRUE;The portlet can publish an event via the setEvent method in the processEvent method
-SPEC2_15;Event;eventProcessEvent2;TRUE;The portlet can publish an event with its full Qname via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessEvent3;TRUE;The portlet can publish an event with only the local part of the Qname via the setEvent method in the processAction method
-SPEC2_15;Event;eventProcessEvent4;TRUE;If an event is published with only the local part of the Qname, the namespace must be the default namespace defined in the deployment descriptor
-SPEC2_15;Event;eventProcessEvent5;TRUE;If an event is published with only the local part of the Qname and no default namespace is defined in the deployment descriptor, the value javax.xml.XMLConstants.NULL_NS_URI must be used as the Qname namespace
-SPEC2_15;Event;eventProcessEvent6;TRUE;If an object is serializeable and has a valid JAXB binding or is a Java primitive type, it can be used as an event value
-SPEC2_15;Event;eventProcessEvent7;TRUE;If a value is not serializeable, the setEvent method must throw an IllegalArgumentException
-SPEC2_15;Event;eventProcessEvent8;TRUE;If a value does not have a valid JAXB binding and is not a Java primitve type, the setEvent method must throw an IllegalArgumentException
-SPEC2_15;Event;eventProcessEvent9;TRUE;The portlet can publish multiple events via the setEvent method in the processEvent method
-SPEC2_15;Event;eventProcessEvent10;FALSE;The portlet can publish an event that is not described in the portlet descriptor via the setEvent method in the processEvent method
-SPEC2_15;Event;containerEvent1;OPTION;The portlet container can (but is not required to) raise container events
-SPEC2_15;Event;containerEvent2;OPTION;A portlet can subscribe to a container event by declaring ethe event in the deployment descriptor through the <supported-processing-event> element
-SPEC2_15;Event;containerEvent3;OPTION;The predefined container event "wsrp:eventHandlingFailed" can be processed when the portal detects that errors occurred while distributing events
-SPEC2_15;Event;containerEvent4;OPTION;The predefined container event "wsrp:newNavigationalContextScope" can be processed when the portal navigational context changes
-SPEC2_15;Event;containerEvent5;OPTION;The predefined container event "wsrp:newMode" can be processed when the portlet has been put into a new portlet mode
-SPEC2_15;Event;containerEvent6;OPTION;The predefined container event "wsrp:newWindowState" can be processed when the portlet has been put into a new window state
-Addl Url Tests;;;;
-SPEC2_7;Url Render;renderURL0;TRUE;When a render URL is triggered, the processAction method must not be invoked
-SPEC2_7;Url Render;renderURL1;TRUE;When a render URL is triggered, the render method must be invoked
-SPEC2_7;Url Render;renderURL2;TRUE;When render parameters are set on a render URL, those parameters must become render parameters of the request resulting from triggering the renderURL
-SPEC2_7;Url Render;renderURL3;TRUE;When render parameters are set on a render URL, those parameters must become render parameters of the request resulting from triggering the renderURL
-SPEC2_7;Url Render;renderURL4;TRUE;Private render parameters can be set on the render URL through the setParameter(String, String) method
-SPEC2_7;Url Render;renderURL5;TRUE;Private render parameters can be set on the render URL through the setParameter(String, String[]) method
-SPEC2_7;Url Render;renderURL6;TRUE;Private render parameters can be set on the render URL through the setParameterMap(Map<String, String[]>) method
-SPEC2_7;Url Render;renderURL7;TRUE;Public render parameters can be set on the render URL through the setParameter(String, String) method
-SPEC2_7;Url Render;renderURL8;TRUE;Public render parameters can be set on the render URL through the setParameter(String, String[]) method
-SPEC2_7;Url Render;renderURL9;TRUE;Public render parameters can be set on the render URL through the setParameterMap(Map<String, String[]>) method
-SPEC2_7;Url Render;renderURL10;TRUE;If a parameter with an existing name is set through one of the setParameter methods, the existing value is repalced with the new value
-SPEC2_7;Url Render;renderURL11;TRUE;When a render URL is created, render parameters from the current request are not automatically copied to the new render URL
-SPEC2_7;Url Render;renderURL12;FALSE;The portlet-container must "x-www-form-urlencoded" encode parameter names and values added to a render URL object.
-SPEC2_7;Url Render;renderURL13;FALSE;If a portal/portlet-container encodes additional information as parameters, it must namespace them properly to avoid collisions with the parameters set and used by the portlet
-SPEC2_7;Url Action;actionURL1;TRUE;When a action URL is triggered, the processAction method must be invoked
-SPEC2_7;Url Action;actionURL2;TRUE;When action parameters are set on a action URL, those parameters must become action parameters of the request resulting from triggering the actionURL
-SPEC2_7;Url Action;actionURL3;TRUE;When action parameters are set on a action URL, those parameters must become action parameters of the request resulting from triggering the actionURL
-SPEC2_7;Url Action;actionURL4;TRUE;Action parameters can be set on the action URL through the setParameter(String, String) method
-SPEC2_7;Url Action;actionURL5;TRUE;Action parameters can be set on the action URL through the setParameter(String, String[]) method
-SPEC2_7;Url Action;actionURL6;TRUE;Action parameters can be set on the action URL through the setParameterMap(Map<String, String[]>) method
-SPEC2_7;Url Action;actionURL7;TRUE;If a parameter with an existing name is set through one of the setParameter methods, the existing value is repalced with the new value
-SPEC2_7;Url Action;actionURL8;TRUE;When an action URL is created, render parameters from the current request are not automatically copied to the new action URL
-SPEC2_7;Url Action;actionURL9;FALSE;The portlet-container must "x-www-form-urlencoded" encode parameter names and values added to a action URL object.
-SPEC2_7;Url Action;actionURL10;FALSE;If a portal/portlet-container encodes additional information as parameters, it must namespace them properly to avoid collisions with the parameters set and used by the portlet
-SPEC2_7;Url Resource;resourceURL1;TRUE;When a resource URL is triggered, the serveResource method must be invoked
-SPEC2_7;Url Resource;resourceURL2;TRUE;When resource parameters are set on a resource URL, those parameters must become resource parameters of the request resulting from triggering the resourceURL
-SPEC2_7;Url Resource;resourceURL3;TRUE;When resource parameters are set on a resource URL, those parameters must become resource parameters of the request resulting from triggering the resourceURL
-SPEC2_7;Url Resource;resourceURL4;TRUE;Resource parameters can be set on the resource URL through the setParameter(String, String) method
-SPEC2_7;Url Resource;resourceURL5;TRUE;Resource parameters can be set on the resource URL through the setParameter(String, String[]) method
-SPEC2_7;Url Resource;resourceURL6;TRUE;Resource parameters can be set on the resource URL through the setParameterMap(Map<String, String[]>) method
-SPEC2_7;Url Resource;resourceURL7;TRUE;If a parameter with an existing name is set through one of the setParameter methods, the existing value is replaced with the new value
-SPEC2_7;Url Resource;resourceURL8;TRUE;When a resource URL is created, render parameters from the current request are automatically copied to the new resource URL
-SPEC2_7;Url Resource;resourceURL9;TRUE;When a resource URL is created, the automatically copied render parameters are hidden to the ResourceURL getParameter method
-SPEC2_7;Url Resource;resourceURL10;FALSE;The portlet-container must "x-www-form-urlencoded" encode parameter names and values added to a ResourceURL object.
-SPEC2_7;Url Resource;resourceURL11;FALSE;If a portal/portlet-container encodes additional information as parameters, it must namespace them properly to avoid collisions with the parameters set and used by the portlet
-SPEC2_7;Url;portletMode1;TRUE;The portlet may not set a portlet mode that is not defined as supported in the deployment descriptor on a portlet URL
-SPEC2_7;Url;portletMode2;TRUE;The portlet may not set a portlet mode on a portlet URL that it is not allowed to use
-SPEC2_7;Url;portletMode3;FALSE;If the portlet mode is set on the URL, portlet mode must be effective for the request triggered by the URL as allowed by the portal
-SPEC2_7;Url;portletMode4;TRUE;If the portlet mode is not set, the URL must have the portlet mode set for the current request as default
-SPEC2_7;Url;windowState1;TRUE;The portlet may not set a window state that is not defined as supported in the deployment descriptor on a portlet URL
-SPEC2_7;Url;windowState2;TRUE;The portlet may not set a window state on a portlet URL that it is not allowed to use
-SPEC2_7;Url;windowState3;FALSE;If the window state is set on the URL, window state must be effective for the request triggered by the URL if allowed by the portal
-SPEC2_7;Url;windowState4;TRUE;If the window state is not set, the URL must have the window state set for the current request as default
-SPEC2_7;Url;setSecure1;TRUE;If setSecure is called with the parameter set to TRUE, the transport for the request triggered by the URL must be secure
-SPEC2_7;Url;setSecure2;FALSE;If setSecure is called with the parameter set to FALSE, the transport for the request triggered by the URL may not be secure
-SPEC2_7;Url;setSecure3;TRUE;If setSecure is not called, the transport for the request triggered by the URL should be at the same security level as the current request
-SPEC2_7;Url Listener;portletURLGenerationListener1;APITEST;A PortletURLGenerationListener may be configured in the deployment descriptor
-SPEC2_7;Url Listener;portletURLGenerationListener2;APITEST;The method filterActionURL method for all action URLs before executing the write or toString method of these action URLs
-SPEC2_7;Url Listener;portletURLGenerationListener3;APITEST;The method filterRenderURL method for all render URLs before executing the write or toString method of these render URLs
-SPEC2_7;Url Listener;portletURLGenerationListener4;APITEST;The method filterResourceURL method for all resource URLs before executing the write or toString method of these resource URLs
-SPEC2_7;Url Listener;portletURLGenerationListener5;APITEST;The portlet container must provide the PortletURL or ResourceURL to generate to the filter methods and execute the write or toString method on the updated PortletURL or ResourceURL that is the outcome of the filter method call
-SPEC2_7;Url Listener;portletURLGenerationListener6;TRUE;If more than one listener is registered the portlet container must chain the listeners in the order of how they appear in the deployment descriptor
-Addl Environment Tests;;;;
-SPEC2_10;Context;portletContextScope1;FALSE;There is one instance of the PortletContext interface associated with each portlet application deployed into a portlet container
-SPEC2_10;Context;portletContextScope2;FALSE;In cases where the container is distributed over many virtual machines, a portlet application will have an instance of the PortletContext interface for each VM
-SPEC2_10;Context;portletContextServletContext1;TRUE;The initialization parameters accessible through the PortletContext must be the same that are accessible through the ServletContext of the portlet application
-SPEC2_10;Context;portletContextServletContext2;TRUE;The context initialization parameters are set in the web.xml file
-SPEC2_10;Context;portletContextServletContext3;TRUE;The PortletContext must offer access to the same set of resources the ServletContext exposes
-SPEC2_10;Context;portletContextServletContext4;TRUE;The temporary working directory must be accessible as a context attribute through the PortletContext using the attribute name "javax.servlet.context.tempdir"
-SPEC2_10;Context;portletContextServletContext6;FALSE;The portlet context must follow the same behavior and functionality that the servlet context has for virtual hosting and reloading considerations
-SPEC2_10;Context;portletContextServletContext7;TRUE;The PortletContext getAttribute method provides the same functionality as the ServletContext getAttribute method
-SPEC2_10;Context;portletContextServletContext8;TRUE;The PortletContext getAttributeNames method provides the same functionality as the ServletContext getAttributeNames method
-SPEC2_10;Context;portletContextServletContext9;TRUE;The PortletContext getInitParameter method provides the same functionality as the ServletContext getInitParameter method
-SPEC2_10;Context;portletContextServletContext10;TRUE;The PortletContext getInitParameterNames method provides the same functionality as the ServletContext getInitParameterNames method
-SPEC2_10;Context;portletContextServletContext11;TRUE;The PortletContext getMimeType method provides the same functionality as the ServletContext getMimeType method
-SPEC2_10;Context;portletContextServletContext12;TRUE;The PortletContext getRealPath method provides the same functionality as the ServletContext getRealPath method
-SPEC2_10;Context;portletContextServletContext13;TRUE;The PortletContext getResource method provides the same functionality as the ServletContext getResource method
-SPEC2_10;Context;portletContextServletContext14;TRUE;The PortletContext getResourcePaths method provides the same functionality as the ServletContext getResourcePaths method
-SPEC2_10;Context;portletContextServletContext15;TRUE;The PortletContext getResourceAsStream method provides the same functionality as the ServletContext getResourceAsStream method
-SPEC2_10;Context;portletContextServletContext16;TRUE;The PortletContext log method provides the same functionality as the ServletContext log method
-SPEC2_10;Context;portletContextServletContext17;TRUE;The PortletContext removeAttribute method provides the same functionality as the ServletContext removeAttribute method
-SPEC2_10;Context;portletContextServletContext18;TRUE;The PortletContext setAttribute method provides the same functionality as the ServletContext setAttribute method
-SPEC2_10;Context Options;containerRuntimeOptions1;TRUE;The getContainerRuntimeOptions method returns an enumeration of type String containing the keys of all container runtime options that the current portlet container supports.
-SPEC2_10;Context Options;escapeXML1;OPTION;The container runtime option "javax.portlet.escapeXml" can be (but is not required to be) supported by the portlet container
-SPEC2_10;Context Options;escapeXML2;OPTION;If the escapeXML option is supported and set to TRUE, URLs written to the output stream by the tag library will be URL escaped
-SPEC2_10;Context Options;escapeXML3;OPTION;If the escapeXML option is supported and set to FALSE, URLs written to the output stream by the tag library will not be URL escaped
-SPEC2_10;Context Options;renderHeaders1;OPTION;The container runtime option "javax.portlet.renderHeaders" can be (but is not required to be) supported by the portlet container
-SPEC2_10;Context Options;renderHeaders2;OPTION;If the renderHeaders option is supported and set to TRUE, the render method should be called once with the RENDER_PART attribute set to "RENDER_HEADERS"
-SPEC2_10;Context Options;renderHeaders3;OPTION;If the renderHeaders option is supported and set to TRUE, the render method should be called a second time with the RENDER_PART attribute set to "RENDER_MARKUP"
-SPEC2_10;Context Options;renderHeaders4;OPTION;If the renderHeaders option is supported and set to FALSE, the render method should be called once with the RENDER_PART attribute not set
-SPEC2_10;Context Options;servletDefaultSessionScope1;OPTION;The container runtime option "javax.portlet.servletDefaultSessionScope" can be (but is not required to be) supported by the portlet container
-SPEC2_10;Context Options;servletDefaultSessionScope2;OPTION;If the servletDefaultSessionScope option is supported and set to PORTLET_SCOPE, the session variable of included / forwarded servlets or JSPs maps to the portlet session scope
-SPEC2_10;Context Options;servletDefaultSessionScope3;OPTION;If the servletDefaultSessionScope option is supported and set to APPLICATION_SCOPE, the session variable of included / forwarded servlets or JSPs maps to the application session scope
-SPEC2_10;Context Options;servletDefaultSessionScope4;OPTION;If the servletDefaultSessionScope option is supported and not explicitly set, the session variable of included / forwarded servlets or JSPs maps to the application session scope
-SPEC2_10;Context Options;actionScopedRequestAttributes1;TRUE;The container runtime option "javax.portlet.actionScopedRequestAttributes" must be supported by the portlet container
-SPEC2_10;Context Options;actionScopedRequestAttributes2;TRUE;If the actionScopedRequestAttributes option is set to TRUE, request attributes that are set in an action persist until a new action occurs
-SPEC2_10;Context Options;actionScopedRequestAttributes3;TRUE;If the option is set to TRUE and an attribute is set during an action request, the portlet container sets a render parameter with the name PortletRequest.ACTION_SCOPE_ID ("javax.portlet.as")
-SPEC2_10;Context Options;actionScopedRequestAttributes4;TRUE;If the option is set to TRUE and an attribute is set during an action request, the attribute can be accessed in an event request that was initiated by the same action request
-SPEC2_10;Context Options;actionScopedRequestAttributes5;TRUE;If the option is set to TRUE and an attribute is set during an action request, the attribute can be accessed in a subsequent render request
-SPEC2_10;Context Options;actionScopedRequestAttributes6;TRUE;If the option is set to TRUE, a request attribute set during an event request is persisted in the same manner as an attribute set during action processing
-SPEC2_10;Context Options;actionScopedRequestAttributes7;TRUE;If the option is set to TRUE, receiving an action starts a new action scope with a new scope ID, all previous attributes are no longer accessible, new attributes can be stored
-SPEC2_10;Context Options;actionScopedRequestAttributes8;TRUE;If the option is set to TRUE, receiving a render without an existing scope ID starts a new action scope with a new scope ID, all previous attributes are no longer accessible, new attributes can be stored
-SPEC2_10;Context Options;actionScopedRequestAttributes9;TRUE;If the option is set to TRUE, receiving an event without an existing scope ID starts a new action scope with a new scope ID, all previous attributes are no longer accessible, new attributes can be stored
-SPEC2_10;Context Options;actionScopedRequestAttributes0;TRUE;If the option is set to TRUE, receiving an event with an existing scope ID after the first render for this scope had occurred starts a new action scope with a new scope ID, all previous attributes are no longer accessible, new attributes can be stored
-SPEC2_10;Context Options;actionScopedRequestAttributes11;TRUE;The render parameter PortletRequest.ACTION_SCOPE_ID ("javax.portlet.as") can be removed from a URL in a PortletURLGenerationListener
-SPEC2_10;Context Options;actionScopedRequestAttributes12;TRUE;The render parameter PortletRequest.ACTION_SCOPE_ID ("javax.portlet.as") can be removed from a ResourceURL in a PortletURLGenerationListener
-SPEC2_10;Context Options;actionScopedRequestAttributes13;TRUE;If the actionScopedRequestAttributes option is set to FALSE, request attributes that are set in an action are released at the end of the request
-SPEC2_10;Context Options;actionScopedRequestAttributes14;FALSE;The actionScopedRequestAttributes option can take two additional values - a string which must be "numberOfCachedScopes" followed by an integer <number of cached scopes>
-SPEC2_17;Preferences;values1;APITEST;The method getValue returns the String value of the specified portlet preference
-SPEC2_17;Preferences;values2;APITEST;If the preference specified in the getValue method has multiple values, the first value in the value array is returned
-SPEC2_17;Preferences;values3;APITEST;The method getValues returns the String[] value of the specified portlet preference
-SPEC2_17;Preferences;values4;APITEST;The method getNames returns an Enumeration<String> containing the names of the preferences
-SPEC2_17;Preferences;values5;APITEST;The method getMap returns a Map<String, String[]> of the preferences and their values
-SPEC2_17;Preferences;values6;TRUE;Changing the Map returned by getMap does not change the underlying preferences
-SPEC2_17;Preferences;values7;TRUE;When the lifecycle method render is invoked, the PortletPreferences object must reflect the current state of the persistent store
-SPEC2_17;Preferences;values8;TRUE;When the lifecycle method processAction is invoked, the PortletPreferences object must reflect the current state of the persistent store
-SPEC2_17;Preferences;values9;TRUE;When the lifecycle method processEvent is invoked, the PortletPreferences object must reflect the current state of the persistent store
-SPEC2_17;Preferences;values10;TRUE;When the lifecycle method serveResource is invoked, the PortletPreferences object must reflect the current state of the persistent store
-SPEC2_17;Preferences;setValue1;APITEST;The setValue method sets the value of the preference
-SPEC2_17;Preferences;setValue2;APITEST;The setValue method overwrites any existing single value or multiple value array
-SPEC2_17;Preferences;setValue3;APITEST;The setValue method allows the preference to be set to the value of null
-SPEC2_17;Preferences;setValue4;APITEST;If the setValue method is called for a read-only attribute, a ReadOnlyException must be thrown
-SPEC2_17;Preferences;setValues1;APITEST;The setValues method sets a multiple value array for the preference
-SPEC2_17;Preferences;setValues2;APITEST;The setValues method overwrites any existing single value or multiple value array
-SPEC2_17;Preferences;setValues3;APITEST;The setValues method allows any preference attribute in the value array to be set to null
-SPEC2_17;Preferences;setValues4;TRUE;The setValues method allows the value array to be set to null
-SPEC2_17;Preferences;setValues5;APITEST;If the setValues method is called for a read-only attribute, a ReadOnlyException must be thrown
-SPEC2_17;Preferences;reset1;TRUE;The reset method sets the value of the specified preference to its default value. The actual default value itself is implementation-specific and cannot be tested.
-SPEC2_17;Preferences;reset2;TRUE;The reset method deletes the preference if there is no default value
-SPEC2_17;Preferences;reset3;APITEST;If the reset method is called for a read-only attribute, a ReadOnlyException must be thrown
-SPEC2_17;Preferences;store1;TRUE;The store method persists preference changes previously made during the processAction method
-SPEC2_17;Preferences;store2;TRUE;The store method persists preference changes previously made during the processEvent method
-SPEC2_17;Preferences;store3;TRUE;The store method persists preference changes previously made during the serveResource method
-SPEC2_17;Preferences;store4;TRUE;If preference changes are made during the processAction method, but the method completes without store being called, the preference changes are discarded
-SPEC2_17;Preferences;store5;TRUE;If preference changes are made during the processEvent method, but the method completes without store being called, the preference changes are discarded
-SPEC2_17;Preferences;store6;TRUE;If preference changes are made during the serveResource method, but the method completes without store being called, the preference changes are discarded
-SPEC2_17;Preferences;store7;APITEST;If the store method is invoked within the scope of a render method invocation, it must throw an IllegalStateException
-SPEC2_17;Preferences;deployment1;TRUE;The portlet definition may define the preference attributes a portlet uses
-SPEC2_17;Preferences;deployment2;TRUE;A preference attribute definition may include initial default values
-SPEC2_17;Preferences;deployment3;TRUE;A preference attribute definition may indicate if the attribute is read only
-SPEC2_17;Preferences;deployment4;TRUE;If a preference attribute definition does not contain the read-only setting, it will be modifiable in the processAction method
-SPEC2_17;Preferences;deployment5;TRUE;If a preference attribute definition does not contain the read-only setting, it will be modifiable in the processEvent method
-SPEC2_17;Preferences;deployment6;TRUE;If a preference attribute definition does not contain the read-only setting, it will be modifiable in the serveResource method
-SPEC2_17;Preferences;deployment7;TRUE;If a preference attribute definition contains the read-only setting, it will not be modifiable in the processAction method
-SPEC2_17;Preferences;deployment8;TRUE;If a preference attribute definition contains the read-only setting, it will not be modifiable in the processEvent method
-SPEC2_17;Preferences;deployment9;TRUE;If a preference attribute definition contains the read-only setting, it will not be modifiable in the serveResource method
-SPEC2_17;Preferences;deployment10;TRUE;A preference attribute not defined in the deployment descriptor may be added programmatically in the processAction method
-SPEC2_17;Preferences;deployment11;TRUE;A preference attribute not defined in the deployment descriptor may be added programmatically in the processEvent method
-SPEC2_17;Preferences;deployment12;TRUE;A preference attribute not defined in the deployment descriptor may be added programmatically in the serveResource method
-SPEC2_17;Preferences;validator1;APITEST;A PreferencesValidator may be configured in the deployment descriptor
-SPEC2_17;Preferences;validator2;APITEST;The PreferencesValidator validate method is invoked during processing of the PortletPreferences.store method
-SPEC2_17;Preferences;validator3;APITEST;The validate method is provided with the PortletPreferences object to be validated
-SPEC2_17;Preferences;validator4;APITEST;If the validate method throws a ValidatorException, the preferences must not be written to persistent storage
-SPEC2_17;Preferences;validator5;APITEST;If the validate method throws a ValidatorException, the exception must be propagated to the portlet
-SPEC2_17;Preferences;validator6;APITEST;If the validate method does not throw a ValidatorException, the store operation must be completed
-SPEC2_18;Sessions;scope1;TRUE;PortletSession objects must be scoped at the portlet application context level
-SPEC2_18;Sessions;scope2;TRUE;The portlet container must not share the PortletSession object or the attributes stored in it among different portlet applications or among different user sessions
-SPEC2_18;Sessions;scope3;TRUE;Any object stored in the session using the APPLICATION_SCOPE is available to any portlet that belongs to the same portlet application and that handles a request in the same session
-SPEC2_18;Sessions;scope4;TRUE;Any Object stored in the session using the PORTLET_SCOPE must be available to the portlet during requests for the same portlet window that stored the object
-SPEC2_18;Sessions;scope5;TRUE;The PORTLET_SCOPE object must be stored in the APPLICATION_SCOPE with the attribute name 'javax.portlet.p.<ID>?<ATTRIBUTE_NAME>', where <ID> must be equal to the ID returned by the PortletRequest.getWindowID()
-SPEC2_18;Sessions;setAttribute1;TRUE;The setAttribute method can bind an object to the session in PORTLET_SCOPE
-SPEC2_18;Sessions;setAttribute2;TRUE;The setAttribute method that does not take a scope parameter binds an object to the session in PORTLET_SCOPE
-SPEC2_18;Sessions;setAttribute3;TRUE;The setAttribute method can bind an object to the session in APPLICATION_SCOPE
-SPEC2_18;Sessions;getAttribute1;TRUE;The getAttribute method is used to retrieve attributes stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;getAttribute2;TRUE;The getAttribute method that does not take a scope parameter retrieves attributes stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;getAttribute3;TRUE;The getAttribute method is used to retrieve attributes stored in the session in APPLICATION_SCOPE
-SPEC2_18;Sessions;removeAttribute1;TRUE;The removeAttribute method is used to remove attributes stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;removeAttribute2;TRUE;The removeAttribute method that does not take a scope parameter remove attributes stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;removeAttribute3;TRUE;The removeAttribute method is used to remove attributes stored in the session in APPLICATION_SCOPE
-SPEC2_18;Sessions;getAttributeNames1;TRUE;The getAttributeNames method can retrieve an Enumeration<String> of all attribute names stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;getAttributeNames2;TRUE;The getAttributeNames method that does not take a scope parameter retrieves an Enumeration<String> of all attribute names stored in the session in PORTLET_SCOPE
-SPEC2_18;Sessions;getAttributeNames3;TRUE;The getAttributeNames method can retrieve an Enumeration<String> of all attribute names stored in the session in APPLICATION_SCOPE
-SPEC2_18;Sessions;decodeAttributeName1;TRUE;The PortletSessionUtil.decodeAttributeName method returns the attribute name without the prefix for an attribute name retrieved from the HTTPSession
-SPEC2_18;Sessions;decodeAttributeName2;TRUE;The PortletSessionUtil.decodeAttributeName method returns the attribute name without the prefix for an attribute name retrieved from the PortletSession in APPLICATION_SCOPE
-SPEC2_18;Sessions;httpSession1;TRUE;Data stored in the HttpSession by a servlet in the same web application is accessible to portlets through the PortletSession in APPLICATION_SCOPE
-SPEC2_18;Sessions;httpSession2;TRUE;Data stored in the HttpSession by a JSP in the same web application is accessible to portlets through the PortletSession in APPLICATION_SCOPE
-SPEC2_18;Sessions;httpSession3;TRUE;Data stored by portlets in the PortletSession is accessible to servlets and JSPs through the HttpSession
-SPEC2_18;Sessions;httpSession4;TRUE;If the HttpSession object is invalidated, the PortletSession object must also be invalidated by the portlet container
-SPEC2_18;Sessions;httpSession5;TRUE;If the PortletSession object is invalidated by a portlet, the portlet container must invalidate the associated HttpSession object
-SPEC2_18;Sessions;httpSession6;TRUE;The attribute names retrieved from the HTTPSession must be the same as those retrieve from the PortletSession if APPLICATION_SCOPE scope is used
-SPEC2_18;Sessions;httpSession7;TRUE;The attribute names retrieved from the HTTPSession must have the speficied prefixing if PORTLET_SCOPE scope is used
-SPEC2_18;Sessions;httpSession8;TRUE;The portlet session follows the timeout behavior of the servlet session
-SPEC2_18;Sessions;httpSession9;TRUE;The portlet session follows the last accessed times behavior of the servlet session
-SPEC2_18;Sessions;httpSession11;TRUE;The portlet session follows the same semantic considerations as the servlet session
-SPEC2_18;Sessions;httpSession12;TRUE;The PortletSession getCreationTime method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession13;TRUE;The PortletSession getId method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession14;TRUE;The PortletSession getLastAccessTime method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession15;TRUE;The PortletSession getMaxInctiveInterval method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession16;TRUE;The PortletSession invalidate method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession17;TRUE;The PortletSession isNew method provides the same functionality as the corresponding HTTPSession method
-SPEC2_18;Sessions;httpSession18;TRUE;The PortletSession setMaxInactiveInterval method provides the same functionality as the corresponding HTTPSession method
-SPEC2_21;User Attributes;userAttributes1;OPTION;User attributes can be defined in the deployment descriptor
-SPEC2_21;User Attributes;userAttributes2;OPTION;The request attribute with the name PortletRequest.USER_INFO "javax.portlet.userinfo" provides a Map<String, String> containing user attributes that were successfully mapped to user attributes supported by the portal
-SPEC2_21;User Attributes;userAttributes3;OPTION;If there are no user attributes available, the getAttribute(PortletRequest.USER_INFO) call must return an empty Map object
-SPEC2_24;Security;security1;OPTION;The <security-role-ref> element in the portlet deployment descriptor maps a role name to an application security role that the user may be mapped into
-SPEC2_24;Security;security2;OPTION;The PortletRequest.isUserInRole method uses the role name from this mapping to determine the return value
-SPEC2_24;Security;security3;OPTION;If the security-role-ref element does not define a role-link element, the container must default to checking the role-name element argument against the list of security-role elements defined in the web.xml deployment descriptor of the portlet application
-SPEC2_24;Security;security4;OPTION;Security constraints can be defined through the portlet application deployment descriptor <security-constraint> element
-SPEC2_24;Security;security5;OPTION;The <portlet-collection> element within the security constraint declaration defines a list of portlets covered by the constraint
-SPEC2_24;Security;security6;OPTION;The <user-data-constraint> element within the security constraint declaration defines requirements for the transport layer for the portlets collection
-SPEC2_24;Security;security7;OPTION;The container must at least use SSL to respond to requests to portlets whose <transport-guarantee> element specifies CONFIDENTIAL
-SPEC2_24;Security;security8;OPTION;The container must at least use SSL to respond to requests to portlets whose <transport-guarantee> element specifies INTEGRAL
-SPEC2_24;Security;security9;OPTION;When a run-as element is specified in the web.xml file, the portlet container must propagate the security identity of the caller to the EJB layer in terms of the security role name defined in the run-as element
-SPEC2_24;Security;security10;OPTION;The security role name must be one of the security role names defined for the web.xml deployment descriptor
-Addl Request Tests;;;;
-SPEC2_11;Request Params Props;properties1;APITEST;The portlet can use the getProperty method to access single portal property and optionally-available HTTP header values
-SPEC2_11;Request Params Props;properties2;APITEST;The portlet can use the getProperties method to access multiple portal property and optionally-available HTTP header values by the same property name
-SPEC2_11;Request Params Props;properties3;APITEST;The portlet can use the getPropertyNames method to obtain an Enumeration of all available property names
-SPEC2_11;Request Params Props;properties4;APITEST;The portlet can access cookies provided by the current request using the getCookies method
-SPEC2_11;Request Params Props;parameters1;TRUE;If a portlet receives a request from a client request targeted to the portlet itself, the parameters must be the string parameters encoded in the URL (added when creating the PortletURL) and the string parameters sent by the client to the portlet as part of the client request
-SPEC2_11;Request Params Props;parameters2;TRUE;The parameters the request object returns must be "x-www-form-urlencoded" decoded
-SPEC2_11;Request Params Props;parameters3;APITEST;The getParameterValues method returns an array of String objects containing all the parameter values associated with a parameter name
-SPEC2_11;Request Params Props;parameters4;APITEST;The value returned from the getParameter method must be the first value in the array of String objects returned by getParameterValues
-SPEC2_11;Request Params Props;parameters6;TRUE;The getParameterMap method must return an unmodifiable Map object
-SPEC2_11;Request Params Props;parameters7;APITEST;If the request does not have any parameters, the getParameterMap must return an empty Map object
-SPEC2_11;Request Params Props;parameters8;TRUE;If the portlet is performing an HTML Form submission via HTTP method POST the post form data will be populated to the portlet request parameter set if the content type is application/x-www-form-urlencoded
-SPEC2_11;Request Params Props;parameters9;TRUE;If the portlet is performing an HTML Form submission via the HTTP method GET the form data set is appended to the portlet URL used for the form submission and are therefore accessible as request parameters for the portlet
-SPEC2_11;Request Params Props;parameters10;TRUE;The portlet-container must not propagate parameters received in an action or event request to subsequent render requests of the portlet
-SPEC2_11;Request Params Props;parameters11;TRUE;If a portlet receives a render request that is the result of a client request targeted to another portlet in the portal page, the parameters should be the same parameters as of the previous render request from this client
-SPEC2_11;Request Params Props;parameters12;TRUE;If a portlet receives an event that is the result of a client request targeted to another portlet in the portal page, the parameters should be the same parameters as of the previous render request from this client
-SPEC2_11;Request Params Props;parameters13;TRUE;If a portlet receives a render request that is the result of invoking a render URL targeting this portlet the render parameters received with the render request must be the parameters set on the render URL
-SPEC2_11;Request Params Props;parameters14;FALSE;Client requests triggered by portal-generated URLs for changing portlet mode or window state must be treated as render URLs and the existing render parameters must be preserved
-SPEC2_11;Request Params Props;parameters15;TRUE;Render parameters get automatically cleared if the portlet receives a processAction or processEvent call
-SPEC2_11;Request Params Props;parameters16;APITEST;For serveResource requests the portlet must receive any resource parameters that were explicitly set on the ResourceURL that triggered the request
-SPEC2_11;Request Params Props;parameters17;TRUE;If the cacheability level of the resource URL is PORTLET or PAGE, the portlet must also receive the render parameters present in the request in which the URL was created
-SPEC2_11;Request PRP;publicRenderParameters1;TRUE;Public render parameters can be declared in the deployment descriptor using the public-render-parameter element
-SPEC2_11;Request PRP;publicRenderParameters2;TRUE;The portlet can specify the public render parameters it would like to share via the supported-public-render-parameter element in the deployment descriptor
-SPEC2_11;Request PRP;publicRenderParameters3;FALSE;The supported-public-render-parameter element must reference the identifier of a public render parameter defined in the portlet application section in a public-render-parameter element
-SPEC2_11;Request PRP;publicRenderParameters4;TRUE;Public render parameters are available in the processAction method
-SPEC2_11;Request PRP;publicRenderParameters5;TRUE;Public render parameters are available in the processEvent method
-SPEC2_11;Request PRP;publicRenderParameters6;TRUE;Public render parameters are available in the render method
-SPEC2_11;Request PRP;publicRenderParameters7;TRUE;Public render parameters are available in the serveResource method
-SPEC2_11;Request PRP;publicRenderParameters8;TRUE;The portlet container must only send those public render parameters to a portlet which the portlet has defined support for using supported-public-render-parameter element in the portlet.xml
-SPEC2_11;Request PRP;publicRenderParameters9;TRUE;The portlet container must only share those render parameters of a portlet which the portlet has declared as supported public render parameters using supported-public-render-parameter element in the portlet.xml
-SPEC2_11;Request PRP;publicRenderParameters10;TRUE;If the portlet was the target of a render URL on which a specific public render parameter is set, the portlet must receive at least this render parameter
-SPEC2_11;Request PRP;publicRenderParameters11;TRUE;If the portlet sets an action parameter with the same name as a public render parameter, this results in a multi-valued parameter. The public render parameter values must be the last entries in the parameter value array
-SPEC2_11;Request PRP;publicRenderParameters12;TRUE;If the portlet sets a resource parameter with the same name as a public render parameter, this results in a multi-valued parameter. The public render parameter values must be the last entries in the parameter value array
-SPEC2_11;Request PRP;publicRenderParameters13;TRUE;A public render parameter can be deleted using the removePublicRenderParameter method on the StateAwareResponse or the PortletURL
-SPEC2_11;Request PRP;publicRenderParameters14;APITEST;Portlets can access a merged set of public and private parameters via the getParameter methods
-SPEC2_11;Request PRP;publicRenderParameters15;TRUE;A map of private parameters can be obtained through the getPrivateParameterMap method
-SPEC2_11;Request PRP;publicRenderParameters16;TRUE;A map of public parameters can be obtained through the getPublicParameterMap method
-SPEC2_11;Request PRP;publicRenderParameters17;FALSE;Extra request parameters added to a portlet URL by the portal/portlet-container must be invisible to the portlets receiving the request
-SPEC2_11;Request;attributes1;TRUE;The portlet can access a map with user information attributes via the request attribute PortletRequest.USER_INFO
-SPEC2_11;Request;attributes2;TRUE;The PortletRequest.CCPP_PROFILE request attribute must return a javax.ccpp.Profile based on the current portlet request
-SPEC2_11;Request;attributes3;TRUE;If the portlet container runtime option javax.portlet.renderHeaders is set to TRUE, the RENDER_PART attribute will be set when the render method is called
-SPEC2_11;Request;attributes4;TRUE;If the portlet container runtime option javax.portlet.renderHeaders is set to TRUE, render method will be called first with the RENDER_PART attribute set to "RENDER_HEADERS"
-SPEC2_11;Request;attributes5;TRUE;If the portlet container runtime option javax.portlet.renderHeaders is set to TRUE, render method will be called a second time with the RENDER_PART attribute set to "RENDER_MARKUP"
-SPEC2_11;Request;attributes6;TRUE;During action processing, the LIFECYCLE_PHASE ("javax.portlet.lifecycle_phase") attribute will contain the string "ACTION_PHASE"
-SPEC2_11;Request;attributes7;TRUE;During event processing, the LIFECYCLE_PHASE ("javax.portlet.lifecycle_phase") attribute will contain the string "EVENT_PHASE"
-SPEC2_11;Request;attributes8;TRUE;During render processing, the LIFECYCLE_PHASE ("javax.portlet.lifecycle_phase") attribute will contain the string "RENDER_PHASE"
-SPEC2_11;Request;attributes9;TRUE;During resource processing, the LIFECYCLE_PHASE ("javax.portlet.lifecycle_phase") attribute will contain the string "RESOURCE_PHASE"
-SPEC2_11;Request;contextPath1;FALSE;If the portlet application is rooted at the default context, the context path must be an empty string
-SPEC2_11;Request;contextPath2;FALSE;If the portlet application is not rooted at the default context, the context path must be a string starting with "/"
-SPEC2_11;Request;contextPath3;FALSE;If the portlet application is not rooted at the default context, the context path string does not end with "/"
-SPEC2_11;Request;security1;APITEST;The getAuthType method returns a String if the user is authenticated
-SPEC2_11;Request;security2;APITEST;The getAuthType method returns null if the user is not authenticated
-SPEC2_11;Request;security3;APITEST;The getRemoteUser method returns a String if the user is authenticated
-SPEC2_11;Request;security4;APITEST;The getRemoteUser method returns null if the user is not authenticated
-SPEC2_11;Request;security5;APITEST;The getisUserInRole method returns true if the authenticated user is in the specified role
-SPEC2_11;Request;security6;APITEST;The getisUserInRole method returns false if the authenticated user is not in the specified role
-SPEC2_11;Request;security7;APITEST;The getisUserInRole method returns false if the user is not authenticated
-SPEC2_11;Request;security8;APITEST;The isSecure method returns true if the request was transmitted over a secure connection
-SPEC2_11;Request;security9;APITEST;The isSecure method returns false if the request was not transmitted over a secure connection
-SPEC2_11;Request;contentType1;TRUE;The getResponseContentType method returns a String representing the default content type the portlet container assumes for the output
-SPEC2_11;Request;contentType2;TRUE;The getResponseContentTypes method returns an Enumeration of String elements representing the acceptable content types for the output in order of preference
-SPEC2_11;Request;contentType3;TRUE;The first element of the Enumeration returned by the getResponseContentTypes method must equal the value returned by the getResponseContentType method
-SPEC2_11;Request;contentType4;TRUE;If a portlet defines support for all content types using a wildcard and the portlet container supports all content types, the getResponseContentType may return the wildcard
-SPEC2_11;Request;contentType5;TRUE;If a portlet defines support for all content types using a wildcard and the portlet container supports all content types, the getResponseContentType may return the preferred content type
-SPEC2_11;Request;contentType6;TRUE;Within the processAction method, the content type must include only the MIME type, not the character set
-SPEC2_11;Request;contentType7;TRUE;Within the processAction method, the getResponseContentTypes method must return only the content types supported by the current portlet mode
-SPEC2_11;Request;contentType8;TRUE;Within the processEvent method, the content type must include only the MIME type, not the character set
-SPEC2_11;Request;contentType9;TRUE;Within the processEvent method, the getResponseContentTypes method must return only the content types supported by the current portlet mode
-SPEC2_11;Request;contentType10;TRUE;Within the render method, the content type must include only the MIME type, not the character set
-SPEC2_11;Request;contentType11;TRUE;Within the render method, the getResponseContentTypes method must return only the content types supported by the current portlet mode
-SPEC2_11;Request;contentType12;TRUE;Within the serveResource method, the content type should be based on the HTTP Accept header provided by the client
-SPEC2_11;Request;contentType13;TRUE;The character set of the response can be retrieved via the RenderResponse.getCharacterEncoding method
-SPEC2_11;Request;windowId1;APITEST;The getWindowID method returns a String representing the current window ID
-SPEC2_11;Request;windowId2;FALSE;The string returned by getWindowID method is unique for this portlet window
-SPEC2_11;Request;windowId3;FALSE;The string returned by getWindowID method is constant over the lifetime of the portlet window
-SPEC2_11;Request;windowId4;TRUE;The string returned by getWindowID method must be the same ID used for scoping portlet-scope session attributes
-SPEC2_11;Request;retrievingData1;APITEST;If the getPortletInputStream method has been used and the getReader is called, the getReader method must throw an IllegalStateException
-SPEC2_11;Request;retrievingData2;APITEST;If the getReader method has been used and the getPortletInputStream is called, the getPortletInputStream method must throw an IllegalStateException
-SPEC2_11;Request;retrievingData3;APITEST;f the user request HTTP POST data is of type application/x-www-form-urlencoded, the getReader method must throw an IllegalStateException
-SPEC2_11;Request;retrievingData4;APITEST;f the user request HTTP POST data is of type application/x-www-form-urlencoded, the getPortletInputStream method must throw an IllegalStateException
-Addl Response Tests;;;;
-SPEC2_12;Response Properties;properties1;APITEST;The setProperty method sets a property with a given name and value
-SPEC2_12;Response Properties;properties2;APITEST;The setProperty method replaces an existing property of the same name
-SPEC2_12;Response Properties;properties3;FALSE;The setProperty method can set HTTP header values to be transported back to the client
-SPEC2_12;Response Properties;properties4;FALSE;If the setProperty method is called after the response has been committed, the property will not be transported back to the client
-SPEC2_12;Response Properties;properties5;APITEST;The addProperty method adds a property with a given name and value
-SPEC2_12;Response Properties;properties6;APITEST;The addProperty method adds a value to an existing property of the same name
-SPEC2_12;Response Properties;properties7;FALSE;The addProperty method can add HTTP header values to be transported back to the client
-SPEC2_12;Response Properties;properties8;FALSE;If the addProperty method is called after the response has been committed, the property will not be transported back to the client
-SPEC2_12;Response Properties;namespace1;APITEST;The getNamespace method must return a String
-SPEC2_12;Response Properties;namespace2;TRUE;The String returned by the getNamespace method must be unique on the portal page
-SPEC2_12;Response Properties;namespace3;APITEST;The String returned by the getNamespace method must be constant for the lifetime of the portlet window
-SPEC2_12;Response Properties;namespace4;TRUE;The String returned by the getNamespace method must be a valid Java identifier
-SPEC2_12;Response Properties;cookie1;TRUE;Cookies set during the Action phase should be available to the portlet during the Render phase
-SPEC2_12;Response Properties;cookie2;TRUE;Cookies set during the Action phase should be available to the portlet during the Resource phase
-SPEC2_12;Response Properties;cookie3;TRUE;Cookies set during the Action phase should be available to the portlet during the Event phase
-SPEC2_12;Response Properties;cookie4;TRUE;Cookies set during the Action phase should be available to the portlet during a subsequent request triggered by a URL
-SPEC2_12;Response Properties;cookie5;TRUE;Cookies set during the Event phase should be available to the portlet during the Render phase
-SPEC2_12;Response Properties;cookie6;TRUE;Cookies set during the Event phase should be available to the portlet during the Resource phase
-SPEC2_12;Response Properties;cookie7;TRUE;Cookies set during the Event phase should be available to the portlet during a subsequent request triggered by a URL
-SPEC2_12;Response Properties;cookie8;TRUE;Cookies set during the Render phase should be available to the portlet during the Resource phase
-SPEC2_12;Response Properties;cookie9;TRUE;Cookies set during the Render phase should be available to the portlet during a subsequent Action phase
-SPEC2_12;Response Properties;cookie10;TRUE;Cookies set during the Render phase should be available to the portlet during a subsequent Render phase
-SPEC2_12;Response Properties;cookie11;TRUE;Cookies set during the Render phase should be available to the portlet during a subsequent request triggered by a URL
-SPEC2_12;Response Properties;cookie12;TRUE;Cookies set during the Render phase after the response has been committed are ignored
-SPEC2_12;Response Properties;cookie13;TRUE;Cookies set during the Resource phase should be available to the portlet during a subsequent Action phase
-SPEC2_12;Response Properties;cookie14;TRUE;Cookies set during the Resource phase should be available to the portlet during a subsequent Resource phase
-SPEC2_12;Response Properties;cookie15;TRUE;Cookies set during the Resource phase should be available to the portlet during a subsequent Render phase
-SPEC2_12;Response Properties;cookie16;TRUE;Cookies set during the Resource phase should be available to the portlet during a subsequent request triggered by a URL
-SPEC2_12;Response Properties;cookie17;TRUE;Cookies set during the Resource phase after the response has been committed are ignored
-SPEC2_12;Response Properties;renderParameters1;APITEST;A call to any of the setRenderParameter methods must replace any parameter with the same name previously set
-SPEC2_12;Response Properties;portletMode1;FALSE;A portlet mode set with the setPortletMode method will be effective in the following processEvent and render requests as allowed by the portal
-SPEC2_12;Response Properties;portletMode2;APITEST;If a disallowed portlet mode set with the setPortletMode method, a PortletModeException must be thrown
-SPEC2_12;Response Properties;portletMode3;APITEST;If the portlet does not set a new portlet mode, the current portlet mode is preserved
-SPEC2_12;Response Properties;portletMode4;APITEST;The portlet can specify the next possible portlet modes that make sense from the portlet point of view via the setNextPossiblePortletModes method
-SPEC2_12;Response Properties;windowState1;APITEST;A window state set with the setWindowState method will be effective in the following processEvent and render requests as allowed by the portal
-SPEC2_12;Response Properties;windowState2;APITEST;If a disallowed window state set with the setWindowState method, a WindowStateException must be thrown
-SPEC2_12;Response Properties;windowState3;APITEST;If the portlet does not set a new window state, the current window state is preserved
-SPEC2_12;Response Redirect;redirect1;TRUE;If a relative path is supplied to the sendRedirect method, an IllegalArgumentException must be thrown
-SPEC2_12;Response Redirect;redirect2;APITEST;If the sendRedirect method is called after the setPortletMode has been called, an IllegalStateException must be thrown and the redirection must not be executed
-SPEC2_12;Response Redirect;redirect3;APITEST;If the sendRedirect method is called after the setWindowState has been called, an IllegalStateException must be thrown and the redirection must not be executed
-SPEC2_12;Response Redirect;redirect4;APITEST;If the sendRedirect method is called after the setRenderParameter has been called, an IllegalStateException must be thrown and the redirection must not be executed
-SPEC2_12;Response Redirect;redirect5;APITEST;If the sendRedirect method is called after the setRenderParameters has been called, an IllegalStateException must be thrown and the redirection must not be executed
-SPEC2_12;Response Redirect;redirect6;APITEST;If the sendRedirect method is called after the removePublicRenderParameter has been called, an IllegalStateException must be thrown and the redirection must not be executed
-SPEC2_12;Response Redirect;redirect7;APITEST;If the sendRedirect(String location, String renderUrlParamName) method is used, the portlet container must attach a render URL to the target location as a query parameter under the specified parameter name
-SPEC2_12;Response Redirect;redirect8;APITEST;If a new portlet mode value is set on the ActionResponse before the redirect, the new portlet mode value must be set on the attached render URL
-SPEC2_12;Response Redirect;redirect10;APITEST;If a new window state value is set on the ActionResponse before the redirect, the new window state value must be set on the attached render URL
-SPEC2_12;Response Redirect;redirect12;TRUE;If a new private render parameter value is set on the ActionResponse before the redirect, the new private render parameter value must be set on the attached render URL
-SPEC2_12;Response Redirect;redirect14;TRUE;If a new public render parameter value is set on the Action
<TRUNCATED>
[32/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render.java
deleted file mode 100644
index c656b57..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_PortletConfig_Render_event
- *
- */
-public class PortletTests_PortletConfig_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_PortletConfig_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getPortletName */
- /* Details: "Method getPortletName(): Returns a String containing the */
- /* portlet name" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETPORTLETNAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getPortletContext */
- /* Details: "Method getPortletContext(): Returns the PortletContext */
- /* object associated with the portlet" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETPORTLETCONTEXT);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getResourceBundle */
- /* Details: "Method getResourceBundle(Locale): Returns the */
- /* ResourceBundle for the specified locale" */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETRESOURCEBUNDLE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getInitParameter1 */
- /* Details: "Method getInitParameter(String): Returns a String */
- /* containing the initialization parameter value for the given name" */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETINITPARAMETER1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getInitParameter3 */
- /* Details: "Method getInitParameter(String): Throws */
- /* IllegalArgumentException if the name parameter is null" */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETINITPARAMETER3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getInitParameterNames1 */
- /* Details: "Method getInitParameterNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the names */
- /* of the initialization parameters" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETINITPARAMETERNAMES1);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getPublicRenderParameterNames1 */
- /* Details: "Method getPublicRenderParameterNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the names */
- /* of the public render parameters" */
- TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETPUBLICRENDERPARAMETERNAMES1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getDefaultNamespace1 */
- /* Details: "Method getDefaultNamespace(): Returns a String */
- /* containing the default namespace for events and public render */
- /* parameters as defined in the deployment descriptor" */
- TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETDEFAULTNAMESPACE1);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getPublishingEventQNames1 */
- /* Details: "Method getPublishingEventQNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* publishing event qnames as defined in the deployment descriptor" */
- TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETPUBLISHINGEVENTQNAMES1);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getProcessingEventQNames1 */
- /* Details: "Method getProcessingEventQNames(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the */
- /* processing event qnames as defined in the deployment descriptor" */
- TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETPROCESSINGEVENTQNAMES1);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getSupportedLocales1 */
- /* Details: "Method getSupportedLocales(): Returns an */
- /* java.util.Enumeration<java.lang.String> containing the names */
- /* of the supported locales as defined in the deployment descriptor" */
- TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETSUPPORTEDLOCALES1);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions1 */
- /* Details: "Method getContainerRuntimeOptions(): Returns an */
- /* java.util.Map<java.lang.String,java.lang.String[]> object */
- /* containing the container runtime options as defined in the */
- /* deployment descriptor" */
- TestResult tr11 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETCONTAINERRUNTIMEOPTIONS1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions2 */
- /* Details: "Method getContainerRuntimeOptions(): If the same option */
- /* is defined at the portlet application and at the portlet level, */
- /* the definition at the portlet level takes precedence" */
- TestResult tr12 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETCONTAINERRUNTIMEOPTIONS2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions3 */
- /* Details: "Method getContainerRuntimeOptions(): If the portlet */
- /* container does not support a runtime option defined in the portlet */
- /* descriptor, that option will not be returned in this map" */
- TestResult tr13 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETCONTAINERRUNTIMEOPTIONS3);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions4 */
- /* Details: "Method getContainerRuntimeOptions(): Returns an empty */
- /* map if no container runtime options have been defined " */
- TestResult tr14 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER_GETCONTAINERRUNTIMEOPTIONS4);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render2.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render2.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render2.java
deleted file mode 100644
index 298d0e7..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletConfig_Render2.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_PortletConfig_Render2_event
- *
- */
-public class PortletTests_PortletConfig_Render2 implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_PortletConfig_Render2.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getInitParameter2 */
- /* Details: "Method getInitParameter(String): Returns null if the */
- /* specified initialization parameter does not exist" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETINITPARAMETER2);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getInitParameterNames2 */
- /* Details: "Method getInitParameterNames(): Returns an empty */
- /* Enumeration if there are no initialization parameters available " */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETINITPARAMETERNAMES2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getPublicRenderParameterNames2 */
- /* Details: "Method getPublicRenderParameterNames(): Returns an empty */
- /* Enumeration if there are no public render parameters are defined " */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETPUBLICRENDERPARAMETERNAMES2);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getDefaultNamespace2 */
- /* Details: "Method getDefaultNamespace(): Returns */
- /* XMLConstants.NULL_NS_URI if no default namespace is defined in the */
- /* deployment descriptor " */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETDEFAULTNAMESPACE2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getPublishingEventQNames2 */
- /* Details: "Method getPublishingEventQNames(): Returns an empty */
- /* Enumeration if there are no processing events are defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETPUBLISHINGEVENTQNAMES2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getProcessingEventQNames2 */
- /* Details: "Method getProcessingEventQNames(): Returns an empty */
- /* Enumeration if there are no processing events are defined" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETPROCESSINGEVENTQNAMES2);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletConfig_Render2_getSupportedLocales2 */
- /* Details: "Method getSupportedLocales(): Returns an empty */
- /* Enumeration if there are no supported locales are defined" */
- TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETCONFIG_RENDER2_GETSUPPORTEDLOCALES2);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
new file mode 100644
index 0000000..caa5502
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_ApiRender.java
@@ -0,0 +1,169 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_PortletMode_ApiRender_event
+ *
+ */
+public class PortletTests_PortletMode_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_PortletMode_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_constructor1 */
+ /* Details: "The constructor PortletMode(java.lang.String): allows a */
+ /* PortletMode object of the specified name to be constructed" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_CONSTRUCTOR1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_constructor2 */
+ /* Details: "The constructor PortletMode(java.lang.String): converts */
+ /* any upper case letters in the name parameter to lower case" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_CONSTRUCTOR2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_fieldEDIT */
+ /* Details: "Has PortletMode field EDIT with value of */
+ /* PortletMode.EDIT " */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDEDIT);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_fieldHELP */
+ /* Details: "Has PortletMode field HELP with value of */
+ /* PortletMode.HELP " */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDHELP);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_fieldVIEW */
+ /* Details: "Has PortletMode field VIEW with value of */
+ /* PortletMode.VIEW " */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_FIELDVIEW);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_toString */
+ /* Details: "Method toString(): Returns a String representation of */
+ /* the portlet mode" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_TOSTRING);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_hashCode */
+ /* Details: "Method hashCode(): Returns an int containing the has */
+ /* code for the portlet mode" */
+ TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_HASHCODE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2PortletTests_PortletMode_ApiRender_equals */
+ /* Details: "Method equals(): Returns true if the PortletMode equals */
+ /* the specified PortletMode" */
+ TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_APIRENDER_EQUALS);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_Render.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_Render.java
deleted file mode 100644
index c0853af..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_PortletMode_Render.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_PortletMode_Render_event
- *
- */
-public class PortletTests_PortletMode_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_PortletMode_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_PortletMode_Render_constructor1 */
- /* Details: "The constructor PortletMode(java.lang.String): allows a */
- /* PortletMode object of the specified name to be constructed" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_CONSTRUCTOR1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_constructor2 */
- /* Details: "The constructor PortletMode(java.lang.String): converts */
- /* any upper case letters in the name parameter to lower case" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_CONSTRUCTOR2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_fieldEDIT */
- /* Details: "Has PortletMode field EDIT with value of */
- /* PortletMode.EDIT " */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_FIELDEDIT);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_fieldHELP */
- /* Details: "Has PortletMode field HELP with value of */
- /* PortletMode.HELP " */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_FIELDHELP);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_fieldVIEW */
- /* Details: "Has PortletMode field VIEW with value of */
- /* PortletMode.VIEW " */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_FIELDVIEW);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_toString */
- /* Details: "Method toString(): Returns a String representation of */
- /* the portlet mode" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_TOSTRING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_hashCode */
- /* Details: "Method hashCode(): Returns an int containing the has */
- /* code for the portlet mode" */
- TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_HASHCODE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2PortletTests_PortletMode_Render_equals */
- /* Details: "Method equals(): Returns true if the PortletMode equals */
- /* the specified PortletMode" */
- TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLETMODE_RENDER_EQUALS);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Action.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Action.java
deleted file mode 100644
index 407f2d7..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Action.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_Portlet_Action_event
- *
- */
-public class PortletTests_Portlet_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_Portlet_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_Portlet_Action_processAction */
- /* Details: "Method processAction(ActionRequest, ActionResponse): is */
- /* called when an action URL for the portlet is triggered" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_ACTION_PROCESSACTION);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "PortletTests_Portlet_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "PortletTests_Portlet_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "PortletTests_Portlet_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2PortletTests_Portlet_Action_processAction */
- /* Details: "Method processAction(ActionRequest, ActionResponse): is */
- /* called when an action URL for the portlet is triggered" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2PortletTests_Portlet_Action_processAction", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
new file mode 100644
index 0000000..1845651
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiAction.java
@@ -0,0 +1,133 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_Portlet_ApiAction_event
+ *
+ */
+public class PortletTests_Portlet_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_Portlet_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_Portlet_ApiAction_processAction */
+ /* Details: "Method processAction(ActionRequest, ActionResponse): is */
+ /* called when an action URL for the portlet is triggered" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIACTION_PROCESSACTION);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "PortletTests_Portlet_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "PortletTests_Portlet_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "PortletTests_Portlet_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2PortletTests_Portlet_ApiAction_processAction */
+ /* Details: "Method processAction(ActionRequest, ActionResponse): is */
+ /* called when an action URL for the portlet is triggered" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2PortletTests_Portlet_ApiAction_processAction", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
new file mode 100644
index 0000000..073fb65
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
@@ -0,0 +1,137 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_Portlet_ApiRender_event
+ *
+ */
+public class PortletTests_Portlet_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_Portlet_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_Portlet_ApiRender_init1 */
+ /* Details: "Method init(PortletConfig): is called for the portlet */
+ /* defined in the deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_INIT1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Portlet_ApiRender_init2 */
+ /* Details: "Method init(PortletConfig): If the init method throws a */
+ /* PortletException, the portlet will not be placed in service" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_INIT2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Portlet_ApiRender_render1 */
+ /* Details: "Method render(RenderRequest, RenderResponse): is called */
+ /* when the portlet is to be rendered" */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_Portlet_ApiRender_render2 */
+ /* Details: "Method render(RenderRequest, RenderResponse): is called */
+ /* when a Render URL for the portlet is triggered" */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Render.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Render.java
deleted file mode 100644
index a8d8213..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_Render.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_Portlet_Render_event
- *
- */
-public class PortletTests_Portlet_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_Portlet_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_Portlet_Render_init1 */
- /* Details: "Method init(PortletConfig): is called for the portlet */
- /* defined in the deployment descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_RENDER_INIT1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_Portlet_Render_init2 */
- /* Details: "Method init(PortletConfig): If the init method throws a */
- /* PortletException, the portlet will not be placed in service" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_RENDER_INIT2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_Portlet_Render_render1 */
- /* Details: "Method render(RenderRequest, RenderResponse): is called */
- /* when the portlet is to be rendered" */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_RENDER_RENDER1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_Portlet_Render_render2 */
- /* Details: "Method render(RenderRequest, RenderResponse): is called */
- /* when a Render URL for the portlet is triggered" */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_RENDER_RENDER2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
new file mode 100644
index 0000000..7a134d8
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_ApiResource.java
@@ -0,0 +1,128 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_ResourceServingPortlet_ApiResource_event
+ *
+ */
+public class PortletTests_ResourceServingPortlet_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_ResourceServingPortlet_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_ResourceServingPortlet_ApiResource_serveResource */
+ /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
+ /* is called to allow the portlet to generate resource content " */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_RESOURCESERVINGPORTLET_APIRESOURCE_SERVERESOURCE);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"PortletTests_ResourceServingPortlet_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"PortletTests_ResourceServingPortlet_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_Resource.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_Resource.java
deleted file mode 100644
index aeb7bc9..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_ResourceServingPortlet_Resource.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_ResourceServingPortlet_Resource_event
- *
- */
-public class PortletTests_ResourceServingPortlet_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_ResourceServingPortlet_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_ResourceServingPortlet_Resource_serveResource */
- /* Details: "Method serveResource(ResourceRequest, ResourceResponse): */
- /* is called to allow the portlet to generate resource content " */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_RESOURCESERVINGPORTLET_RESOURCE_SERVERESOURCE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"PortletTests_ResourceServingPortlet_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"PortletTests_ResourceServingPortlet_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
new file mode 100644
index 0000000..d1f7d38
--- /dev/null
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_ApiRender.java
@@ -0,0 +1,169 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet PortletTests_WindowState_ApiRender_event
+ *
+ */
+public class PortletTests_WindowState_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ PortletTests_WindowState_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_constructor1 */
+ /* Details: "The constructor WindowState(java.lang.String): allows a */
+ /* WindowState object of the specified name to be constructed" */
+ TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_CONSTRUCTOR1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_constructor2 */
+ /* Details: "The constructor WindowState(java.lang.String): converts */
+ /* any upper case letters in the name parameter to lower case" */
+ TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_CONSTRUCTOR2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_fieldMAXIMIZED */
+ /* Details: "Has WindowState field MAXIMIZED with value of */
+ /* WindowState.MAXIMIZED " */
+ TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDMAXIMIZED);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_fieldMINIMIZED */
+ /* Details: "Has WindowState field MINIMIZED with value of */
+ /* WindowState.MINIMIZED " */
+ TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDMINIMIZED);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_fieldNORMAL */
+ /* Details: "Has WindowState field NORMAL with value of */
+ /* WindowState.NORMAL " */
+ TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_FIELDNORMAL);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_toString */
+ /* Details: "Method toString(): Returns a String representation of */
+ /* the portlet mode" */
+ TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_TOSTRING);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_hashCode */
+ /* Details: "Method hashCode(): Returns an int containing the has */
+ /* code for the portlet mode" */
+ TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_HASHCODE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2PortletTests_WindowState_ApiRender_equals */
+ /* Details: "Method equals(): Returns true if the WindowState equals */
+ /* the specified WindowState" */
+ TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_APIRENDER_EQUALS);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_Render.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_Render.java
deleted file mode 100644
index adb293b..0000000
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_WindowState_Render.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet PortletTests_WindowState_Render_event
- *
- */
-public class PortletTests_WindowState_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- PortletTests_WindowState_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2PortletTests_WindowState_Render_constructor1 */
- /* Details: "The constructor WindowState(java.lang.String): allows a */
- /* WindowState object of the specified name to be constructed" */
- TestResult tr0 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_CONSTRUCTOR1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_constructor2 */
- /* Details: "The constructor WindowState(java.lang.String): converts */
- /* any upper case letters in the name parameter to lower case" */
- TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_CONSTRUCTOR2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_fieldMAXIMIZED */
- /* Details: "Has WindowState field MAXIMIZED with value of */
- /* WindowState.MAXIMIZED " */
- TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_FIELDMAXIMIZED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_fieldMINIMIZED */
- /* Details: "Has WindowState field MINIMIZED with value of */
- /* WindowState.MINIMIZED " */
- TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_FIELDMINIMIZED);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_fieldNORMAL */
- /* Details: "Has WindowState field NORMAL with value of */
- /* WindowState.NORMAL " */
- TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_FIELDNORMAL);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_toString */
- /* Details: "Method toString(): Returns a String representation of */
- /* the portlet mode" */
- TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_TOSTRING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_hashCode */
- /* Details: "Method hashCode(): Returns an int containing the has */
- /* code for the portlet mode" */
- TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_HASHCODE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2PortletTests_WindowState_Render_equals */
- /* Details: "Method equals(): Returns true if the WindowState equals */
- /* the specified WindowState" */
- TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_WINDOWSTATE_RENDER_EQUALS);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- }
-
-}
[02/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
index 33a2ec9..7fc0fb7 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,155 +20,155 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API WrapperTests test case names and page mappings -->
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getPortletInputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getReader">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionRequestWrapper_Render_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_sendRedirectA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_sendRedirectB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setEventA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setEventB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setRenderParameterB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setRenderParameters">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_getPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_getRenderParameterMap2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_getWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ActionResponseWrapper_Render_removePublicRenderParameter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_Render_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_Render_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_Render_getEvent1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_Render_getEvent2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventRequestWrapper_Render_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setEventA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setEventB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setRenderParameterA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setRenderParameterB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setRenderParametersA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setRenderParametersB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_getPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap1">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap2">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_getWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_EventResponseWrapper_Render_removePublicRenderParameter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getAttribute">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getAttributeNames">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getAuthType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getContextPath">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getCookies">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getLocales">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getParameter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getParameterMap">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getParameterNames">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getParameterValues">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPortalContext">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPortletMode">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPreferences">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getProperties">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getProperty">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPropertyNames">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getRemoteUser">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getRequestedSessionId">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getResponseContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getResponseContentTypes">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getScheme">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getServerName">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getServerPort">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getUserPrincipal">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getWindowID">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getWindowState">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_isPortletModeAllowed">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_isRequestedSessionIdValid">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_isSecure">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_isUserInRole">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_isWindowStateAllowed">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_removeAttribute">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_setAttribute">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPrivateParameterMap">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletRequestWrapper_Render_getPublicParameterMap">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_addPropertyA">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_addPropertyB">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_addPropertyC">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_encodeURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_getNamespace">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_setProperty">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_PortletResponseWrapper_Render_createElement">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderRequestWrapper_Render_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderRequestWrapper_Render_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderRequestWrapper_Render_getETag">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_flushBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getPortletOutputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getWriter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_isCommitted">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_reset">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_resetBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_setBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_setContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_setTitle">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getCacheControl">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_setNextPossiblePortletModes">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_createActionURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_createRenderURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_RenderResponseWrapper_Render_createResourceURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getPortletInputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getReader">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_setRequest">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getETag">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getMethod">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getResourceID">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getPrivateRenderParameterMap">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceRequestWrapper_Render_getCacheability">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_flushBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getPortletOutputStream">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getWriter">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_isCommitted">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_reset">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_resetBuffer">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setBufferSize">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setContentType">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getCacheControl">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setCharacterEncoding">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setLocale">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setContentLength">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_getResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_setResponse">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_createActionURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_createRenderURL">V2WrapperTests</entry>
-<entry key="V2WrapperTests_ResourceResponseWrapper_Render_createResourceURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getPortletInputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getReader">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setEventA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setEventB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameters">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap2">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_getWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ActionResponseWrapper_ApiRender_removePublicRenderParameter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getEvent1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getEvent2">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setEventA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setEventB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap1">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap2">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_getWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_EventResponseWrapper_ApiRender_removePublicRenderParameter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAttribute">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAttributeNames">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getAuthType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getContextPath">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getCookies">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getLocales">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getParameter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterMap">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterNames">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterValues">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPortalContext">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletMode">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPreferences">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getProperties">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getProperty">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPropertyNames">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getRemoteUser">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getRequestedSessionId">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentTypes">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getScheme">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getServerName">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getServerPort">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getUserPrincipal">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowID">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowState">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_isPortletModeAllowed">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_isRequestedSessionIdValid">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_isSecure">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_isUserInRole">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_isWindowStateAllowed">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_removeAttribute">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_setAttribute">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPrivateParameterMap">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletRequestWrapper_ApiRender_getPublicParameterMap">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyA">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyB">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyC">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_encodeURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_getNamespace">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_setProperty">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_PortletResponseWrapper_ApiRender_createElement">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderRequestWrapper_ApiRender_getETag">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_flushBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getPortletOutputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getWriter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_isCommitted">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_reset">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_resetBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_setBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_setContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_setTitle">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getCacheControl">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_setNextPossiblePortletModes">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createActionURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createRenderURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_RenderResponseWrapper_ApiRender_createResourceURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getPortletInputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getReader">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_setRequest">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getETag">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getMethod">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getResourceID">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getPrivateRenderParameterMap">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceRequestWrapper_ApiRender_getCacheability">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_flushBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getPortletOutputStream">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getWriter">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_isCommitted">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_reset">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_resetBuffer">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setBufferSize">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentType">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getCacheControl">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setCharacterEncoding">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setLocale">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentLength">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_getResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_setResponse">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createActionURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createRenderURL">V2WrapperTests</entry>
+<entry key="V2WrapperTests_ResourceResponseWrapper_ApiRender_createResourceURL">V2WrapperTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
index 4be5d9e..3e826e5 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,147 +23,149 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2WrapperTests">
<portlet>
- <portlet-name>WrapperTests_ActionRequestWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionRequestWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_ActionRequestWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionRequestWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ActionRequestWrapper_Render</title>
+ <title>WrapperTests_ActionRequestWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_ActionResponseWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionResponseWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_ActionResponseWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ActionResponseWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ActionResponseWrapper_Render</title>
+ <title>WrapperTests_ActionResponseWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_EventRequestWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventRequestWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_EventRequestWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventRequestWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_EventRequestWrapper_Render</title>
+ <title>WrapperTests_EventRequestWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_EventResponseWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventResponseWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_EventResponseWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_EventResponseWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_EventResponseWrapper_Render</title>
+ <title>WrapperTests_EventResponseWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_PortletRequestWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_PortletRequestWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_PortletRequestWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_PortletRequestWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_PortletRequestWrapper_Render</title>
+ <title>WrapperTests_PortletRequestWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_PortletResponseWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_PortletResponseWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_PortletResponseWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_PortletResponseWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_PortletResponseWrapper_Render</title>
+ <title>WrapperTests_PortletResponseWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_RenderRequestWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_RenderRequestWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_RenderRequestWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_RenderRequestWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_RenderRequestWrapper_Render</title>
+ <title>WrapperTests_RenderRequestWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_RenderResponseWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_RenderResponseWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_RenderResponseWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_RenderResponseWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_RenderResponseWrapper_Render</title>
+ <title>WrapperTests_RenderResponseWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_ResourceRequestWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceRequestWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_ResourceRequestWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceRequestWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ResourceRequestWrapper_Render</title>
+ <title>WrapperTests_ResourceRequestWrapper_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>WrapperTests_ResourceResponseWrapper_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceResponseWrapper_Render</portlet-class>
+ <portlet-name>WrapperTests_ResourceResponseWrapper_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.WrapperTests_ResourceResponseWrapper_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>WrapperTests_ResourceResponseWrapper_Render</title>
+ <title>WrapperTests_ResourceResponseWrapper_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
[48/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderRequestWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderRequestWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderRequestWrapperChecker.java
new file mode 100644
index 0000000..759a4f5
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderRequestWrapperChecker.java
@@ -0,0 +1,462 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.RenderRequest;
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+
+public class RenderRequestWrapperChecker extends WrapperChecker implements RenderRequest {
+
+ private PortletRequest req;
+ private PortletSession sess;
+ private PortletPreferences prefs;
+ private PortalContext pcntxt;
+ private Principal ppal;
+
+ public RenderRequestWrapperChecker(PortletRequest portletReq) {
+ req = portletReq;
+ sess = req.getPortletSession();
+ prefs = req.getPreferences();
+ pcntxt = req.getPortalContext();
+ ppal = req.getUserPrincipal();
+ }
+
+ @Override
+ public boolean isWindowStateAllowed(WindowState state) {
+ String meth = "isWindowStateAllowed";
+ Object[] args = {state};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isPortletModeAllowed(PortletMode mode) {
+ String meth = "isPortletModeAllowed";
+ Object[] args = {mode};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletPreferences getPreferences() {
+ String meth = "getPreferences";
+ Object[] args = {};
+ PortletPreferences ret = prefs;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession() {
+ String meth = "getPortletSession";
+ Object[] args = {};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession(boolean create) {
+ String meth = "getPortletSession";
+ Object[] args = {create};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getProperty(String name) {
+ String meth = "getProperty";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getProperties(String name) {
+ String meth = "getProperties";
+ Object[] args = {name};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getPropertyNames() {
+ String meth = "getPropertyNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortalContext getPortalContext() {
+ String meth = "getPortalContext";
+ Object[] args = {};
+ PortalContext ret = pcntxt;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getAuthType() {
+ String meth = "getAuthType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContextPath() {
+ String meth = "getContextPath";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getRemoteUser() {
+ String meth = "getRemoteUser";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Principal getUserPrincipal() {
+ String meth = "getUserPrincipal";
+ Object[] args = {};
+ Principal ret = ppal;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isUserInRole(String role) {
+ String meth = "isUserInRole";
+ Object[] args = {role};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Object getAttribute(String name) {
+ String meth = "getAttribute";
+ Object[] args = {name};
+ Object ret = "object";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getAttributeNames() {
+ String meth = "getAttributeNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getParameter(String name) {
+ String meth = "getParameter";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getParameterNames() {
+ String meth = "getParameterNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String[] getParameterValues(String name) {
+ String meth = "getParameterValues";
+ Object[] args = {name};
+ String[] ret = {"val1", "val2"};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getParameterMap() {
+ String meth = "getParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isSecure() {
+ String meth = "isSecure";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setAttribute(String name, Object o) {
+ String meth = "setAttribute";
+ Object[] args = {name, o};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void removeAttribute(String name) {
+ String meth = "removeAttribute";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getRequestedSessionId() {
+ String meth = "getRequestedSessionId";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isRequestedSessionIdValid() {
+ String meth = "isRequestedSessionIdValid";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResponseContentType() {
+ String meth = "getResponseContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getResponseContentTypes() {
+ String meth = "getResponseContentTypes";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<Locale> getLocales() {
+ String meth = "getLocales";
+ Object[] args = {};
+ Locale[] la = {new Locale("en"), new Locale("de")};
+ Enumeration<Locale> ret = Collections.enumeration(Arrays.asList(la));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getScheme() {
+ String meth = "getScheme";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getServerName() {
+ String meth = "getServerName";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getServerPort() {
+ String meth = "getServerPort";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getWindowID() {
+ String meth = "getWindowID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Cookie[] getCookies() {
+ String meth = "getCookies";
+ Object[] args = {};
+ Cookie[] ret = {new Cookie("name", "Bob"), new Cookie("name", "Alice")};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateParameterMap() {
+ String meth = "getPrivateParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPublicParameterMap() {
+ String meth = "getPublicParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getETag() {
+ String meth = "getETag";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderResponseWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderResponseWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderResponseWrapperChecker.java
new file mode 100644
index 0000000..e3ef213
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/RenderResponseWrapperChecker.java
@@ -0,0 +1,293 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.*;
+import javax.servlet.http.Cookie;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Element;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class RenderResponseWrapperChecker extends WrapperChecker implements
+ RenderResponse {
+
+ PortletResponse resp;
+ Element element;
+
+ public RenderResponseWrapperChecker(PortletResponse portletResp) {
+ resp = portletResp;
+ element = resp.createElement("p");
+ }
+
+ @Override
+ public void addProperty(String key, String value) {
+ String meth = "addProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setProperty(String key, String value) {
+ String meth = "setProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String encodeURL(String path) {
+ String meth = "encodeURL";
+ Object[] args = {path};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getNamespace() {
+ String meth = "getNamespace";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void addProperty(Cookie cookie) {
+ String meth = "addProperty";
+ Object[] args = {cookie};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, Element element) {
+ String meth = "addProperty";
+ Object[] args = {key, element};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Element createElement(String tagName) throws DOMException {
+ String meth = "createElement";
+ Object[] args = {tagName};
+ Element ret = element;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContentType() {
+ String meth = "getContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getCharacterEncoding() {
+ String meth = "getCharacterEncoding";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PrintWriter getWriter() throws IOException {
+ String meth = "getWriter";
+ Object[] args = {};
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ PrintWriter pw = new PrintWriter(baos);
+ PrintWriter ret = pw;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setBufferSize(int size) {
+ String meth = "setBufferSize";
+ Object[] args = {size};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public int getBufferSize() {
+ String meth = "getBufferSize";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void flushBuffer() throws IOException {
+ String meth = "flushBuffer";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void resetBuffer() {
+ String meth = "resetBuffer";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public boolean isCommitted() {
+ String meth = "isCommitted";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void reset() {
+ String meth = "reset";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public OutputStream getPortletOutputStream() throws IOException {
+ String meth = "getPortletOutputStream";
+ Object[] args = {};
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ OutputStream ret = baos;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletURL createRenderURL() {
+ String meth = "createRenderURL";
+ Object[] args = {};
+ PortletURL ret = ((MimeResponse)resp).createRenderURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletURL createActionURL() {
+ String meth = "createActionURL";
+ Object[] args = {};
+ PortletURL ret = ((MimeResponse)resp).createRenderURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public ResourceURL createResourceURL() {
+ String meth = "createResourceURL";
+ Object[] args = {};
+ ResourceURL ret = ((MimeResponse)resp).createResourceURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public CacheControl getCacheControl() {
+ String meth = "getCacheControl";
+ Object[] args = {};
+ CacheControl ret = ((MimeResponse)resp).getCacheControl();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setTitle(String title) {
+ String meth = "setTitle";
+ Object[] args = {title};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setNextPossiblePortletModes(Collection<PortletMode> portletModes) {
+ String meth = "setNextPossiblePortletModes";
+ Object[] args = {portletModes};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setContentType(String type) {
+ String meth = "setContentType";
+ Object[] args = {type};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceRequestWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceRequestWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceRequestWrapperChecker.java
new file mode 100644
index 0000000..f8e9670
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceRequestWrapperChecker.java
@@ -0,0 +1,568 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.ResourceRequest;
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+
+public class ResourceRequestWrapperChecker extends WrapperChecker implements ResourceRequest {
+
+ private PortletRequest req;
+ private PortletSession sess;
+ private PortletPreferences prefs;
+ private PortalContext pcntxt;
+ private Principal ppal;
+
+ public ResourceRequestWrapperChecker(PortletRequest portletReq) {
+ req = portletReq;
+ sess = req.getPortletSession();
+ prefs = req.getPreferences();
+ pcntxt = req.getPortalContext();
+ ppal = req.getUserPrincipal();
+ }
+
+ @Override
+ public InputStream getPortletInputStream() throws IOException {
+ String meth = "getPortletInputStream";
+ Object[] args = {};
+ byte[] bytes = "Hi there!".getBytes();
+ ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
+ InputStream ret = bais;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setCharacterEncoding(String enc) throws UnsupportedEncodingException {
+ String meth = "setCharacterEncoding";
+ Object[] args = {enc};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public BufferedReader getReader() throws UnsupportedEncodingException, IOException {
+ String meth = "getReader";
+ Object[] args = {};
+ StringReader rdr = new StringReader("Hi there!");
+ BufferedReader br = new BufferedReader(rdr);
+ BufferedReader ret = br;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getCharacterEncoding() {
+ String meth = "getCharacterEncoding";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContentType() {
+ String meth = "getContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getContentLength() {
+ String meth = "getContentLength";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getMethod() {
+ String meth = "getMethod";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isWindowStateAllowed(WindowState state) {
+ String meth = "isWindowStateAllowed";
+ Object[] args = {state};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isPortletModeAllowed(PortletMode mode) {
+ String meth = "isPortletModeAllowed";
+ Object[] args = {mode};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletPreferences getPreferences() {
+ String meth = "getPreferences";
+ Object[] args = {};
+ PortletPreferences ret = prefs;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession() {
+ String meth = "getPortletSession";
+ Object[] args = {};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession(boolean create) {
+ String meth = "getPortletSession";
+ Object[] args = {create};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getProperty(String name) {
+ String meth = "getProperty";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getProperties(String name) {
+ String meth = "getProperties";
+ Object[] args = {name};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getPropertyNames() {
+ String meth = "getPropertyNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortalContext getPortalContext() {
+ String meth = "getPortalContext";
+ Object[] args = {};
+ PortalContext ret = pcntxt;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getAuthType() {
+ String meth = "getAuthType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContextPath() {
+ String meth = "getContextPath";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getRemoteUser() {
+ String meth = "getRemoteUser";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Principal getUserPrincipal() {
+ String meth = "getUserPrincipal";
+ Object[] args = {};
+ Principal ret = ppal;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isUserInRole(String role) {
+ String meth = "isUserInRole";
+ Object[] args = {role};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Object getAttribute(String name) {
+ String meth = "getAttribute";
+ Object[] args = {name};
+ Object ret = "object";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getAttributeNames() {
+ String meth = "getAttributeNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getParameter(String name) {
+ String meth = "getParameter";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getParameterNames() {
+ String meth = "getParameterNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String[] getParameterValues(String name) {
+ String meth = "getParameterValues";
+ Object[] args = {name};
+ String[] ret = {"val1", "val2"};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getParameterMap() {
+ String meth = "getParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isSecure() {
+ String meth = "isSecure";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setAttribute(String name, Object o) {
+ String meth = "setAttribute";
+ Object[] args = {name, o};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void removeAttribute(String name) {
+ String meth = "removeAttribute";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getRequestedSessionId() {
+ String meth = "getRequestedSessionId";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isRequestedSessionIdValid() {
+ String meth = "isRequestedSessionIdValid";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResponseContentType() {
+ String meth = "getResponseContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getResponseContentTypes() {
+ String meth = "getResponseContentTypes";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<Locale> getLocales() {
+ String meth = "getLocales";
+ Object[] args = {};
+ Locale[] la = {new Locale("en"), new Locale("de")};
+ Enumeration<Locale> ret = Collections.enumeration(Arrays.asList(la));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getScheme() {
+ String meth = "getScheme";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getServerName() {
+ String meth = "getServerName";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getServerPort() {
+ String meth = "getServerPort";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getWindowID() {
+ String meth = "getWindowID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Cookie[] getCookies() {
+ String meth = "getCookies";
+ Object[] args = {};
+ Cookie[] ret = {new Cookie("name", "Bob"), new Cookie("name", "Alice")};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateParameterMap() {
+ String meth = "getPrivateParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPublicParameterMap() {
+ String meth = "getPublicParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getETag() {
+ String meth = "getETag";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResourceID() {
+ String meth = "getResourceID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateRenderParameterMap() {
+ String meth = "getPrivateRenderParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getCacheability() {
+ String meth = "getCacheability";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceResponseWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceResponseWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceResponseWrapperChecker.java
new file mode 100644
index 0000000..765f68b
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ResourceResponseWrapperChecker.java
@@ -0,0 +1,302 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.*;
+import javax.servlet.http.Cookie;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Element;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class ResourceResponseWrapperChecker extends WrapperChecker implements
+ ResourceResponse {
+
+ PortletResponse resp;
+ Element element;
+
+ public ResourceResponseWrapperChecker(PortletResponse portletResp) {
+ resp = portletResp;
+ element = resp.createElement("p");
+ }
+
+ @Override
+ public void addProperty(String key, String value) {
+ String meth = "addProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setProperty(String key, String value) {
+ String meth = "setProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String encodeURL(String path) {
+ String meth = "encodeURL";
+ Object[] args = {path};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getNamespace() {
+ String meth = "getNamespace";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void addProperty(Cookie cookie) {
+ String meth = "addProperty";
+ Object[] args = {cookie};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, Element element) {
+ String meth = "addProperty";
+ Object[] args = {key, element};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Element createElement(String tagName) throws DOMException {
+ String meth = "createElement";
+ Object[] args = {tagName};
+ Element ret = element;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContentType() {
+ String meth = "getContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setContentType(String type) {
+ String meth = "setContentType";
+ Object[] args = {type};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getCharacterEncoding() {
+ String meth = "getCharacterEncoding";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PrintWriter getWriter() throws IOException {
+ String meth = "getWriter";
+ Object[] args = {};
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ PrintWriter pw = new PrintWriter(baos);
+ PrintWriter ret = pw;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setBufferSize(int size) {
+ String meth = "setBufferSize";
+ Object[] args = {size};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public int getBufferSize() {
+ String meth = "getBufferSize";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void flushBuffer() throws IOException {
+ String meth = "flushBuffer";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void resetBuffer() {
+ String meth = "resetBuffer";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public boolean isCommitted() {
+ String meth = "isCommitted";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void reset() {
+ String meth = "reset";
+ Object[] args = {};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public OutputStream getPortletOutputStream() throws IOException {
+ String meth = "getPortletOutputStream";
+ Object[] args = {};
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ OutputStream ret = baos;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public CacheControl getCacheControl() {
+ String meth = "getCacheControl";
+ Object[] args = {};
+ CacheControl ret = ((MimeResponse)resp).getCacheControl();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setLocale(Locale loc) {
+ String meth = "setLocale";
+ Object[] args = {loc};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setCharacterEncoding(String charset) {
+ String meth = "setCharacterEncoding";
+ Object[] args = {charset};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setContentLength(int len) {
+ String meth = "setContentLength";
+ Object[] args = {len};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public PortletURL createRenderURL() {
+ String meth = "createRenderURL";
+ Object[] args = {};
+ PortletURL ret = ((MimeResponse)resp).createRenderURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletURL createActionURL() {
+ String meth = "createActionURL";
+ Object[] args = {};
+ PortletURL ret = ((MimeResponse)resp).createActionURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public ResourceURL createResourceURL() {
+ String meth = "createResourceURL";
+ Object[] args = {};
+ ResourceURL ret = ((MimeResponse)resp).createResourceURL();
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/WrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/WrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/WrapperChecker.java
new file mode 100644
index 0000000..0147085
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/WrapperChecker.java
@@ -0,0 +1,90 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.beans;
+
+/**
+ * Abstract base class to be extended by the specific checker classes for the wrappers.
+ * The extending checker class must implement the interface to be tested.
+ *
+ * This class provides the mechanism for verifying that the arguments passed to each
+ * wrapper class method are passed correctly to the wrapped class and to verfiy that
+ * the returned value from the wrapped method is received correctly by the caller.
+ *
+ * @author Scott
+ *
+ */
+public abstract class WrapperChecker {
+
+ // expected values set before method call
+ String name;
+ Object[] args;
+
+ // expected return value from wrapped method
+ Object retVal;
+
+ // Test case handling
+ TestResult tr;
+
+ /**
+ * Prepares the wrapper tester for a specific test case
+ * @param tr test result to be updated as necessary
+ * @param name name of method to be tested
+ * @param args parameter array
+ */
+ public void prepare(TestResult tr, String name, Object... args) {
+ this.tr = tr;
+ this.name = name;
+ this.args = (args==null) ? new Object[] {} : args;
+ this.retVal = null;
+ }
+
+ public void checkRetval(Object retVal) {
+ if (tr.isTcSuccess() == false) return; // parameter check failed
+
+ if (retVal == this.retVal){
+ tr.setTcSuccess(true);
+ } else {
+ tr.setTcSuccess(false);
+ tr.appendTcDetail("return value mismatch. Expected: " + this.retVal +
+ ", Actual: " + retVal);
+ }
+ }
+
+ protected void checkArgs(String name, Object[] args) {
+ tr.setTcSuccess(true);
+ if (!name.equals(this.name)) {
+ tr.setTcSuccess(false);
+ tr.appendTcDetail("Wrong method called. Expected: " + this.name +
+ ", Actual: " + name);
+ } else if (args.length != this.args.length) {
+ tr.setTcSuccess(false);
+ tr.appendTcDetail("Wrong number of arguments. Expected: " + this.args.length +
+ ", Actual: " + args.length);
+ } else {
+ for (int ii=0; ii<args.length; ii++) {
+ if (args[ii] != this.args[ii]) {
+ tr.setTcSuccess(false);
+ tr.appendTcDetail("Argument " + ii + " mismatch: " +
+ "Expected: " + this.args[ii] + ", Actual: " + args[ii]);
+ }
+ }
+ }
+ }
+}
[18/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
index 47a0044..264b6c1 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2RequestTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,195 +23,197 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2RequestTests">
<portlet>
- <portlet-name>RequestTests_PortletRequest_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_Render</portlet-class>
+ <portlet-name>RequestTests_PortletRequest_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_PortletRequest_Render</title>
+ <title>RequestTests_PortletRequest_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_PortletRequest_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_Action</portlet-class>
+ <portlet-name>RequestTests_PortletRequest_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_PortletRequest_Action</title>
+ <title>RequestTests_PortletRequest_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_PortletRequest_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_Event</portlet-class>
+ <portlet-name>RequestTests_PortletRequest_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_PortletRequest_Event</title>
+ <title>RequestTests_PortletRequest_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>RequestTests_PortletRequest_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_Event_event</portlet-class>
+ <portlet-name>RequestTests_PortletRequest_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_PortletRequest_Event_event</title>
+ <title>RequestTests_PortletRequest_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>RequestTests_PortletRequest_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_Resource</portlet-class>
+ <portlet-name>RequestTests_PortletRequest_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_PortletRequest_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_PortletRequest_Resource</title>
+ <title>RequestTests_PortletRequest_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_ClientDataRequest_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_ClientDataRequest_Action</portlet-class>
+ <portlet-name>RequestTests_ClientDataRequest_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_ClientDataRequest_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_ClientDataRequest_Action</title>
+ <title>RequestTests_ClientDataRequest_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_ClientDataRequest_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_ClientDataRequest_Resource</portlet-class>
+ <portlet-name>RequestTests_ClientDataRequest_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_ClientDataRequest_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_ClientDataRequest_Resource</title>
+ <title>RequestTests_ClientDataRequest_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_ActionRequest_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_ActionRequest_Action</portlet-class>
+ <portlet-name>RequestTests_ActionRequest_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_ActionRequest_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_ActionRequest_Action</title>
+ <title>RequestTests_ActionRequest_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_ResourceRequest_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_ResourceRequest_Resource</portlet-class>
+ <portlet-name>RequestTests_ResourceRequest_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_ResourceRequest_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_ResourceRequest_Resource</title>
+ <title>RequestTests_ResourceRequest_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>RequestTests_EventRequest_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_EventRequest_Event</portlet-class>
+ <portlet-name>RequestTests_EventRequest_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_EventRequest_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_EventRequest_Event</title>
+ <title>RequestTests_EventRequest_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>RequestTests_EventRequest_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_EventRequest_Event_event</portlet-class>
+ <portlet-name>RequestTests_EventRequest_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_EventRequest_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_EventRequest_Event_event</title>
+ <title>RequestTests_EventRequest_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>RequestTests_RenderRequest_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.RequestTests_RenderRequest_Render</portlet-class>
+ <portlet-name>RequestTests_RenderRequest_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.RequestTests_RenderRequest_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>RequestTests_RenderRequest_Render</title>
+ <title>RequestTests_RenderRequest_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_Action.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_Action.java
deleted file mode 100644
index 3650030..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_Action.java
+++ /dev/null
@@ -1,459 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_ActionResponse_Action_event
- *
- */
-public class ResponseTests_ActionResponse_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_ActionResponse_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA1 */
- /* Details: "Method sendRedirect(String): Allows a redirect response */
- /* to be sent to the client" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA2 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalArgumentException if a relative path URL is specified" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA3 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setPortletMode has been called before */
- /* this method " */
- TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA4 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setWindowState has been called before */
- /* this method " */
- TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA5 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setRenderParameter has been called before */
- /* this method " */
- TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA5);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA6 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setRenderParameters has been called */
- /* before this method " */
- TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA6);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA7 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if removePublicRenderParameter has been */
- /* called before this method" */
- TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTA7);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB1 */
- /* Details: "Method sendRedirect(String, String): Allows a redirect */
- /* response to be sent to the client" */
- TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB1);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB2 */
- /* Details: "Method sendRedirect(String, String): Encodes a render */
- /* URL as a parameter under the specified name on the redirect URL" */
- TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB2);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB3 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set PortletMode" */
- TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB3);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB4 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set WindowState" */
- TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB4);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB5 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set render parameters" */
- TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB5);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB6 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalArgumentException if a relative path URL is specified" */
- TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB6);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB7 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setPortletMode has been called before */
- /* this method " */
- TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB7);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB8 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setWindowState has been called before */
- /* this method " */
- TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB8);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB9 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setRenderParameter has been called before */
- /* this method " */
- TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB9);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB10 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setRenderParameters has been called */
- /* before this method " */
- TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB10);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB11 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if removePublicRenderParameter has been */
- /* called before this method" */
- TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_ACTION_SENDREDIRECTB11);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA1 */
- /* Details: "Method sendRedirect(String): Allows a redirect response */
- /* to be sent to the client" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA2 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalArgumentException if a relative path URL is specified" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA3 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setPortletMode has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA4 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setWindowState has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA5 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setRenderParameter has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA6 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if setRenderParameters has been called */
- /* before this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectA7 */
- /* Details: "Method sendRedirect(String): Throws */
- /* IllegalStateException if removePublicRenderParameter has been */
- /* called before this method" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectA7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB1 */
- /* Details: "Method sendRedirect(String, String): Allows a redirect */
- /* response to be sent to the client" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB2 */
- /* Details: "Method sendRedirect(String, String): Encodes a render */
- /* URL as a parameter under the specified name on the redirect URL" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB3 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set PortletMode" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB4 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set WindowState" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB5 */
- /* Details: "Method sendRedirect(String, String): The encoded render */
- /* URL contains the currently set render parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB6 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalArgumentException if a relative path URL is specified" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB6", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB7 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setPortletMode has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB7", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB8 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setWindowState has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB8", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB9 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setRenderParameter has been called before */
- /* this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB9", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB10 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if setRenderParameters has been called */
- /* before this method " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB10", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_ActionResponse_Action_sendRedirectB11 */
- /* Details: "Method sendRedirect(String, String): Throws */
- /* IllegalStateException if removePublicRenderParameter has been */
- /* called before this method" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_ActionResponse_Action_sendRedirectB11", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
new file mode 100644
index 0000000..0f0998f
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
@@ -0,0 +1,459 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_ActionResponse_ApiAction_event
+ *
+ */
+public class ResponseTests_ActionResponse_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_ActionResponse_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1 */
+ /* Details: "Method sendRedirect(String): Allows a redirect response */
+ /* to be sent to the client" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA2 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalArgumentException if a relative path URL is specified" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA3 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setPortletMode has been called before */
+ /* this method " */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA4 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setWindowState has been called before */
+ /* this method " */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA4);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA5 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setRenderParameter has been called before */
+ /* this method " */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA5);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA6 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setRenderParameters has been called */
+ /* before this method " */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA6);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA7 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if removePublicRenderParameter has been */
+ /* called before this method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA7);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB1 */
+ /* Details: "Method sendRedirect(String, String): Allows a redirect */
+ /* response to be sent to the client" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB1);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB2 */
+ /* Details: "Method sendRedirect(String, String): Encodes a render */
+ /* URL as a parameter under the specified name on the redirect URL" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB2);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB3 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set PortletMode" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB3);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB4 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set WindowState" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB4);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB5 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set render parameters" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB5);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB6 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalArgumentException if a relative path URL is specified" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB6);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB7 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setPortletMode has been called before */
+ /* this method " */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB7);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB8 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setWindowState has been called before */
+ /* this method " */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB8);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB9 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setRenderParameter has been called before */
+ /* this method " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB9);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB10 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setRenderParameters has been called */
+ /* before this method " */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB10);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB11 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if removePublicRenderParameter has been */
+ /* called before this method" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB11);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_ActionResponse_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1 */
+ /* Details: "Method sendRedirect(String): Allows a redirect response */
+ /* to be sent to the client" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA2 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalArgumentException if a relative path URL is specified" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA3 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setPortletMode has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA4 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setWindowState has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA5 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setRenderParameter has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA6 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if setRenderParameters has been called */
+ /* before this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectA7 */
+ /* Details: "Method sendRedirect(String): Throws */
+ /* IllegalStateException if removePublicRenderParameter has been */
+ /* called before this method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB1 */
+ /* Details: "Method sendRedirect(String, String): Allows a redirect */
+ /* response to be sent to the client" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB2 */
+ /* Details: "Method sendRedirect(String, String): Encodes a render */
+ /* URL as a parameter under the specified name on the redirect URL" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB3 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set PortletMode" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB4 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set WindowState" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB5 */
+ /* Details: "Method sendRedirect(String, String): The encoded render */
+ /* URL contains the currently set render parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB6 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalArgumentException if a relative path URL is specified" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB7 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setPortletMode has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB8 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setWindowState has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB8", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB9 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setRenderParameter has been called before */
+ /* this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB9", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB10 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if setRenderParameters has been called */
+ /* before this method " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB10", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_ActionResponse_ApiAction_sendRedirectB11 */
+ /* Details: "Method sendRedirect(String, String): Throws */
+ /* IllegalStateException if removePublicRenderParameter has been */
+ /* called before this method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB11", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
new file mode 100644
index 0000000..60e3e2d
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
@@ -0,0 +1,125 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_EventResponse_ApiEvent_event
+ *
+ */
+public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_EventResponse_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "ResponseTests_EventResponse_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Copies all */
+ /* render parameters set on the EventRequest to the EventResponse" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input EventRequest parameter is */
+ /* null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
new file mode 100644
index 0000000..775cdf0
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
@@ -0,0 +1,126 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_EventResponse_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Copies all */
+ /* render parameters set on the EventRequest to the EventResponse" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input EventRequest parameter is */
+ /* null" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>ResponseTests_EventResponse_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event.java
deleted file mode 100644
index 7185754..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet ResponseTests_EventResponse_Event_event
- *
- */
-public class ResponseTests_EventResponse_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_EventResponse_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "ResponseTests_EventResponse_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2ResponseTests_EventResponse_Event_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Copies all */
- /* render parameters set on the EventRequest to the EventResponse" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_EventResponse_Event_setRenderParameters1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2ResponseTests_EventResponse_Event_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input EventRequest parameter is */
- /* null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2ResponseTests_EventResponse_Event_setRenderParameters2", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event_event.java
deleted file mode 100644
index 43e8ebd..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_Event_event.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class ResponseTests_EventResponse_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- ResponseTests_EventResponse_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2ResponseTests_EventResponse_Event_setRenderParameters1 */
- /* Details: "Method setRenderParameters(java.util.Map): Copies all */
- /* render parameters set on the EventRequest to the EventResponse" */
- TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_EVENT_SETRENDERPARAMETERS1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2ResponseTests_EventResponse_Event_setRenderParameters2 */
- /* Details: "Method setRenderParameters(java.util.Map): Throws */
- /* IllegalArgumentException if the input EventRequest parameter is */
- /* null" */
- TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_EVENT_SETRENDERPARAMETERS2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>ResponseTests_EventResponse_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}
[12/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
new file mode 100644
index 0000000..7a97c49
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
@@ -0,0 +1,1089 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet ResponseTests_StateAwareResponse_ApiAction_event
+ *
+ */
+public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ ResponseTests_StateAwareResponse_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to the specified value" */
+ TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portlet cannot switch to the specified */
+ /* WindowState" */
+ TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to the specified value" */
+ TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portlet cannot switch to the specified */
+ /* PortletMode" */
+ TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Sets the */
+ /* render parameter map to the specified value" */
+ TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Public render */
+ /* parameters can be set through the map" */
+ TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3 */
+ /* Details: "Method setRenderParameters(java.util.Map): Private */
+ /* render parameters can be set through the map" */
+ TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS3);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing private render parameters not contained in the specified */
+ /* input map are removed" */
+ TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS4);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing public render parameters not contained in the specified */
+ /* input map remain unchanged" */
+ TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS5);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6 */
+ /* Details: "Method setRenderParameters(java.util.Map): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS6);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS7);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS8);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS9);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS10);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS11);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS12);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1 */
+ /* Details: "Method setRenderParameter(String, String): Sets the */
+ /* parameter value for the specified name" */
+ TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA1);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2 */
+ /* Details: "Method setRenderParameter(String, String): A private */
+ /* parameter can be set" */
+ TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA2);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3 */
+ /* Details: "Method setRenderParameter(String, String): A public */
+ /* parameter can be set" */
+ TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA3);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4 */
+ /* Details: "Method setRenderParameter(String, String): All */
+ /* previously existing values for the specified name are removed" */
+ TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA4);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5 */
+ /* Details: "Method setRenderParameter(String, String): If the value */
+ /* is null, all values for the specified name are removed" */
+ TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA5);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6 */
+ /* Details: "Method setRenderParameter(String, String): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA6);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA7);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA8);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1 */
+ /* Details: "Method setRenderParameter(String, String[]): Sets the */
+ /* parameter values for the specified name." */
+ TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB1);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2 */
+ /* Details: "Method setRenderParameter(String, String[]): All */
+ /* existing values are removed" */
+ TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB2);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3 */
+ /* Details: "Method setRenderParameter(String, String[]): Parameters */
+ /* that are set are available in subsequent render requests" */
+ TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB3);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB4);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the values array is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB5);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB6);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA1 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Publishes an event with the specified name */
+ /* and payload" */
+ TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA1);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA2 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the name */
+ /* is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA2);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA3 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value is not serializable" */
+ TestResult tr34 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA3);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA4 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value does not have a valid JAXB binding" */
+ TestResult tr35 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA4);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA5 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value object type is not as specified in the deployment */
+ /* descriptor" */
+ TestResult tr36 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA5);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB1 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
+ /* an event with the specified name and payload" */
+ TestResult tr37 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB2 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB3 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value is not serializable" */
+ TestResult tr39 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB3);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB4 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value does not have a valid JAXB */
+ /* binding" */
+ TestResult tr40 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB4);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB5 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value object type is not as */
+ /* specified in the deployment descriptor" */
+ TestResult tr41 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB5);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Returns a map of the */
+ /* render parameters currently set on the response" */
+ TestResult tr42 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains public render parameters" */
+ TestResult tr43 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains private render parameters" */
+ TestResult tr44 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP3);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4 */
+ /* Details: "Method getRenderParameterMap(): An empty map is returned */
+ /* if no parameters have been set " */
+ TestResult tr45 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP4);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the current PortletMode */
+ /* for the portlet" */
+ TestResult tr46 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETPORTLETMODE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if no PortletMode */
+ /* has been set" */
+ TestResult tr47 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETPORTLETMODE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the current WindowState */
+ /* for the portlet" */
+ TestResult tr48 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETWINDOWSTATE1);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if no WindowState */
+ /* has been set" */
+ TestResult tr49 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETWINDOWSTATE2);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ TestResult tr50 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_REMOVEPUBLICRENDERPARAMETER1);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_REMOVEPUBLICRENDERPARAMETER2);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1 */
+ /* Details: "Method setWindowState(WindowState): Sets the WindowState */
+ /* to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* WindowStateException if the portlet cannot switch to the specified */
+ /* WindowState" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3 */
+ /* Details: "Method setWindowState(WindowState): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1 */
+ /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode */
+ /* to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* PortletModeException if the portlet cannot switch to the specified */
+ /* PortletMode" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3 */
+ /* Details: "Method setPortletMode(PortletMode): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1 */
+ /* Details: "Method setRenderParameters(java.util.Map): Sets the */
+ /* render parameter map to the specified value" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2 */
+ /* Details: "Method setRenderParameters(java.util.Map): Public render */
+ /* parameters can be set through the map" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3 */
+ /* Details: "Method setRenderParameters(java.util.Map): Private */
+ /* render parameters can be set through the map" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing private render parameters not contained in the specified */
+ /* input map are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5 */
+ /* Details: "Method setRenderParameters(java.util.Map): Previously */
+ /* existing public render parameters not contained in the specified */
+ /* input map remain unchanged" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6 */
+ /* Details: "Method setRenderParameters(java.util.Map): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the input map is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any key in the map is the empty string */
+ /* (\"\") " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if the values array for any key is null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalArgumentException if any element in any values array is */
+ /* null " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12 */
+ /* Details: "Method setRenderParameters(java.util.Map): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1 */
+ /* Details: "Method setRenderParameter(String, String): Sets the */
+ /* parameter value for the specified name" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2 */
+ /* Details: "Method setRenderParameter(String, String): A private */
+ /* parameter can be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3 */
+ /* Details: "Method setRenderParameter(String, String): A public */
+ /* parameter can be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4 */
+ /* Details: "Method setRenderParameter(String, String): All */
+ /* previously existing values for the specified name are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5 */
+ /* Details: "Method setRenderParameter(String, String): If the value */
+ /* is null, all values for the specified name are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6 */
+ /* Details: "Method setRenderParameter(String, String): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8 */
+ /* Details: "Method setRenderParameter(String, String): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1 */
+ /* Details: "Method setRenderParameter(String, String[]): Sets the */
+ /* parameter values for the specified name." */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2 */
+ /* Details: "Method setRenderParameter(String, String[]): All */
+ /* existing values are removed" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3 */
+ /* Details: "Method setRenderParameter(String, String[]): Parameters */
+ /* that are set are available in subsequent render requests" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalArgumentException if the values array is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6 */
+ /* Details: "Method setRenderParameter(String, String[]): Throws */
+ /* IllegalStateException if the method is invoked after the */
+ /* sendRedirect method has been called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA1 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Publishes an event with the specified name */
+ /* and payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA2 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the name */
+ /* is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA3 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value is not serializable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA4 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value does not have a valid JAXB binding" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA5 */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Throws IllegalArgumentException if the */
+ /* value object type is not as specified in the deployment */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB1 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Publishes */
+ /* an event with the specified name and payload" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB2 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB3 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value is not serializable" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB4 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value does not have a valid JAXB */
+ /* binding" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB5 */
+ /* Details: "Method setEvent(String, java.io.Serializable): Throws */
+ /* IllegalArgumentException if the value object type is not as */
+ /* specified in the deployment descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Returns a map of the */
+ /* render parameters currently set on the response" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains public render parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3 */
+ /* Details: "Method getRenderParameterMap(): The returned map */
+ /* contains private render parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4 */
+ /* Details: "Method getRenderParameterMap(): An empty map is returned */
+ /* if no parameters have been set " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1 */
+ /* Details: "Method getPortletMode(): Returns the current PortletMode */
+ /* for the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2 */
+ /* Details: "Method getPortletMode(): Returns null if no PortletMode */
+ /* has been set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1 */
+ /* Details: "Method getWindowState(): Returns the current WindowState */
+ /* for the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2 */
+ /* Details: "Method getWindowState(): Returns null if no WindowState */
+ /* has been set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1 */
+ /* Details: "Method removePublicRenderParameter(String): Removes the */
+ /* specified public render parameter" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2 */
+ /* Details: "Method removePublicRenderParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
[37/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterConfig_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterConfig_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterConfig_ApiRenderFilter_filter.java
new file mode 100644
index 0000000..c9a4a71
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_FilterConfig_ApiRenderFilter_filter.java
@@ -0,0 +1,125 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_FilterConfig_ApiRenderFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_FilterConfig_ApiRenderFilter_filter implements RenderFilter {
+ private static final String LOG_CLASS =
+ FilterTests_FilterConfig_ApiRenderFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(RenderRequest portletReq, RenderResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getFilterName */
+ /* Details: "Method getFilterName(): getFilterName method returns */
+ /* filter name as defined in deployment descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETFILTERNAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getPortletContext */
+ /* Details: "Method getPortletContext(): Returns reference to */
+ /* PortletContext object" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETPORTLETCONTEXT);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameter1 */
+ /* Details: "Method getInitParameter(String): Returns null if */
+ /* initialization parameter does not exist" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETINITPARAMETER1);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameter2 */
+ /* Details: "Method getInitParameter(String): Returns value of */
+ /* specified initialization parameter" */
+ TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETINITPARAMETER2);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameterNames1 */
+ /* Details: "Method getInitParameterNames(): Returns empty */
+ /* Enumeration if no parameters defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETINITPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2FilterTests_FilterConfig_ApiRenderFilter_getInitParameterNames2 */
+ /* Details: "Method getInitParameterNames(): Returns an Enumeration */
+ /* of initialization parameters defined in deployment descriptor" */
+ TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_FILTERCONFIG_APIRENDERFILTER_GETINITPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
new file mode 100644
index 0000000..da9bf84
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiActionFilter_filter.java
@@ -0,0 +1,104 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_PortletFilter_ApiActionFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_PortletFilter_ApiActionFilter_filter implements ActionFilter {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiActionFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ActionRequest portletReq, ActionResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* ActionFilter is configured" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIACTIONFILTER_INITACTION1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction2 */
+ /* Details: "The init(FilterConfig): method for an ActionFilter is */
+ /* passed a FilterConfig object" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIACTIONFILTER_INITACTION2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiActionFilter_initAction3 */
+ /* Details: "If the init(FilterConfig): method for an ActionFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIACTIONFILTER_INITACTION3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ApiActionFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
new file mode 100644
index 0000000..aaeb9ef
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiEventFilter_filter.java
@@ -0,0 +1,104 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_PortletFilter_ApiEventFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_PortletFilter_ApiEventFilter_filter implements EventFilter {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiEventFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(EventRequest portletReq, EventResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ StringWriter writer = new StringWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* EventFilter is configured" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIEVENTFILTER_INITEVENT1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent2 */
+ /* Details: "The init(FilterConfig): method for an EventFilter is */
+ /* passed a FilterConfig object" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIEVENTFILTER_INITEVENT2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiEventFilter_initEvent3 */
+ /* Details: "If the init(FilterConfig): method for an EventFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIEVENTFILTER_INITEVENT3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "FilterTests_PortletFilter_ApiEventFilter",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
new file mode 100644
index 0000000..330db5c
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiRenderFilter_filter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_PortletFilter_ApiRenderFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_PortletFilter_ApiRenderFilter_filter implements RenderFilter {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiRenderFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(RenderRequest portletReq, RenderResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiRenderFilter_initRender1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* RenderFilter is configured" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRENDERFILTER_INITRENDER1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiRenderFilter_initRender2 */
+ /* Details: "The init(FilterConfig): method for an RenderFilter is */
+ /* passed a FilterConfig object" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRENDERFILTER_INITRENDER2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiRenderFilter_initRender3 */
+ /* Details: "If the init(FilterConfig): method for an RenderFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRENDERFILTER_INITRENDER3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
new file mode 100644
index 0000000..7b5f82d
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_PortletFilter_ApiResourceFilter_filter.java
@@ -0,0 +1,101 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_PortletFilter_ApiResourceFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_PortletFilter_ApiResourceFilter_filter implements ResourceFilter {
+ private static final String LOG_CLASS =
+ FilterTests_PortletFilter_ApiResourceFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ResourceRequest portletReq, ResourceResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiResourceFilter_initResource1 */
+ /* Details: "The init(FilterConfig): method is called when an */
+ /* ResourceFilter is configured" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRESOURCEFILTER_INITRESOURCE1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiResourceFilter_initResource2 */
+ /* Details: "The init(FilterConfig): method for an ResourceFilter is */
+ /* passed a FilterConfig object" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRESOURCEFILTER_INITRESOURCE2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_PortletFilter_ApiResourceFilter_initResource3 */
+ /* Details: "If the init(FilterConfig): method for an ResourceFilter */
+ /* throws a PortletException, the filter is not placed in service" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_PORTLETFILTER_APIRESOURCEFILTER_INITRESOURCE3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
new file mode 100644
index 0000000..58e8ee7
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_RenderFilter_ApiRenderFilter_filter.java
@@ -0,0 +1,157 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_RenderFilter_ApiRenderFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_RenderFilter_ApiRenderFilter_filter implements RenderFilter {
+ private static final String LOG_CLASS =
+ FilterTests_RenderFilter_ApiRenderFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(RenderRequest portletReq, RenderResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_canBeConfigured1 */
+ /* Details: "An RenderFilter can be configured in the portlet */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_CANBECONFIGURED1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_canBeConfigured2 */
+ /* Details: "Multiple RenderFilter classes can be configured in the */
+ /* portlet descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_CANBECONFIGURED2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterIsCalled */
+ /* Details: "The doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method is called before the processRender method for */
+ /* the portlet" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTERISCALLED);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterProcessRender1 */
+ /* Details: "After the doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processRenderMethod is called" */
+ TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTERPROCESSRENDER1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterProcessRender2 */
+ /* Details: "After the doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTERPROCESSRENDER2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterBlock */
+ /* Details: "If the doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method does not invoke the next filter, */
+ /* processRender is not called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTERBLOCK);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterException1 */
+ /* Details: "If the doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method throws an UnavailableException, processRender */
+ /* is not called" */
+ TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTEREXCEPTION1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterException2 */
+ /* Details: "If the doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTEREXCEPTION2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2FilterTests_RenderFilter_ApiRenderFilter_doFilterExamine */
+ /* Details: "Method doFilter(RenderRequest, RenderResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the RenderResponse may be examined" */
+ TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_RENDERFILTER_APIRENDERFILTER_DOFILTEREXAMINE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
new file mode 100644
index 0000000..ecd6327
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/filters/FilterTests_ResourceFilter_ApiResourceFilter_filter.java
@@ -0,0 +1,157 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package javax.portlet.tck.filters;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * Filter for JSR 362 request dispatcher testing.
+ * Used by portlet: FilterTests_ResourceFilter_ApiResourceFilter
+ *
+ * @author nick
+ *
+ */
+public class FilterTests_ResourceFilter_ApiResourceFilter_filter implements ResourceFilter {
+ private static final String LOG_CLASS =
+ FilterTests_ResourceFilter_ApiResourceFilter_filter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private FilterConfig filterConfig;
+
+ @Override
+ public void init(FilterConfig filterConfig) throws PortletException {
+ this.filterConfig = filterConfig;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void doFilter(ResourceRequest portletReq, ResourceResponse portletResp,
+ FilterChain chain) throws IOException, PortletException {
+ LOGGER.entering(LOG_CLASS, "doFilter");
+
+ PrintWriter writer = portletResp.getWriter();
+
+ // first execute the chain
+
+ chain.doFilter(portletReq, portletResp);
+
+ // now do the tests and write output
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_canBeConfigured1 */
+ /* Details: "An ResourceFilter can be configured in the portlet */
+ /* descriptor" */
+ TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_CANBECONFIGURED1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_canBeConfigured2 */
+ /* Details: "Multiple ResourceFilter classes can be configured in the */
+ /* portlet descriptor" */
+ TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_CANBECONFIGURED2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterIsCalled */
+ /* Details: "The doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method is called before the processResource method */
+ /* for the portlet" */
+ TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTERISCALLED);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterProcessResource1 */
+ /* Details: "After the doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processResourceMethod is called" */
+ TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTERPROCESSRESOURCE1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterProcessResource2 */
+ /* Details: "After the doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTERPROCESSRESOURCE2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterBlock */
+ /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method does not invoke the next filter, */
+ /* processResource is not called" */
+ TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTERBLOCK);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException1 */
+ /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method throws an UnavailableException, */
+ /* processResource is not called" */
+ TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION1);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException2 */
+ /* Details: "If the doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION2);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterExamine */
+ /* Details: "Method doFilter(ResourceRequest, ResourceResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the ResourceResponse may be examined" */
+ TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXAMINE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ActionFilter.java
deleted file mode 100644
index 73dbb76..0000000
--- a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ActionFilter.java
+++ /dev/null
@@ -1,293 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet FilterTests_ActionFilter_ActionFilter_event
- *
- */
-public class FilterTests_ActionFilter_ActionFilter implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- FilterTests_ActionFilter_ActionFilter.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_canBeConfigured1 */
- /* Details: "An ActionFilter can be configured in the portlet */
- /* descriptor" */
- TestResult tr0 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_CANBECONFIGURED1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_canBeConfigured2 */
- /* Details: "Multiple ActionFilter classes can be configured in the */
- /* portlet descriptor" */
- TestResult tr1 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_CANBECONFIGURED2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterIsCalled */
- /* Details: "The doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method is called before the processAction method for */
- /* the portlet" */
- TestResult tr2 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERISCALLED);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction1 */
- /* Details: "After the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processActionMethod is called" */
- TestResult tr3 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERPROCESSACTION1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction2 */
- /* Details: "After the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- TestResult tr4 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERPROCESSACTION2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterBlock */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method does not invoke the next filter, */
- /* processAction is not called" */
- TestResult tr5 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTERBLOCK);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterException1 */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method throws an UnavailableException, processAction */
- /* is not called" */
- TestResult tr6 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXCEPTION1);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterException2 */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- TestResult tr7 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXCEPTION2);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterExamine */
- /* Details: "Method doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the ActionResponse may be examined" */
- TestResult tr8 = tcd.getTestResultFailed(V2FILTERTESTS_ACTIONFILTER_ACTIONFILTER_DOFILTEREXAMINE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ActionFilter",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ActionFilter", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ActionFilter", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_canBeConfigured1 */
- /* Details: "An ActionFilter can be configured in the portlet */
- /* descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_canBeConfigured1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_canBeConfigured2 */
- /* Details: "Multiple ActionFilter classes can be configured in the */
- /* portlet descriptor" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_canBeConfigured2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterIsCalled */
- /* Details: "The doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method is called before the processAction method for */
- /* the portlet" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterIsCalled", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction1 */
- /* Details: "After the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the processActionMethod is called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction2 */
- /* Details: "After the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method has sucessfully completed and invokes the */
- /* next filter, the next filter in the chain is called if multiple */
- /* filters are defined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterProcessAction2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterBlock */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method does not invoke the next filter, */
- /* processAction is not called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterBlock", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterException1 */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method throws an UnavailableException, processAction */
- /* is not called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterException1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterException2 */
- /* Details: "If the doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): method throws an UnavailableException, no further */
- /* filter is called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterException2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2FilterTests_ActionFilter_ActionFilter_doFilterExamine */
- /* Details: "Method doFilter(ActionRequest, ActionResponse, */
- /* FilterChain): After the next filter has been successfully invoked, */
- /* the ActionResponse may be examined" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2FilterTests_ActionFilter_ActionFilter_doFilterExamine", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ApiActionFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ApiActionFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ApiActionFilter.java
new file mode 100644
index 0000000..c38e899
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_ActionFilter_ApiActionFilter.java
@@ -0,0 +1,206 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_ActionFilter_ApiActionFilter_event
+ *
+ */
+public class FilterTests_ActionFilter_ApiActionFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_ActionFilter_ApiActionFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ApiActionFilter", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "FilterTests_ActionFilter_ApiActionFilter", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured1 */
+ /* Details: "An ActionFilter can be configured in the portlet */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured2 */
+ /* Details: "Multiple ActionFilter classes can be configured in the */
+ /* portlet descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_canBeConfigured2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterIsCalled */
+ /* Details: "The doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method is called before the processAction method for */
+ /* the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterIsCalled", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction1 */
+ /* Details: "After the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processActionMethod is called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction2 */
+ /* Details: "After the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterProcessAction2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterBlock */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method does not invoke the next filter, */
+ /* processAction is not called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterBlock", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterException1 */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method throws an UnavailableException, processAction */
+ /* is not called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterException1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterException2 */
+ /* Details: "If the doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterException2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_ActionFilter_ApiActionFilter_doFilterExamine */
+ /* Details: "Method doFilter(ActionRequest, ActionResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the ActionResponse may be examined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_ActionFilter_ApiActionFilter_doFilterExamine", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter.java
new file mode 100644
index 0000000..5fc34b9
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter.java
@@ -0,0 +1,201 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet FilterTests_EventFilter_ApiEventFilter_event
+ *
+ */
+public class FilterTests_EventFilter_ApiEventFilter implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_EventFilter_ApiEventFilter.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "FilterTests_EventFilter_ApiEventFilter");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured1 */
+ /* Details: "An EventFilter can be configured in the portlet */
+ /* descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured2 */
+ /* Details: "Multiple EventFilter classes can be configured in the */
+ /* portlet descriptor" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_canBeConfigured2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterIsCalled */
+ /* Details: "The doFilter(EventRequest, EventResponse, FilterChain): */
+ /* method is called before the processEvent method for the portlet" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterIsCalled", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent1 */
+ /* Details: "After the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the processEventMethod is called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent2 */
+ /* Details: "After the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method has sucessfully completed and invokes the */
+ /* next filter, the next filter in the chain is called if multiple */
+ /* filters are defined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterProcessEvent2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterBlock */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method does not invoke the next filter, processEvent */
+ /* is not called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterBlock", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterException1 */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method throws an UnavailableException, processEvent */
+ /* is not called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterException1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterException2 */
+ /* Details: "If the doFilter(EventRequest, EventResponse, */
+ /* FilterChain): method throws an UnavailableException, no further */
+ /* filter is called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterException2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2FilterTests_EventFilter_ApiEventFilter_doFilterExamine */
+ /* Details: "Method doFilter(EventRequest, EventResponse, */
+ /* FilterChain): After the next filter has been successfully invoked, */
+ /* the EventResponse may be examined" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2FilterTests_EventFilter_ApiEventFilter_doFilterExamine", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter_event.java b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter_event.java
new file mode 100644
index 0000000..9dad775
--- /dev/null
+++ b/portlet-tck_3.0/V2FilterTests/src/main/java/javax/portlet/tck/portlets/FilterTests_EventFilter_ApiEventFilter_event.java
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class FilterTests_EventFilter_ApiEventFilter_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ FilterTests_EventFilter_ApiEventFilter_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>FilterTests_EventFilter_ApiEventFilter_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "FilterTests_EventFilter_ApiEventFilter", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
[54/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
index 7a97c49..e5ad6f4 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
@@ -76,6 +76,8 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1 */
/* Details: "Method setWindowState(WindowState): Sets the WindowState */
/* to the specified value" */
@@ -182,16 +184,35 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if the input map is null" */
TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS7);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameters((Map<String, String[]>)null);
+ tr12.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr12.setTcSuccess(true);
+ } catch (Exception e) {
+ tr12.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8 */
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if any key in the map is null" */
TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS8);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{"val1-1", "val1-2"});
+ parms.put(null, new String[]{"val2-1", "val2-2"});
+ portletResp.setRenderParameters(parms);
+ tr13.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr13.setTcSuccess(true);
+ } catch (Exception e) {
+ tr13.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9 */
@@ -207,8 +228,19 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if the values array for any key is null " */
TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS10);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{"val1-1", "val1-2"});
+ parms.put("parm2", null);
+ portletResp.setRenderParameters(parms);
+ tr15.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr15.setTcSuccess(true);
+ } catch (Exception e) {
+ tr15.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11 */
@@ -216,8 +248,19 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* IllegalArgumentException if any element in any values array is */
/* null " */
TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS11);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{null, "val1-2"});
+ parms.put("parm2", new String[]{"val2-1", "val2-2"});
+ portletResp.setRenderParameters(parms);
+ tr16.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr16.setTcSuccess(true);
+ } catch (Exception e) {
+ tr16.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12 */
@@ -281,8 +324,16 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method setRenderParameter(String, String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA7);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, "value");
+ tr24.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr24.setTcSuccess(true);
+ } catch (Exception e) {
+ tr24.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8 */
@@ -322,16 +373,32 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method setRenderParameter(String, String[]): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB4);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, new String[]{"val1-1", "val1-2"});
+ tr29.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr29.setTcSuccess(true);
+ } catch (Exception e) {
+ tr29.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5 */
/* Details: "Method setRenderParameter(String, String[]): Throws */
/* IllegalArgumentException if the values array is null" */
TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB5);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, new String[]{"val1-1", "val1-2"});
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6 */
@@ -357,8 +424,16 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* java.io.Serializable): Throws IllegalArgumentException if the name */
/* is null" */
TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA2);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setEvent((javax.xml.namespace.QName)null, "value");
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA3 */
@@ -401,8 +476,16 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method setEvent(String, java.io.Serializable): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setEvent((javax.xml.namespace.QName)null, "value");
+ tr38.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr38.setTcSuccess(true);
+ } catch (Exception e) {
+ tr38.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr38.appendTcDetail(e.toString());}
tr38.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB3 */
@@ -507,8 +590,16 @@ public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, Reso
/* Details: "Method removePublicRenderParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.removePublicRenderParameter(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
portletReq.getPortletSession().setAttribute(
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
index 28dfb77..bc084aa 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getClass());
+
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setWindowState1 */
/* Details: "Method setWindowState(WindowState): Sets the WindowState */
/* to the specified value" */
@@ -188,16 +190,35 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if the input map is null" */
TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS7);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameters((Map<String, String[]>)null);
+ tr12.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr12.setTcSuccess(true);
+ } catch (Exception e) {
+ tr12.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
tr12.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters8 */
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if any key in the map is null" */
TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS8);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{"val1-1", "val1-2"});
+ parms.put(null, new String[]{"val2-1", "val2-2"});
+ portletResp.setRenderParameters(parms);
+ tr13.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr13.setTcSuccess(true);
+ } catch (Exception e) {
+ tr13.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters9 */
@@ -213,8 +234,19 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method setRenderParameters(java.util.Map): Throws */
/* IllegalArgumentException if the values array for any key is null " */
TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS10);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{"val1-1", "val1-2"});
+ parms.put("parm2", null);
+ portletResp.setRenderParameters(parms);
+ tr15.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr15.setTcSuccess(true);
+ } catch (Exception e) {
+ tr15.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters11 */
@@ -222,8 +254,19 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* IllegalArgumentException if any element in any values array is */
/* null " */
TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERS11);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ try {
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[]{null, "val1-2"});
+ parms.put("parm2", new String[]{"val2-1", "val2-2"});
+ portletResp.setRenderParameters(parms);
+ tr16.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr16.setTcSuccess(true);
+ } catch (Exception e) {
+ tr16.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameters12 */
@@ -287,8 +330,16 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method setRenderParameter(String, String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERA7);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, "value");
+ tr24.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr24.setTcSuccess(true);
+ } catch (Exception e) {
+ tr24.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterA8 */
@@ -328,16 +379,32 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method setRenderParameter(String, String[]): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB4);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, new String[]{"val1-1", "val1-2"});
+ tr29.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr29.setTcSuccess(true);
+ } catch (Exception e) {
+ tr29.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB5 */
/* Details: "Method setRenderParameter(String, String[]): Throws */
/* IllegalArgumentException if the values array is null" */
TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETRENDERPARAMETERB5);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setRenderParameter(null, new String[]{"val1-1", "val1-2"});
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setRenderParameterB6 */
@@ -363,8 +430,16 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* java.io.Serializable): Throws IllegalArgumentException if the name */
/* is null" */
TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTA2);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setEvent((javax.xml.namespace.QName)null, "value");
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventA3 */
@@ -407,8 +482,16 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method setEvent(String, java.io.Serializable): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_SETEVENTB2);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.setEvent((javax.xml.namespace.QName)null, "value");
+ tr38.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr38.setTcSuccess(true);
+ } catch (Exception e) {
+ tr38.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr38.appendTcDetail(e.toString());}
tr38.writeTo(writer);
/* TestCase: V2ResponseTests_StateAwareResponse_ApiEvent_setEventB3 */
@@ -513,8 +596,16 @@ public class ResponseTests_StateAwareResponse_ApiEvent_event implements Portlet,
/* Details: "Method removePublicRenderParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIEVENT_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr51.appendTcDetail("Not implemented.");
+ try {
+ try {
+ portletResp.removePublicRenderParameter(null);
+ tr51.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr51.setTcSuccess(true);
+ } catch (Exception e) {
+ tr51.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr51.appendTcDetail(e.toString());}
tr51.writeTo(writer);
portletReq.getPortletSession().setAttribute(
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
index 8d5dd4f..caaeba9 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/webapp/WEB-INF/portlet.xml
@@ -253,6 +253,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
index b08e2e4..729fc5b 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderActurl.java
@@ -100,6 +100,9 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
// Create result objects for the tests
+ PortletURL url = portletResp.createActionURL();
+ ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterA1 */
/* Details: "Method setParameter(String, String): Sets the parameter */
/* value for the specified name" */
@@ -160,8 +163,17 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.setParameter(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameterB1 */
@@ -224,8 +236,17 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String[]): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.setParameter(null, new String[]{"val1-1", "val1-2"});
+ tr15.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr15.setTcSuccess(true);
+ } catch (Exception e) {
+ tr15.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters1 */
@@ -298,16 +319,33 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the input map is null" */
TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.setParameters((Map<String, String[]>)null);
+ tr24.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr24.setTcSuccess(true);
+ } catch (Exception e) {
+ tr24.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters10 */
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if any key in the map is null" */
TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ tr25.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr25.setTcSuccess(true);
+ } catch (Exception e) {
+ tr25.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr25.appendTcDetail(e.toString());}
tr25.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters11 */
@@ -323,8 +361,16 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the values array for any key is null " */
TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ tr27.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr27.setTcSuccess(true);
+ } catch (Exception e) {
+ tr27.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr27.appendTcDetail(e.toString());}
tr27.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters13 */
@@ -332,8 +378,16 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* IllegalArgumentException if any element in any values array is */
/* null " */
TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ tr28.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr28.setTcSuccess(true);
+ } catch (Exception e) {
+ tr28.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr28.appendTcDetail(e.toString());}
tr28.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setParameters14 */
@@ -490,8 +544,17 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.addProperty(null, "value");
+ tr47.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr47.setTcSuccess(true);
+ } catch (Exception e) {
+ tr47.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr47.appendTcDetail(e.toString());}
tr47.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderActurl_setProperty1 */
@@ -514,8 +577,17 @@ public class URLTests_BaseURL_ApiRenderActurl implements Portlet, ResourceServin
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERACTURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.setProperty(null, "value");
+ tr50.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr50.setTcSuccess(true);
+ } catch (Exception e) {
+ tr50.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr50.appendTcDetail(e.toString());}
tr50.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
index b8d6537..711ae21 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderRenurl.java
@@ -100,6 +100,9 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
// Create result objects for the tests
+ PortletURL url = portletResp.createRenderURL();
+ ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterA1 */
/* Details: "Method setParameter(String, String): Sets the parameter */
/* value for the specified name" */
@@ -160,8 +163,17 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.setParameter(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameterB1 */
@@ -224,8 +236,17 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String[]): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.setParameter(null, new String[]{"val1-1", "val1-2"});
+ tr15.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr15.setTcSuccess(true);
+ } catch (Exception e) {
+ tr15.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters1 */
@@ -298,16 +319,33 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the input map is null" */
TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.setParameters((Map<String, String[]>)null);
+ tr24.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr24.setTcSuccess(true);
+ } catch (Exception e) {
+ tr24.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters10 */
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if any key in the map is null" */
TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ tr25.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr25.setTcSuccess(true);
+ } catch (Exception e) {
+ tr25.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr25.appendTcDetail(e.toString());}
tr25.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters11 */
@@ -323,8 +361,16 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the values array for any key is null " */
TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ tr27.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr27.setTcSuccess(true);
+ } catch (Exception e) {
+ tr27.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr27.appendTcDetail(e.toString());}
tr27.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters13 */
@@ -332,8 +378,16 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* IllegalArgumentException if any element in any values array is */
/* null " */
TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ tr28.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr28.setTcSuccess(true);
+ } catch (Exception e) {
+ tr28.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr28.appendTcDetail(e.toString());}
tr28.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setParameters14 */
@@ -490,8 +544,17 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.addProperty(null, "value");
+ tr47.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr47.setTcSuccess(true);
+ } catch (Exception e) {
+ tr47.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr47.appendTcDetail(e.toString());}
tr47.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderRenurl_setProperty1 */
@@ -514,8 +577,17 @@ public class URLTests_BaseURL_ApiRenderRenurl implements Portlet, ResourceServin
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRENURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.setProperty(null, "value");
+ tr50.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr50.setTcSuccess(true);
+ } catch (Exception e) {
+ tr50.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr50.appendTcDetail(e.toString());}
tr50.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
index 094d044..dcf7c13 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_BaseURL_ApiRenderResurl.java
@@ -100,6 +100,9 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
// Create result objects for the tests
+ ResourceURL url = portletResp.createResourceURL();
+ ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterA1 */
/* Details: "Method setParameter(String, String): Sets the parameter */
/* value for the specified name" */
@@ -160,8 +163,17 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERA8);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ turl.setParameter(null, "value");
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameterB1 */
@@ -224,8 +236,17 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method setParameter(String, String[]): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERB8);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ turl.setParameter(null, new String[]{"val1-1", "val1-2"});
+ tr15.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr15.setTcSuccess(true);
+ } catch (Exception e) {
+ tr15.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
tr15.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters1 */
@@ -298,16 +319,33 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the input map is null" */
TestResult tr24 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS9);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ turl.setParameters((Map<String, String[]>)null);
+ tr24.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr24.setTcSuccess(true);
+ } catch (Exception e) {
+ tr24.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr24.appendTcDetail(e.toString());}
tr24.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters10 */
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if any key in the map is null" */
TestResult tr25 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS10);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ tr25.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr25.setTcSuccess(true);
+ } catch (Exception e) {
+ tr25.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr25.appendTcDetail(e.toString());}
tr25.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters11 */
@@ -323,8 +361,16 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method setParameters(java.util.Map): Throws */
/* IllegalArgumentException if the values array for any key is null " */
TestResult tr27 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS12);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ tr27.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr27.setTcSuccess(true);
+ } catch (Exception e) {
+ tr27.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr27.appendTcDetail(e.toString());}
tr27.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters13 */
@@ -332,8 +378,16 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* IllegalArgumentException if any element in any values array is */
/* null " */
TestResult tr28 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPARAMETERS13);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ tr28.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr28.setTcSuccess(true);
+ } catch (Exception e) {
+ tr28.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr28.appendTcDetail(e.toString());}
tr28.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setParameters14 */
@@ -490,8 +544,17 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method addProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr47 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_ADDPROPERTY3);
- /* TODO: implement test */
- tr47.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ turl.addProperty(null, "value");
+ tr47.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr47.setTcSuccess(true);
+ } catch (Exception e) {
+ tr47.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr47.appendTcDetail(e.toString());}
tr47.writeTo(writer);
/* TestCase: V2URLTests_BaseURL_ApiRenderResurl_setProperty1 */
@@ -514,8 +577,17 @@ public class URLTests_BaseURL_ApiRenderResurl implements Portlet, ResourceServin
/* Details: "Method setProperty(String, String): Throws */
/* IllegalArgumentException if the specified key is null" */
TestResult tr50 = tcd.getTestResultFailed(V2URLTESTS_BASEURL_APIRENDERRESURL_SETPROPERTY3);
- /* TODO: implement test */
- tr50.appendTcDetail("Not implemented.");
+ try {
+ try {
+ ResourceURL turl = portletResp.createResourceURL();
+ turl.setProperty(null, "value");
+ tr50.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr50.setTcSuccess(true);
+ } catch (Exception e) {
+ tr50.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr50.appendTcDetail(e.toString());}
tr50.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
index 974dc9d..df5d823 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
@@ -100,6 +100,8 @@ public class URLTests_PortletURLGenerationListener_ApiRender implements Portlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PortletURLGenerationListener.class);
+
/* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_configuration */
/* Details: "A PortletURLGenerationListener can be configured in the */
/* portlet deployment descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
index 036a9fa..21e887f 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderActurl.java
@@ -100,6 +100,9 @@ public class URLTests_PortletURL_ApiRenderActurl implements Portlet, ResourceSer
// Create result objects for the tests
+ PortletURL url = portletResp.createActionURL();
+ ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_PortletURL_ApiRenderActurl_setWindowState1 */
/* Details: "Method setWindowState(WindowState): Sets the WindowState */
/* to be used when the URL is activated" */
@@ -214,8 +217,17 @@ public class URLTests_PortletURL_ApiRenderActurl implements Portlet, ResourceSer
/* Details: "Method removePublicRenderParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERACTURL_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createActionURL();
+ turl.removePublicRenderParameter(null);
+ tr13.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr13.setTcSuccess(true);
+ } catch (Exception e) {
+ tr13.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
index dceef9d..2571c74 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURL_ApiRenderRenurl.java
@@ -100,6 +100,9 @@ public class URLTests_PortletURL_ApiRenderRenurl implements Portlet, ResourceSer
// Create result objects for the tests
+ PortletURL url = portletResp.createRenderURL();
+ ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_PortletURL_ApiRenderRenurl_setWindowState1 */
/* Details: "Method setWindowState(WindowState): Sets the WindowState */
/* to be used when the URL is activated" */
@@ -214,8 +217,17 @@ public class URLTests_PortletURL_ApiRenderRenurl implements Portlet, ResourceSer
/* Details: "Method removePublicRenderParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURL_APIRENDERRENURL_REMOVEPUBLICRENDERPARAMETER2);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletURL turl = portletResp.createRenderURL();
+ turl.removePublicRenderParameter(null);
+ tr13.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr13.setTcSuccess(true);
+ } catch (Exception e) {
+ tr13.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
tr13.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
index d19da72..55111ad 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_ResourceURL_ApiRenderResurl.java
@@ -100,34 +100,40 @@ public class URLTests_ResourceURL_ApiRenderResurl implements Portlet, ResourceSe
// Create result objects for the tests
+ ResourceURL url = portletResp.createResourceURL(); ClassChecker cc = new ClassChecker(url.getClass());
+
/* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldFULL */
/* Details: "Has String field FULL with value of \"cacheLevelFull\" " */
TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDFULL);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("FULL", "cacheLevelFull"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldPAGE */
/* Details: "Has String field PAGE with value of \"cacheLevelPage\" " */
TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDPAGE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("PAGE", "cacheLevelPage"));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldPORTLET */
/* Details: "Has String field PORTLET with value of */
/* \"cacheLevelPortlet\" " */
TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDPORTLET);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
+ try {
+ tr2.setTcSuccess(cc.hasField("PORTLET", "cacheLevelPortlet"));
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
/* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_fieldSHARED */
/* Details: "Has String field SHARED with value of */
/* \"javax.portlet.shared\" " */
TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_RESOURCEURL_APIRENDERRESURL_FIELDSHARED);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ tr3.setTcSuccess(cc.hasField("SHARED", "javax.portlet.shared"));
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2URLTests_ResourceURL_ApiRenderResurl_implementsBaseURL2 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
index 3a31b14..8522b4f 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
@@ -131,6 +131,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiAction.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiAction.java
new file mode 100644
index 0000000..fe553f9
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiAction.java
@@ -0,0 +1,297 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_ActionRequestWrapper_ApiAction_event
+ *
+ */
+public class WrapperTests_ActionRequestWrapper_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_ActionRequestWrapper_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ ActionRequestWrapperChecker wc = new ActionRequestWrapperChecker(portletReq);
+ ActionRequestWrapper wpr = new ActionRequestWrapper(portletReq);
+ wpr.setRequest(wc);
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ ClassChecker cc = new ClassChecker(ActionRequestWrapper.class);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCHARACTERENCODING);
+ try {
+ Object[] args = {};
+ wc.prepare(tr0, "getCharacterEncoding", args);
+ wc.checkRetval(wpr.getCharacterEncoding());
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getContentLength */
+ /* Details: "Method getContentLength(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTLENGTH);
+ try {
+ Object[] args = {};
+ wc.prepare(tr1, "getContentLength", args);
+ wc.checkRetval(wpr.getContentLength());
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTTYPE);
+ try {
+ Object[] args = {};
+ wc.prepare(tr2, "getContentType", args);
+ wc.checkRetval(wpr.getContentType());
+ } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getPortletInputStream */
+ /* Details: "Method getPortletInputStream(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETPORTLETINPUTSTREAM);
+ try {
+ Object[] args = {};
+ wc.prepare(tr3, "getPortletInputStream", args);
+ wc.checkRetval(wpr.getPortletInputStream());
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getReader */
+ /* Details: "Method getReader(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREADER);
+ try {
+ Object[] args = {};
+ wc.prepare(tr4, "getReader", args);
+ wc.checkRetval(wpr.getReader());
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETCHARACTERENCODING);
+ try {
+ String parm1 = "val1";
+ Object[] args = {parm1};
+ wc.prepare(tr5, "setCharacterEncoding", args);
+ wpr.setCharacterEncoding(parm1);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped ActionRequest */
+ /* object" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREQUEST);
+ try {
+ // The retrieved request / response object should be the wrapper checker instance
+ ActionRequest r = wpr.getRequest();
+ tr6.setTcSuccess(r == wc);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_setRequest */
+ /* Details: "Method setRequest(ActionRequest): Allows wrapped */
+ /* ActionRequest object to be set" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETREQUEST);
+ try {
+ // tested by method set up
+ tr7.setTcSuccess(true);
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETMETHOD);
+ try {
+ Object[] args = {};
+ wc.prepare(tr8, "getMethod", args);
+ wc.checkRetval(wpr.getMethod());
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "WrapperTests_ActionRequestWrapper_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "WrapperTests_ActionRequestWrapper_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "WrapperTests_ActionRequestWrapper_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getCharacterEncoding */
+ /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getCharacterEncoding", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getContentLength */
+ /* Details: "Method getContentLength(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getContentLength", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getContentType */
+ /* Details: "Method getContentType(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getContentType", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getPortletInputStream */
+ /* Details: "Method getPortletInputStream(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getPortletInputStream", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getReader */
+ /* Details: "Method getReader(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getReader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_setCharacterEncoding */
+ /* Details: "Method setCharacterEncoding(String): Calls wrapped */
+ /* method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_setCharacterEncoding", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped ActionRequest */
+ /* object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getRequest", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_setRequest */
+ /* Details: "Method setRequest(ActionRequest): Allows wrapped */
+ /* ActionRequest object to be set" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_setRequest", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiAction_getMethod */
+ /* Details: "Method getMethod(): Calls wrapped method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2WrapperTests_ActionRequestWrapper_ApiAction_getMethod", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
deleted file mode 100644
index 5c55a98..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_ActionRequestWrapper_ApiRender.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_ActionRequestWrapper_ApiRender_event
- *
- */
-public class WrapperTests_ActionRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_ActionRequestWrapper_ApiRender.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getCharacterEncoding */
- /* Details: "Method getCharacterEncoding(): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getContentLength */
- /* Details: "Method getContentLength(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getContentType */
- /* Details: "Method getContentType(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getPortletInputStream */
- /* Details: "Method getPortletInputStream(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getReader */
- /* Details: "Method getReader(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREADER);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_setCharacterEncoding */
- /* Details: "Method setCharacterEncoding(String): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getRequest */
- /* Details: "Method getRequest(): Returns wrapped ActionRequest */
- /* object" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREQUEST);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_setRequest */
- /* Details: "Method setRequest(ActionRequest): Allows wrapped */
- /* ActionRequest object to be set" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETREQUEST);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_ActionRequestWrapper_ApiRender_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETMETHOD);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
-}
[04/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_Render.java
deleted file mode 100644
index 4dd77cf..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventRequestWrapper_Render.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_EventRequestWrapper_Render_event
- *
- */
-public class WrapperTests_EventRequestWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_EventRequestWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_Render_getRequest */
- /* Details: "Method getRequest(): Returns wrapped EventRequest */
- /* object" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETREQUEST);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_Render_setRequest */
- /* Details: "Method setRequest(EventRequest): Allows wrapped */
- /* EventRequest object to be set" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_SETREQUEST);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_Render_getEvent1 */
- /* Details: "Method getEvent(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETEVENT1);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_Render_getEvent2 */
- /* Details: "Method getEvent(): Returns Event object" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETEVENT2);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventRequestWrapper_Render_getMethod */
- /* Details: "Method getMethod(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_RENDER_GETMETHOD);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
new file mode 100644
index 0000000..c5a686a
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_ApiRender.java
@@ -0,0 +1,222 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_EventResponseWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_EventResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_EventResponseWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setEventA */
+ /* Details: "Method setEvent(javax.xml.namespace.QName, */
+ /* java.io.Serializable): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTA);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setEventB */
+ /* Details: "Method setEvent(String, java.io.Serializable): Calls */
+ /* wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTB);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setPortletMode */
+ /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
+ /* method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterA */
+ /* Details: "Method setRenderParameter(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterB */
+ /* Details: "Method setRenderParameter(String, String[]): Calls */
+ /* wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersA */
+ /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSA);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersB */
+ /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
+ /* method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSB);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setWindowState */
+ /* Details: "Method setWindowState(WindowState): Calls wrapped */
+ /* method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped EventResponse */
+ /* obect" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_setResponse */
+ /* Details: "Method setResponse(EventResponse): Allows wrapped */
+ /* EventResponse object to be set" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap1 */
+ /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap2 */
+ /* Details: "Method getRenderParameterMap(): Returns */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_EventResponseWrapper_ApiRender_removePublicRenderParameter */
+ /* Details: "Method removePublicRenderParameter(String): Calls */
+ /* wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_Render.java
deleted file mode 100644
index 4e953e3..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_EventResponseWrapper_Render.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_EventResponseWrapper_Render_event
- *
- */
-public class WrapperTests_EventResponseWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_EventResponseWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setEventA */
- /* Details: "Method setEvent(javax.xml.namespace.QName, */
- /* java.io.Serializable): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETEVENTA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setEventB */
- /* Details: "Method setEvent(String, java.io.Serializable): Calls */
- /* wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETEVENTB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setPortletMode */
- /* Details: "Method setPortletMode(PortletMode): Calls wrapped */
- /* method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETPORTLETMODE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setRenderParameterA */
- /* Details: "Method setRenderParameter(String, String): Calls wrapped */
- /* method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERA);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setRenderParameterB */
- /* Details: "Method setRenderParameter(String, String[]): Calls */
- /* wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERB);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setRenderParametersA */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERSA);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setRenderParametersB */
- /* Details: "Method setRenderParameters(java.util.Map): Calls wrapped */
- /* method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRENDERPARAMETERSB);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setWindowState */
- /* Details: "Method setWindowState(WindowState): Calls wrapped */
- /* method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETWINDOWSTATE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_getResponse */
- /* Details: "Method getResponse(): Returns wrapped EventResponse */
- /* obect" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRESPONSE);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_setResponse */
- /* Details: "Method setResponse(EventResponse): Allows wrapped */
- /* EventResponse object to be set" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_SETRESPONSE);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_getPortletMode */
- /* Details: "Method getPortletMode(): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap1 */
- /* Details: "Method getRenderParameterMap(): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_getRenderParameterMap2 */
- /* Details: "Method getRenderParameterMap(): Returns */
- /* java.util.Map<java.lang.String,java.lang.String[]> object" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETRENDERPARAMETERMAP2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_getWindowState */
- /* Details: "Method getWindowState(): Calls wrapped method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_EventResponseWrapper_Render_removePublicRenderParameter */
- /* Details: "Method removePublicRenderParameter(String): Calls */
- /* wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_RENDER_REMOVEPUBLICRENDERPARAMETER);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
new file mode 100644
index 0000000..5b0259d
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_ApiRender.java
@@ -0,0 +1,391 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_PortletRequestWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_PortletRequestWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_PortletRequestWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAttribute */
+ /* Details: "Method getAttribute(String): Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTE);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAttributeNames */
+ /* Details: "Method getAttributeNames(): Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTENAMES);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getAuthType */
+ /* Details: "Method getAuthType(): Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETAUTHTYPE);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getContextPath */
+ /* Details: "Method getContextPath(): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETCONTEXTPATH);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getCookies */
+ /* Details: "Method getCookies(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETCOOKIES);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getLocale */
+ /* Details: "Method getLocale(): Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETLOCALE);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getLocales */
+ /* Details: "Method getLocales(): Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETLOCALES);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameter */
+ /* Details: "Method getParameter(String): Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETER);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterMap */
+ /* Details: "Method getParameterMap(): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERMAP);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterNames */
+ /* Details: "Method getParameterNames(): Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERNAMES);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getParameterValues */
+ /* Details: "Method getParameterValues(String): Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPARAMETERVALUES);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortalContext */
+ /* Details: "Method getPortalContext(): Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTALCONTEXT);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletMode */
+ /* Details: "Method getPortletMode(): Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionA */
+ /* Details: "Method getPortletSession(): Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETSESSIONA);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPortletSessionB */
+ /* Details: "Method getPortletSession(boolean): Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPORTLETSESSIONB);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPreferences */
+ /* Details: "Method getPreferences(): Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPREFERENCES);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getProperties */
+ /* Details: "Method getProperties(String): Calls wrapped method" */
+ TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTIES);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getProperty */
+ /* Details: "Method getProperty(String): Calls wrapped method" */
+ TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTY);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPropertyNames */
+ /* Details: "Method getPropertyNames(): Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPROPERTYNAMES);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRemoteUser */
+ /* Details: "Method getRemoteUser(): Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREMOTEUSER);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRequestedSessionId */
+ /* Details: "Method getRequestedSessionId(): Calls wrapped method" */
+ TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREQUESTEDSESSIONID);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentType */
+ /* Details: "Method getResponseContentType(): Calls wrapped method" */
+ TestResult tr21 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETRESPONSECONTENTTYPE);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getResponseContentTypes */
+ /* Details: "Method getResponseContentTypes(): Calls wrapped method" */
+ TestResult tr22 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETRESPONSECONTENTTYPES);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getScheme */
+ /* Details: "Method getScheme(): Calls wrapped method" */
+ TestResult tr23 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSCHEME);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getServerName */
+ /* Details: "Method getServerName(): Calls wrapped method" */
+ TestResult tr24 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSERVERNAME);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getServerPort */
+ /* Details: "Method getServerPort(): Calls wrapped method" */
+ TestResult tr25 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETSERVERPORT);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getUserPrincipal */
+ /* Details: "Method getUserPrincipal(): Calls wrapped method" */
+ TestResult tr26 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETUSERPRINCIPAL);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowID */
+ /* Details: "Method getWindowID(): Calls wrapped method" */
+ TestResult tr27 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETWINDOWID);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getWindowState */
+ /* Details: "Method getWindowState(): Calls wrapped method" */
+ TestResult tr28 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isPortletModeAllowed */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Calls wrapped */
+ /* method" */
+ TestResult tr29 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISPORTLETMODEALLOWED);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isRequestedSessionIdValid */
+ /* Details: "Method isRequestedSessionIdValid(): Calls wrapped */
+ /* method" */
+ TestResult tr30 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISREQUESTEDSESSIONIDVALID);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isSecure */
+ /* Details: "Method isSecure(): Calls wrapped method" */
+ TestResult tr31 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISSECURE);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isUserInRole */
+ /* Details: "Method isUserInRole(): Calls wrapped method" */
+ TestResult tr32 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISUSERINROLE);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_isWindowStateAllowed */
+ /* Details: "Method isWindowStateAllowed(WindowState): Calls wrapped */
+ /* method" */
+ TestResult tr33 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISWINDOWSTATEALLOWED);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_removeAttribute */
+ /* Details: "Method removeAttribute(String): Calls wrapped method" */
+ TestResult tr34 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_REMOVEATTRIBUTE);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_setAttribute */
+ /* Details: "Method setAttribute(String, Object): Calls wrapped */
+ /* method" */
+ TestResult tr35 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_SETATTRIBUTE);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getRequest */
+ /* Details: "Method getRequest(): Returns wrapped PortletRequest */
+ /* object" */
+ TestResult tr36 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETREQUEST);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_setRequest */
+ /* Details: "Method setRequest(PortletRequest): Allows wrapped */
+ /* PortletRequest object to be set" */
+ TestResult tr37 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_SETREQUEST);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPrivateParameterMap */
+ /* Details: "Method getPrivateParameterMap(): Calls wrapped method" */
+ TestResult tr38 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPRIVATEPARAMETERMAP);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletRequestWrapper_ApiRender_getPublicParameterMap */
+ /* Details: "Method getPublicParameterMap(): Calls wrapped method" */
+ TestResult tr39 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETPUBLICPARAMETERMAP);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_Render.java
deleted file mode 100644
index 2aa03d1..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletRequestWrapper_Render.java
+++ /dev/null
@@ -1,391 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_PortletRequestWrapper_Render_event
- *
- */
-public class WrapperTests_PortletRequestWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_PortletRequestWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getAttribute */
- /* Details: "Method getAttribute(String): Calls wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETATTRIBUTE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getAttributeNames */
- /* Details: "Method getAttributeNames(): Calls wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETATTRIBUTENAMES);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getAuthType */
- /* Details: "Method getAuthType(): Calls wrapped method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETAUTHTYPE);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getContextPath */
- /* Details: "Method getContextPath(): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETCONTEXTPATH);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getCookies */
- /* Details: "Method getCookies(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETCOOKIES);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getLocale */
- /* Details: "Method getLocale(): Calls wrapped method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETLOCALE);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getLocales */
- /* Details: "Method getLocales(): Calls wrapped method" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETLOCALES);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getParameter */
- /* Details: "Method getParameter(String): Calls wrapped method" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETER);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getParameterMap */
- /* Details: "Method getParameterMap(): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERMAP);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getParameterNames */
- /* Details: "Method getParameterNames(): Calls wrapped method" */
- TestResult tr9 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERNAMES);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getParameterValues */
- /* Details: "Method getParameterValues(String): Calls wrapped method" */
- TestResult tr10 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPARAMETERVALUES);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPortalContext */
- /* Details: "Method getPortalContext(): Calls wrapped method" */
- TestResult tr11 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTALCONTEXT);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPortletMode */
- /* Details: "Method getPortletMode(): Calls wrapped method" */
- TestResult tr12 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETMODE);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionA */
- /* Details: "Method getPortletSession(): Calls wrapped method" */
- TestResult tr13 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETSESSIONA);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPortletSessionB */
- /* Details: "Method getPortletSession(boolean): Calls wrapped method" */
- TestResult tr14 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPORTLETSESSIONB);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPreferences */
- /* Details: "Method getPreferences(): Calls wrapped method" */
- TestResult tr15 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPREFERENCES);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getProperties */
- /* Details: "Method getProperties(String): Calls wrapped method" */
- TestResult tr16 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTIES);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getProperty */
- /* Details: "Method getProperty(String): Calls wrapped method" */
- TestResult tr17 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTY);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPropertyNames */
- /* Details: "Method getPropertyNames(): Calls wrapped method" */
- TestResult tr18 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPROPERTYNAMES);
- /* TODO: implement test */
- tr18.appendTcDetail("Not implemented.");
- tr18.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getRemoteUser */
- /* Details: "Method getRemoteUser(): Calls wrapped method" */
- TestResult tr19 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREMOTEUSER);
- /* TODO: implement test */
- tr19.appendTcDetail("Not implemented.");
- tr19.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getRequestedSessionId */
- /* Details: "Method getRequestedSessionId(): Calls wrapped method" */
- TestResult tr20 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREQUESTEDSESSIONID);
- /* TODO: implement test */
- tr20.appendTcDetail("Not implemented.");
- tr20.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getResponseContentType */
- /* Details: "Method getResponseContentType(): Calls wrapped method" */
- TestResult tr21 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETRESPONSECONTENTTYPE);
- /* TODO: implement test */
- tr21.appendTcDetail("Not implemented.");
- tr21.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getResponseContentTypes */
- /* Details: "Method getResponseContentTypes(): Calls wrapped method" */
- TestResult tr22 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETRESPONSECONTENTTYPES);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
- tr22.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getScheme */
- /* Details: "Method getScheme(): Calls wrapped method" */
- TestResult tr23 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSCHEME);
- /* TODO: implement test */
- tr23.appendTcDetail("Not implemented.");
- tr23.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getServerName */
- /* Details: "Method getServerName(): Calls wrapped method" */
- TestResult tr24 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSERVERNAME);
- /* TODO: implement test */
- tr24.appendTcDetail("Not implemented.");
- tr24.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getServerPort */
- /* Details: "Method getServerPort(): Calls wrapped method" */
- TestResult tr25 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETSERVERPORT);
- /* TODO: implement test */
- tr25.appendTcDetail("Not implemented.");
- tr25.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getUserPrincipal */
- /* Details: "Method getUserPrincipal(): Calls wrapped method" */
- TestResult tr26 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETUSERPRINCIPAL);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
- tr26.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getWindowID */
- /* Details: "Method getWindowID(): Calls wrapped method" */
- TestResult tr27 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETWINDOWID);
- /* TODO: implement test */
- tr27.appendTcDetail("Not implemented.");
- tr27.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getWindowState */
- /* Details: "Method getWindowState(): Calls wrapped method" */
- TestResult tr28 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETWINDOWSTATE);
- /* TODO: implement test */
- tr28.appendTcDetail("Not implemented.");
- tr28.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_isPortletModeAllowed */
- /* Details: "Method isPortletModeAllowed(PortletMode): Calls wrapped */
- /* method" */
- TestResult tr29 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISPORTLETMODEALLOWED);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
- tr29.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_isRequestedSessionIdValid */
- /* Details: "Method isRequestedSessionIdValid(): Calls wrapped */
- /* method" */
- TestResult tr30 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISREQUESTEDSESSIONIDVALID);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
- tr30.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_isSecure */
- /* Details: "Method isSecure(): Calls wrapped method" */
- TestResult tr31 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISSECURE);
- /* TODO: implement test */
- tr31.appendTcDetail("Not implemented.");
- tr31.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_isUserInRole */
- /* Details: "Method isUserInRole(): Calls wrapped method" */
- TestResult tr32 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISUSERINROLE);
- /* TODO: implement test */
- tr32.appendTcDetail("Not implemented.");
- tr32.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_isWindowStateAllowed */
- /* Details: "Method isWindowStateAllowed(WindowState): Calls wrapped */
- /* method" */
- TestResult tr33 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_ISWINDOWSTATEALLOWED);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
- tr33.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_removeAttribute */
- /* Details: "Method removeAttribute(String): Calls wrapped method" */
- TestResult tr34 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_REMOVEATTRIBUTE);
- /* TODO: implement test */
- tr34.appendTcDetail("Not implemented.");
- tr34.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_setAttribute */
- /* Details: "Method setAttribute(String, Object): Calls wrapped */
- /* method" */
- TestResult tr35 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_SETATTRIBUTE);
- /* TODO: implement test */
- tr35.appendTcDetail("Not implemented.");
- tr35.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getRequest */
- /* Details: "Method getRequest(): Returns wrapped PortletRequest */
- /* object" */
- TestResult tr36 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETREQUEST);
- /* TODO: implement test */
- tr36.appendTcDetail("Not implemented.");
- tr36.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_setRequest */
- /* Details: "Method setRequest(PortletRequest): Allows wrapped */
- /* PortletRequest object to be set" */
- TestResult tr37 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_SETREQUEST);
- /* TODO: implement test */
- tr37.appendTcDetail("Not implemented.");
- tr37.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPrivateParameterMap */
- /* Details: "Method getPrivateParameterMap(): Calls wrapped method" */
- TestResult tr38 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPRIVATEPARAMETERMAP);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
- tr38.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletRequestWrapper_Render_getPublicParameterMap */
- /* Details: "Method getPublicParameterMap(): Calls wrapped method" */
- TestResult tr39 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_RENDER_GETPUBLICPARAMETERMAP);
- /* TODO: implement test */
- tr39.appendTcDetail("Not implemented.");
- tr39.writeTo(writer);
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
new file mode 100644
index 0000000..2379bb4
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_ApiRender.java
@@ -0,0 +1,174 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet WrapperTests_PortletResponseWrapper_ApiRender_event
+ *
+ */
+public class WrapperTests_PortletResponseWrapper_ApiRender implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ WrapperTests_PortletResponseWrapper_ApiRender.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyA */
+ /* Details: "Method addProperty(javax.servlet.http.Cookie): Calls */
+ /* wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYA);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyB */
+ /* Details: "Method addProperty(String, org.w3c.dom.Element): Calls */
+ /* wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYB);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_addPropertyC */
+ /* Details: "Method addProperty(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ADDPROPERTYC);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_encodeURL */
+ /* Details: "Method encodeURL(String): Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_ENCODEURL);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_getNamespace */
+ /* Details: "Method getNamespace(): Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_GETNAMESPACE);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_setProperty */
+ /* Details: "Method setProperty(String, String): Calls wrapped */
+ /* method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_SETPROPERTY);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_getResponse */
+ /* Details: "Method getResponse(): Returns wrapped PortletResponse */
+ /* object" */
+ TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_GETRESPONSE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_setResponse */
+ /* Details: "Method setResponse(PortletResponse): Allows wrapped */
+ /* PortletResponse object to be set" */
+ TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_SETRESPONSE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2WrapperTests_PortletResponseWrapper_ApiRender_createElement */
+ /* Details: "Method createElement(String): Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_APIRENDER_CREATEELEMENT);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_Render.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_Render.java
deleted file mode 100644
index 86f571d..0000000
--- a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/portlets/WrapperTests_PortletResponseWrapper_Render.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet WrapperTests_PortletResponseWrapper_Render_event
- *
- */
-public class WrapperTests_PortletResponseWrapper_Render implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- WrapperTests_PortletResponseWrapper_Render.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_addPropertyA */
- /* Details: "Method addProperty(javax.servlet.http.Cookie): Calls */
- /* wrapped method" */
- TestResult tr0 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYA);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_addPropertyB */
- /* Details: "Method addProperty(String, org.w3c.dom.Element): Calls */
- /* wrapped method" */
- TestResult tr1 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYB);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_addPropertyC */
- /* Details: "Method addProperty(String, String): Calls wrapped */
- /* method" */
- TestResult tr2 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ADDPROPERTYC);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_encodeURL */
- /* Details: "Method encodeURL(String): Calls wrapped method" */
- TestResult tr3 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_ENCODEURL);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_getNamespace */
- /* Details: "Method getNamespace(): Calls wrapped method" */
- TestResult tr4 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_GETNAMESPACE);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_setProperty */
- /* Details: "Method setProperty(String, String): Calls wrapped */
- /* method" */
- TestResult tr5 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_SETPROPERTY);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_getResponse */
- /* Details: "Method getResponse(): Returns wrapped PortletResponse */
- /* object" */
- TestResult tr6 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_GETRESPONSE);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_setResponse */
- /* Details: "Method setResponse(PortletResponse): Allows wrapped */
- /* PortletResponse object to be set" */
- TestResult tr7 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_SETRESPONSE);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2WrapperTests_PortletResponseWrapper_Render_createElement */
- /* Details: "Method createElement(String): Calls wrapped method" */
- TestResult tr8 = tcd.getTestResultFailed(V2WRAPPERTESTS_PORTLETRESPONSEWRAPPER_RENDER_CREATEELEMENT);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- }
-
-}
[31/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
index 075ca81..527db9d 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,98 +20,98 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API PortletTests test case names and page mappings -->
-<entry key="V2PortletTests_PortletConfig_Render_getPortletName">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getPortletContext">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getResourceBundle">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getInitParameter1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getInitParameter3">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getInitParameterNames1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getPublicRenderParameterNames1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getDefaultNamespace1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getPublishingEventQNames1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getProcessingEventQNames1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getSupportedLocales1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions3">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render_getContainerRuntimeOptions4">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getInitParameter2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getInitParameterNames2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getPublicRenderParameterNames2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getDefaultNamespace2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getPublishingEventQNames2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getProcessingEventQNames2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletConfig_Render2_getSupportedLocales2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_constructor1">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_constructor2">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_fieldEDIT">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_fieldHELP">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_fieldVIEW">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_toString">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_hashCode">V2PortletTests</entry>
-<entry key="V2PortletTests_PortletMode_Render_equals">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_constructor1">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_constructor2">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_fieldMAXIMIZED">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_fieldMINIMIZED">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_fieldNORMAL">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_toString">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_hashCode">V2PortletTests</entry>
-<entry key="V2PortletTests_WindowState_Render_equals">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_Render_init1">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_Render_init2">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_Render_render1">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_Render_render2">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_Action_processAction">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getQName1">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getQName2">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getName1">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getName2">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getValue1">V2PortletTests</entry>
-<entry key="V2PortletTests_Event_Event_getValue2">V2PortletTests</entry>
-<entry key="V2PortletTests_EventPortlet_Event_processEvent">V2PortletTests</entry>
-<entry key="V2PortletTests_ResourceServingPortlet_Resource_serveResource">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_initA">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_initB">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processAction1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processAction2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processAction3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render4">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render5">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render6">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render7">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render8">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render9">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_render10">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getTitle1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getTitle2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getTitle3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch4">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch5">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch6">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doDispatch7">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doView1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doView2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doEdit1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doEdit2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doHelp1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doHelp2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getPortletConfig">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_destroy">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_serveResource1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_serveResource2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_serveResource3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processEvent1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processEvent2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_processEvent3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doHeaders1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_doHeaders2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getNextPossiblePortletModes1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_Render_getNextPossiblePortletModes2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getPortletName">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getPortletContext">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getResourceBundle">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getInitParameter1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getInitParameter3">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getInitParameterNames1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getPublicRenderParameterNames1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getDefaultNamespace1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getPublishingEventQNames1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getProcessingEventQNames1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getSupportedLocales1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions3">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions4">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getInitParameter2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getInitParameterNames2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getPublicRenderParameterNames2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getDefaultNamespace2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getPublishingEventQNames2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getProcessingEventQNames2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletConfig_ApiRender2_getSupportedLocales2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_constructor1">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_constructor2">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_fieldEDIT">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_fieldHELP">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_fieldVIEW">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_toString">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_hashCode">V2PortletTests</entry>
+<entry key="V2PortletTests_PortletMode_ApiRender_equals">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_constructor1">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_constructor2">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_fieldMAXIMIZED">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_fieldMINIMIZED">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_fieldNORMAL">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_toString">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_hashCode">V2PortletTests</entry>
+<entry key="V2PortletTests_WindowState_ApiRender_equals">V2PortletTests</entry>
+<entry key="V2PortletTests_Portlet_ApiRender_init1">V2PortletTests</entry>
+<entry key="V2PortletTests_Portlet_ApiRender_init2">V2PortletTests</entry>
+<entry key="V2PortletTests_Portlet_ApiRender_render1">V2PortletTests</entry>
+<entry key="V2PortletTests_Portlet_ApiRender_render2">V2PortletTests</entry>
+<entry key="V2PortletTests_Portlet_ApiAction_processAction">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getQName1">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getQName2">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getName1">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getName2">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getValue1">V2PortletTests</entry>
+<entry key="V2PortletTests_Event_ApiEvent_getValue2">V2PortletTests</entry>
+<entry key="V2PortletTests_EventPortlet_ApiEvent_processEvent">V2PortletTests</entry>
+<entry key="V2PortletTests_ResourceServingPortlet_ApiResource_serveResource">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_initA">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_initB">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processAction1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processAction2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processAction3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render4">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render5">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render6">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render7">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render8">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render9">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_render10">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch4">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch5">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch6">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch7">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doView1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doView2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doEdit1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doEdit2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doHelp1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doHelp2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getPortletConfig">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_destroy">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent3">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doHeaders1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_doHeaders2">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes1">V2PortletTests</entry>
+<entry key="V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes2">V2PortletTests</entry>
</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
index 1107769..8935b43 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2PortletTests/src/main/webapp/WEB-INF/portlet.xml
@@ -23,225 +23,227 @@
xmlns:tck="http://www.apache.org/portals/pluto/portlet-tck_3.0"
version="2.0" id="V2PortletTests">
<portlet>
- <portlet-name>PortletTests_PortletConfig_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletConfig_Render</portlet-class>
+ <portlet-name>PortletTests_PortletConfig_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletConfig_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_PortletConfig_Render</title>
+ <title>PortletTests_PortletConfig_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_PortletConfig_Render2</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletConfig_Render2</portlet-class>
+ <portlet-name>PortletTests_PortletConfig_ApiRender2</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletConfig_ApiRender2</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_PortletConfig_Render2</title>
+ <title>PortletTests_PortletConfig_ApiRender2</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_PortletMode_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletMode_Render</portlet-class>
+ <portlet-name>PortletTests_PortletMode_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_PortletMode_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_PortletMode_Render</title>
+ <title>PortletTests_PortletMode_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_WindowState_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_WindowState_Render</portlet-class>
+ <portlet-name>PortletTests_WindowState_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_WindowState_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_WindowState_Render</title>
+ <title>PortletTests_WindowState_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_Portlet_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_Portlet_Render</portlet-class>
+ <portlet-name>PortletTests_Portlet_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_Portlet_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_Portlet_Render</title>
+ <title>PortletTests_Portlet_ApiRender</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_Portlet_Action</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_Portlet_Action</portlet-class>
+ <portlet-name>PortletTests_Portlet_ApiAction</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_Portlet_ApiAction</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_Portlet_Action</title>
+ <title>PortletTests_Portlet_ApiAction</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_Event_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_Event_Event</portlet-class>
+ <portlet-name>PortletTests_Event_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_Event_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_Event_Event</title>
+ <title>PortletTests_Event_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:PortletTests_Event_Event</qname>
+ <qname>tck:PortletTests_Event_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>PortletTests_Event_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_Event_Event_event</portlet-class>
+ <portlet-name>PortletTests_Event_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_Event_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_Event_Event_event</title>
+ <title>PortletTests_Event_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:PortletTests_Event_Event</qname>
+ <qname>tck:PortletTests_Event_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>PortletTests_EventPortlet_Event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_EventPortlet_Event</portlet-class>
+ <portlet-name>PortletTests_EventPortlet_ApiEvent</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_EventPortlet_ApiEvent</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_EventPortlet_Event</title>
+ <title>PortletTests_EventPortlet_ApiEvent</title>
</portlet-info>
<supported-publishing-event>
- <qname>tck:PortletTests_EventPortlet_Event</qname>
+ <qname>tck:PortletTests_EventPortlet_ApiEvent</qname>
</supported-publishing-event>
</portlet>
<portlet>
- <portlet-name>PortletTests_EventPortlet_Event_event</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_EventPortlet_Event_event</portlet-class>
+ <portlet-name>PortletTests_EventPortlet_ApiEvent_event</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_EventPortlet_ApiEvent_event</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_EventPortlet_Event_event</title>
+ <title>PortletTests_EventPortlet_ApiEvent_event</title>
</portlet-info>
<supported-processing-event>
- <qname>tck:PortletTests_EventPortlet_Event</qname>
+ <qname>tck:PortletTests_EventPortlet_ApiEvent</qname>
</supported-processing-event>
</portlet>
<portlet>
- <portlet-name>PortletTests_ResourceServingPortlet_Resource</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_ResourceServingPortlet_Resource</portlet-class>
+ <portlet-name>PortletTests_ResourceServingPortlet_ApiResource</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_ResourceServingPortlet_ApiResource</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_ResourceServingPortlet_Resource</title>
+ <title>PortletTests_ResourceServingPortlet_ApiResource</title>
</portlet-info>
</portlet>
<portlet>
- <portlet-name>PortletTests_GenericPortlet_Render</portlet-name>
- <portlet-class>javax.portlet.tck.portlets.PortletTests_GenericPortlet_Render</portlet-class>
+ <portlet-name>PortletTests_GenericPortlet_ApiRender</portlet-name>
+ <portlet-class>javax.portlet.tck.portlets.PortletTests_GenericPortlet_ApiRender</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en_US</supported-locale>
<portlet-info>
- <title>PortletTests_GenericPortlet_Render</title>
+ <title>PortletTests_GenericPortlet_ApiRender</title>
</portlet-info>
</portlet>
+
+
<event-definition>
- <qname>tck:FilterTests_FilterChain_EventFilter</qname>
+ <qname>tck:FilterTests_FilterChain_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_PortletFilter_EventFilter</qname>
+ <qname>tck:FilterTests_PortletFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:FilterTests_EventFilter_EventFilter</qname>
+ <qname>tck:FilterTests_EventFilter_ApiEventFilter</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_PortletRequest_Event</qname>
+ <qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:RequestTests_EventRequest_Event</qname>
+ <qname>tck:RequestTests_EventRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_PortletResponse_Event</qname>
+ <qname>tck:ResponseTests_PortletResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_StateAwareResponse_Event</qname>
+ <qname>tck:ResponseTests_StateAwareResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:ResponseTests_EventResponse_Event</qname>
+ <qname>tck:ResponseTests_EventResponse_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:AnnotationTests_ProcessEvent_Event</qname>
+ <qname>tck:AnnotationTests_ProcessEvent_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:PortletTests_Event_Event</qname>
+ <qname>tck:PortletTests_Event_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
- <qname>tck:PortletTests_EventPortlet_Event</qname>
+ <qname>tck:PortletTests_EventPortlet_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_Action.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_Action.java
deleted file mode 100644
index 92389f4..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_Action.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_ActionRequest_Action_event
- *
- */
-public class RequestTests_ActionRequest_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ActionRequest_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_ActionRequest_Action_fieldACTION_NAME */
- /* Details: "Has String field ACTION_NAME with value of */
- /* \"javax.portlet.action\" " */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_ACTIONREQUEST_ACTION_FIELDACTION_NAME);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2RequestTests_ActionRequest_Action_fieldACTION_NAME */
- /* Details: "Has String field ACTION_NAME with value of */
- /* \"javax.portlet.action\" " */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ActionRequest_Action_fieldACTION_NAME", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
new file mode 100644
index 0000000..7784385
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
@@ -0,0 +1,133 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_ActionRequest_ApiAction_event
+ *
+ */
+public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_ActionRequest_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_ActionRequest_ApiAction_fieldACTION_NAME */
+ /* Details: "Has String field ACTION_NAME with value of */
+ /* \"javax.portlet.action\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_ACTIONREQUEST_APIACTION_FIELDACTION_NAME);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_ActionRequest_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2RequestTests_ActionRequest_ApiAction_fieldACTION_NAME */
+ /* Details: "Has String field ACTION_NAME with value of */
+ /* \"javax.portlet.action\" " */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ActionRequest_ApiAction_fieldACTION_NAME", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Action.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Action.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Action.java
deleted file mode 100644
index 87d04d5..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Action.java
+++ /dev/null
@@ -1,453 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_ClientDataRequest_Action_event
- *
- */
-public class RequestTests_ClientDataRequest_Action implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ClientDataRequest_Action.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream1 */
- /* Details: "Method getPortletInputStream(): Returns an InputStream */
- /* object" */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETPORTLETINPUTSTREAM1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream2 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if getReader was already called" */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETPORTLETINPUTSTREAM2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream3 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if the request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETPORTLETINPUTSTREAM3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding1 */
- /* Details: "Method setCharacterEncoding(String): Allows the */
- /* character encoding for the body of the request to be overridden" */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_SETCHARACTERENCODING1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding2 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after reading request */
- /* parameters" */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_SETCHARACTERENCODING2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding3 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after using the */
- /* getReader(): method" */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_SETCHARACTERENCODING3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding4 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* UnsupportedEncodingException if the specified encoding is not */
- /* valid" */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_SETCHARACTERENCODING4);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader1 */
- /* Details: "Method getReader(): Returns a BufferedReader object for */
- /* reading the request" */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETREADER1);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader2 */
- /* Details: "Method getReader(): Throws IllegalStateException if */
- /* getPortletInputStream was already called" */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETREADER2);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader3 */
- /* Details: "Method getReader(): Throws IllegalStateException if the */
- /* request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETREADER3);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader5 */
- /* Details: "Method getReader(): Throws UnsupportedEncodingException */
- /* if the character set encoding is not valid so that the text cannot */
- /* be decoded" */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETREADER5);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getCharacterEncoding1 */
- /* Details: "Method getCharacterEncoding(): Returns a String */
- /* containing the name of the character encoding used in the request */
- /* body" */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCHARACTERENCODING1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getCharacterEncoding2 */
- /* Details: "Method getCharacterEncoding(): Returns null if the */
- /* request does not specify a character encoding" */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCHARACTERENCODING2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentType1 */
- /* Details: "Method getContentType(): Returns a String containing the */
- /* MIME type of the request body" */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCONTENTTYPE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentType2 */
- /* Details: "Method getContentType(): Returns null if the MIME type */
- /* is unknown" */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCONTENTTYPE2);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentLength1 */
- /* Details: "Method getContentLength(): Returns the length in bytes */
- /* of the request body" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCONTENTLENGTH1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentLength2 */
- /* Details: "Method getContentLength(): Returns -1 if the length is */
- /* unknown" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETCONTENTLENGTH2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getMethod */
- /* Details: "Method getMethod(): Returns a String containing the name */
- /* of the HTTP method with which the request was made" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_ACTION_GETMETHOD);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_Action",
- writer.toString(), APPLICATION_SCOPE);
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- PortletSession ps = portletReq.getPortletSession();
- String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_Action", APPLICATION_SCOPE);
- if (msg != null) {
- writer.write("<p>" + msg + "</p><br/>\n");
- ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_Action", APPLICATION_SCOPE);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream1 */
- /* Details: "Method getPortletInputStream(): Returns an InputStream */
- /* object" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getPortletInputStream1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream2 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if getReader was already called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getPortletInputStream2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getPortletInputStream3 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if the request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getPortletInputStream3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding1 */
- /* Details: "Method setCharacterEncoding(String): Allows the */
- /* character encoding for the body of the request to be overridden" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_setCharacterEncoding1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding2 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after reading request */
- /* parameters" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_setCharacterEncoding2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding3 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after using the */
- /* getReader(): method" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_setCharacterEncoding3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_setCharacterEncoding4 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* UnsupportedEncodingException if the specified encoding is not */
- /* valid" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_setCharacterEncoding4", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader1 */
- /* Details: "Method getReader(): Returns a BufferedReader object for */
- /* reading the request" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getReader1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader2 */
- /* Details: "Method getReader(): Throws IllegalStateException if */
- /* getPortletInputStream was already called" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getReader2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader3 */
- /* Details: "Method getReader(): Throws IllegalStateException if the */
- /* request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getReader3", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getReader5 */
- /* Details: "Method getReader(): Throws UnsupportedEncodingException */
- /* if the character set encoding is not valid so that the text cannot */
- /* be decoded" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getReader5", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getCharacterEncoding1 */
- /* Details: "Method getCharacterEncoding(): Returns a String */
- /* containing the name of the character encoding used in the request */
- /* body" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getCharacterEncoding1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getCharacterEncoding2 */
- /* Details: "Method getCharacterEncoding(): Returns null if the */
- /* request does not specify a character encoding" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getCharacterEncoding2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentType1 */
- /* Details: "Method getContentType(): Returns a String containing the */
- /* MIME type of the request body" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getContentType1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentType2 */
- /* Details: "Method getContentType(): Returns null if the MIME type */
- /* is unknown" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getContentType2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentLength1 */
- /* Details: "Method getContentLength(): Returns the length in bytes */
- /* of the request body" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getContentLength1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getContentLength2 */
- /* Details: "Method getContentLength(): Returns -1 if the length is */
- /* unknown" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getContentLength2", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_ClientDataRequest_Action_getMethod */
- /* Details: "Method getMethod(): Returns a String containing the name */
- /* of the HTTP method with which the request was made" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_Action_getMethod", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
[57/63] [abbrv] git commit: Completed rework of the tests derived
from the API documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
Completed rework of the tests derived from the API documentation.
Implemented some of the test cases:
* Implemented all of the wrapper tests
* Implemented tests that static fields have the specified value
* Implemented all tests where a null value will cause an
IllegalArgumentException
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/2f638d7a
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/2f638d7a
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/2f638d7a
Branch: refs/heads/master
Commit: 2f638d7ae7806c51804fd7c9837f890a8ecdbdfa
Parents: db1071e
Author: Scott Nicklous <ms...@apache.org>
Authored: Mon Sep 1 15:16:58 2014 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Mon Sep 1 15:16:58 2014 +0200
----------------------------------------------------------------------
...AnnotationTests_ProcessAction_ApiAction.java | 2 +
...tationTests_ProcessEvent_ApiEvent_event.java | 2 +
.../AnnotationTests_RenderMode_ApiRender.java | 2 +
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
...EnvironmentTests_CacheControl_ApiRender.java | 2 +
...vironmentTests_CacheControl_ApiResource.java | 2 +
...nvironmentTests_PortalContext_ApiRender.java | 20 +-
...vironmentTests_PortletContext_ApiRender.java | 54 +-
...nmentTests_PortletPreferences_ApiAction.java | 139 +++--
...onmentTests_PortletPreferences_ApiEvent.java | 30 +-
...Tests_PortletPreferences_ApiEvent_event.java | 109 +++-
...nmentTests_PortletPreferences_ApiRender.java | 62 +-
...entTests_PortletPreferences_ApiResource.java | 109 +++-
...ests_PortletRequestDispatcher_ApiRender.java | 4 +
...nmentTests_PortletSessionUtil_ApiRender.java | 2 +
...vironmentTests_PortletSession_ApiRender.java | 90 ++-
...entTests_PreferencesValidator_ApiAction.java | 2 +
...sts_PreferencesValidator_ApiEvent_event.java | 2 +
...tTests_PreferencesValidator_ApiResource.java | 2 +
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
...ionTests_PortletModeException_ApiRender.java | 2 +
...ionTests_UnavailableException_ApiRender.java | 2 +
...ptionTests_ValidatorException_ApiRender.java | 2 +
...ionTests_WindowStateException_ApiRender.java | 2 +
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
...sts_ActionFilter_ApiActionFilter_filter.java | 2 +
...Tests_EventFilter_ApiEventFilter_filter.java | 2 +
...ts_PortletFilter_ApiActionFilter_filter.java | 2 +
...sts_PortletFilter_ApiEventFilter_filter.java | 2 +
...ts_PortletFilter_ApiRenderFilter_filter.java | 2 +
..._PortletFilter_ApiResourceFilter_filter.java | 2 +
...sts_RenderFilter_ApiRenderFilter_filter.java | 2 +
...ResourceFilter_ApiResourceFilter_filter.java | 2 +
...ortletTests_EventPortlet_ApiEvent_event.java | 2 +
.../PortletTests_Event_ApiEvent_event.java | 2 +
.../PortletTests_GenericPortlet_ApiRender.java | 2 +
.../PortletTests_PortletConfig_ApiRender.java | 14 +-
.../PortletTests_PortletConfig_ApiRender2.java | 2 +
.../PortletTests_PortletMode_ApiRender.java | 17 +-
.../PortletTests_Portlet_ApiAction.java | 2 +
.../PortletTests_Portlet_ApiRender.java | 2 +
...ests_ResourceServingPortlet_ApiResource.java | 2 +
.../PortletTests_WindowState_ApiRender.java | 17 +-
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
.../RequestTests_ActionRequest_ApiAction.java | 7 +-
...equestTests_ClientDataRequest_ApiAction.java | 2 +
...uestTests_ClientDataRequest_ApiResource.java | 2 +
...equestTests_EventRequest_ApiEvent_event.java | 2 +
.../RequestTests_PortletRequest_ApiAction.java | 161 ++++--
...uestTests_PortletRequest_ApiEvent_event.java | 161 ++++--
.../RequestTests_PortletRequest_ApiRender.java | 161 ++++--
...RequestTests_PortletRequest_ApiResource.java | 161 ++++--
.../RequestTests_RenderRequest_ApiRender.java | 7 +-
...equestTests_ResourceRequest_ApiResource.java | 7 +-
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
.../ResponseTests_ActionResponse_ApiAction.java | 2 +
.../ResponseTests_EventResponse_ApiEvent.java | 4 +-
...ponseTests_EventResponse_ApiEvent_event.java | 18 +-
.../ResponseTests_MimeResponse_ApiRender.java | 42 +-
.../ResponseTests_MimeResponse_ApiResource.java | 42 +-
...ResponseTests_PortletResponse_ApiAction.java | 51 +-
...nseTests_PortletResponse_ApiEvent_event.java | 51 +-
...ResponseTests_PortletResponse_ApiRender.java | 51 +-
...sponseTests_PortletResponse_ApiResource.java | 51 +-
.../ResponseTests_RenderResponse_ApiRender.java | 2 +
...ponseTests_ResourceResponse_ApiResource.java | 31 +-
...ponseTests_StateAwareResponse_ApiAction.java | 131 ++++-
...Tests_StateAwareResponse_ApiEvent_event.java | 131 ++++-
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
.../URLTests_BaseURL_ApiRenderActurl.java | 104 +++-
.../URLTests_BaseURL_ApiRenderRenurl.java | 104 +++-
.../URLTests_BaseURL_ApiRenderResurl.java | 104 +++-
..._PortletURLGenerationListener_ApiRender.java | 2 +
.../URLTests_PortletURL_ApiRenderActurl.java | 16 +-
.../URLTests_PortletURL_ApiRenderRenurl.java | 16 +-
.../URLTests_ResourceURL_ApiRenderResurl.java | 22 +-
.../src/main/webapp/WEB-INF/portlet.xml | 10 +
...perTests_ActionRequestWrapper_ApiAction.java | 297 ++++++++++
...perTests_ActionRequestWrapper_ApiRender.java | 171 ------
...erTests_ActionResponseWrapper_ApiAction.java | 443 +++++++++++++++
...erTests_ActionResponseWrapper_ApiRender.java | 229 --------
...apperTests_EventRequestWrapper_ApiEvent.java | 142 +++++
...ests_EventRequestWrapper_ApiEvent_event.java | 155 +++++
...pperTests_EventRequestWrapper_ApiRender.java | 142 -----
...pperTests_EventResponseWrapper_ApiEvent.java | 241 ++++++++
...sts_EventResponseWrapper_ApiEvent_event.java | 277 +++++++++
...perTests_EventResponseWrapper_ApiRender.java | 222 --------
...erTests_PortletRequestWrapper_ApiRender.java | 298 +++++++---
...rTests_PortletResponseWrapper_ApiRender.java | 76 ++-
...perTests_RenderRequestWrapper_ApiRender.java | 25 +-
...erTests_RenderResponseWrapper_ApiRender.java | 152 +++--
...rTests_ResourceRequestWrapper_ApiRender.java | 200 -------
...ests_ResourceRequestWrapper_ApiResource.java | 259 +++++++++
...Tests_ResourceResponseWrapper_ApiRender.java | 255 ---------
...sts_ResourceResponseWrapper_ApiResource.java | 342 +++++++++++
.../resources/xml-resources/additionalTCs.xml | 155 +++--
.../src/main/webapp/WEB-INF/portlet.xml | 84 ++-
.../tck/beans/ActionRequestWrapperChecker.java | 524 +++++++++++++++++
.../tck/beans/ActionResponseWrapperChecker.java | 244 ++++++++
.../javax/portlet/tck/beans/ClassChecker.java | 66 +++
.../tck/beans/EventRequestWrapperChecker.java | 473 +++++++++++++++
.../tck/beans/EventResponseWrapperChecker.java | 236 ++++++++
.../tck/beans/JSR286ApiTestCaseDetails.java | 370 ++++++------
.../tck/beans/PortletRequestWrapperChecker.java | 452 +++++++++++++++
.../beans/PortletResponseWrapperChecker.java | 121 ++++
.../tck/beans/RenderRequestWrapperChecker.java | 462 +++++++++++++++
.../tck/beans/RenderResponseWrapperChecker.java | 293 ++++++++++
.../beans/ResourceRequestWrapperChecker.java | 568 +++++++++++++++++++
.../beans/ResourceResponseWrapperChecker.java | 302 ++++++++++
.../javax/portlet/tck/beans/WrapperChecker.java | 90 +++
110 files changed, 8625 insertions(+), 2178 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
index a172fc8..2d41b98 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessAction_ApiAction.java
@@ -76,6 +76,8 @@ public class AnnotationTests_ProcessAction_ApiAction implements Portlet, Resourc
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.ProcessAction.class);
+
/* TestCase: V2AnnotationTests_ProcessAction_ApiAction_name */
/* Details: "Method name(): On an action request, the method is */
/* executed if the parameter \"javax.portlet.action\" matches the */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
index 4aeb885..410a183 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_ProcessEvent_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class AnnotationTests_ProcessEvent_ApiEvent_event implements Portlet, Eve
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.ProcessEvent.class);
+
/* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_qname */
/* Details: "Method qname(): On an event request, the method is */
/* executed if the Event qname matches the qname field" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
index ce94925..07c1983 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/java/javax/portlet/tck/portlets/AnnotationTests_RenderMode_ApiRender.java
@@ -100,6 +100,8 @@ public class AnnotationTests_RenderMode_ApiRender implements Portlet, ResourceSe
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.RenderMode.class);
+
/* TestCase: V2AnnotationTests_RenderMode_ApiRender_name */
/* Details: "Method name(): On a render request, the method is */
/* executed if the portlet mode matches the name field" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
index cebfa93..d5dac0d 100644
--- a/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2AnnotationTests/src/main/webapp/WEB-INF/portlet.xml
@@ -98,6 +98,16 @@
</event-definition>
<event-definition>
+ <qname>tck:WrapperTests_EventRequestWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname>tck:WrapperTests_EventResponseWrapper_ApiEvent</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
<qname>tck:RequestTests_PortletRequest_ApiEvent</qname>
<value-type>java.lang.String</value-type>
</event-definition>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
index 0e13766..6400596 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiRender.java
@@ -100,6 +100,8 @@ public class EnvironmentTests_CacheControl_ApiRender implements Portlet, Resourc
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getCacheControl().getClass());
+
/* TestCase: V2EnvironmentTests_CacheControl_ApiRender_getExpirationTime1 */
/* Details: "Method getExpirationTime(): Returns the expiration time */
/* set through setExpirationTime" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
index 5314bd4..af3dc9f 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_CacheControl_ApiResource.java
@@ -88,6 +88,8 @@ public class EnvironmentTests_CacheControl_ApiResource implements Portlet, Resou
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletResp.getCacheControl().getClass());
+
/* TestCase: V2EnvironmentTests_CacheControl_ApiResource_getExpirationTime1 */
/* Details: "Method getExpirationTime(): Returns the expiration time */
/* set through setExpirationTime" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
index 34aa004..0f546a4 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortalContext_ApiRender.java
@@ -100,12 +100,15 @@ public class EnvironmentTests_PortalContext_ApiRender implements Portlet, Resour
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPortalContext().getClass());
+
/* TestCase: V2EnvironmentTests_PortalContext_ApiRender_fieldMARKUP_HEAD_ELEMENT_SUPPORT */
/* Details: "Has String field MARKUP_HEAD_ELEMENT_SUPPORT with value */
/* of \"javax.portlet.markup.head.element.support\" " */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_FIELDMARKUP_HEAD_ELEMENT_SUPPORT);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("MARKUP_HEAD_ELEMENT_SUPPORT", "javax.portlet.markup.head.element.support"));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getProperty1 */
@@ -128,8 +131,17 @@ public class EnvironmentTests_PortalContext_ApiRender implements Portlet, Resour
/* Details: "Method getProperty(String): Throws */
/* IllegalArgumentException if the specified name is null " */
TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTALCONTEXT_APIRENDER_GETPROPERTY3);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortalContext cntxt = portletReq.getPortalContext();
+ String val = cntxt.getProperty(null);
+ tr3.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr3.setTcSuccess(true);
+ } catch (Exception e) {
+ tr3.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortalContext_ApiRender_getPropertyNames1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
index 68b7064..de3eaeb 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
@@ -100,6 +100,8 @@ public class EnvironmentTests_PortletContext_ApiRender implements Portlet, Resou
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletConfig.getPortletContext().getClass());
+
/* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo1 */
/* Details: "Method getServerInfo(): Returns a String containing */
/* information about the portlet container" */
@@ -375,8 +377,17 @@ public class EnvironmentTests_PortletContext_ApiRender implements Portlet, Resou
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE3);
- /* TODO: implement test */
- tr33.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletContext cntxt = portletConfig.getPortletContext();
+ Object val = cntxt.getAttribute(null);
+ tr33.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr33.setTcSuccess(true);
+ } catch (Exception e) {
+ tr33.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr33.appendTcDetail(e.toString());}
tr33.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames1 */
@@ -417,8 +428,17 @@ public class EnvironmentTests_PortletContext_ApiRender implements Portlet, Resou
/* Details: "Method getInitParameter(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER3);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletContext cntxt = portletConfig.getPortletContext();
+ String val = cntxt.getInitParameter(null);
+ tr38.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr38.setTcSuccess(true);
+ } catch (Exception e) {
+ tr38.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr38.appendTcDetail(e.toString());}
tr38.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames1 */
@@ -466,8 +486,17 @@ public class EnvironmentTests_PortletContext_ApiRender implements Portlet, Resou
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_REMOVEATTRIBUTE2);
- /* TODO: implement test */
- tr44.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletContext cntxt = portletConfig.getPortletContext();
+ cntxt.removeAttribute(null);
+ tr44.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr44.setTcSuccess(true);
+ } catch (Exception e) {
+ tr44.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr44.appendTcDetail(e.toString());}
tr44.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute1 */
@@ -498,8 +527,17 @@ public class EnvironmentTests_PortletContext_ApiRender implements Portlet, Resou
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE4);
- /* TODO: implement test */
- tr48.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletContext cntxt = portletConfig.getPortletContext();
+ cntxt.setAttribute(null, "value");
+ tr48.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr48.setTcSuccess(true);
+ } catch (Exception e) {
+ tr48.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr48.appendTcDetail(e.toString());}
tr48.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
index 284b619..782e63d 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiAction.java
@@ -76,38 +76,49 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPreferences().getClass());
+
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY1);
/* TODO: implement test */
tr0.appendTcDetail("Not implemented.");
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY2);
/* TODO: implement test */
tr1.appendTcDetail("Not implemented.");
tr1.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY3);
/* TODO: implement test */
tr2.appendTcDetail("Not implemented.");
tr2.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.isReadOnly(null);
+ tr3.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr3.setTcSuccess(true);
+ } catch (Exception e) {
+ tr3.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValue1 */
@@ -139,8 +150,16 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
/* Details: "Method getValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getValues1 */
@@ -173,8 +192,17 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
/* Details: "Method getValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ String[] vals = prefs.getValues(null, new String[]{"val1-1", "val1-2"});
+ tr11.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr11.setTcSuccess(true);
+ } catch (Exception e) {
+ tr11.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValue1 */
@@ -214,8 +242,17 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
/* Details: "Method setValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValue(null, "value");
+ tr16.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr16.setTcSuccess(true);
+ } catch (Exception e) {
+ tr16.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_setValues1 */
@@ -263,8 +300,17 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
/* Details: "Method setValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValues(null, new String[]{"val1-1", "val1-2"});
+ tr22.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr22.setTcSuccess(true);
+ } catch (Exception e) {
+ tr22.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr22.appendTcDetail(e.toString());}
tr22.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_getNames1 */
@@ -302,15 +348,15 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
tr26.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
+ /* Details: "Method reset(String): Removes the value associated with */
+ /* the specified key" */
TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET1);
/* TODO: implement test */
tr27.appendTcDetail("Not implemented.");
tr27.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET2);
/* TODO: implement test */
@@ -318,11 +364,20 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
tr28.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
+ /* Details: "Method reset(String): Throws IllegalArgumentException if */
+ /* the key is null" */
TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.reset(null);
+ tr29.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr29.setTcSuccess(true);
+ } catch (Exception e) {
+ tr29.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_store1 */
@@ -408,9 +463,9 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -419,9 +474,9 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -430,8 +485,8 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -440,8 +495,8 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -687,8 +742,8 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
+ /* Details: "Method reset(String): Removes the value associated with */
+ /* the specified key" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -697,7 +752,7 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
{
PortletURL aurl = portletResp.createActionURL();
@@ -707,8 +762,8 @@ public class EnvironmentTests_PortletPreferences_ApiAction implements Portlet, R
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiAction_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
+ /* Details: "Method reset(String): Throws IllegalArgumentException if */
+ /* the key is null" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
index dff4229..dd9d57e 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent.java
@@ -100,9 +100,9 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
PrintWriter writer = portletResp.getWriter();
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -111,9 +111,9 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -122,8 +122,8 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -132,8 +132,8 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -379,8 +379,8 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
+ /* Details: "Method reset(String): Removes the value associated with */
+ /* the specified key" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
@@ -389,7 +389,7 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
{
PortletURL aurl = portletResp.createActionURL();
@@ -399,8 +399,8 @@ public class EnvironmentTests_PortletPreferences_ApiEvent implements Portlet, Re
}
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
+ /* Details: "Method reset(String): Throws IllegalArgumentException if */
+ /* the key is null" */
{
PortletURL aurl = portletResp.createActionURL();
aurl.setParameters(portletReq.getPrivateParameterMap());
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
index 904a145..a11c305 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiEvent_event.java
@@ -82,38 +82,49 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPreferences().getClass());
+
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY1);
/* TODO: implement test */
tr0.appendTcDetail("Not implemented.");
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY2);
/* TODO: implement test */
tr1.appendTcDetail("Not implemented.");
tr1.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY3);
/* TODO: implement test */
tr2.appendTcDetail("Not implemented.");
tr2.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.isReadOnly(null);
+ tr3.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr3.setTcSuccess(true);
+ } catch (Exception e) {
+ tr3.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValue1 */
@@ -145,8 +156,16 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
/* Details: "Method getValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getValues1 */
@@ -179,8 +198,17 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
/* Details: "Method getValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ String[] vals = prefs.getValues(null, new String[]{"val1-1", "val1-2"});
+ tr11.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr11.setTcSuccess(true);
+ } catch (Exception e) {
+ tr11.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValue1 */
@@ -220,8 +248,17 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
/* Details: "Method setValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValue(null, "value");
+ tr16.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr16.setTcSuccess(true);
+ } catch (Exception e) {
+ tr16.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_setValues1 */
@@ -269,8 +306,17 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
/* Details: "Method setValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValues(null, new String[]{"val1-1", "val1-2"});
+ tr22.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr22.setTcSuccess(true);
+ } catch (Exception e) {
+ tr22.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr22.appendTcDetail(e.toString());}
tr22.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_getNames1 */
@@ -308,15 +354,15 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
tr26.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
+ /* Details: "Method reset(String): Removes the value associated with */
+ /* the specified key" */
TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET1);
/* TODO: implement test */
tr27.appendTcDetail("Not implemented.");
tr27.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET2);
/* TODO: implement test */
@@ -324,11 +370,20 @@ public class EnvironmentTests_PortletPreferences_ApiEvent_event implements Portl
tr28.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
+ /* Details: "Method reset(String): Throws IllegalArgumentException if */
+ /* the key is null" */
TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.reset(null);
+ tr29.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr29.setTcSuccess(true);
+ } catch (Exception e) {
+ tr29.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiEvent_store1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
index b7f3755..fc3acb0 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiRender.java
@@ -100,38 +100,49 @@ public class EnvironmentTests_PortletPreferences_ApiRender implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPreferences().getClass());
+
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY1);
/* TODO: implement test */
tr0.appendTcDetail("Not implemented.");
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY2);
/* TODO: implement test */
tr1.appendTcDetail("Not implemented.");
tr1.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY3);
/* TODO: implement test */
tr2.appendTcDetail("Not implemented.");
tr2.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.isReadOnly(null);
+ tr3.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr3.setTcSuccess(true);
+ } catch (Exception e) {
+ tr3.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValue1 */
@@ -163,8 +174,16 @@ public class EnvironmentTests_PortletPreferences_ApiRender implements Portlet, R
/* Details: "Method getValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_getValues1 */
@@ -197,8 +216,17 @@ public class EnvironmentTests_PortletPreferences_ApiRender implements Portlet, R
/* Details: "Method getValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ String[] vals = prefs.getValues(null, new String[]{"val1-1", "val1-2"});
+ tr11.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr11.setTcSuccess(true);
+ } catch (Exception e) {
+ tr11.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_setValue4 */
@@ -245,7 +273,7 @@ public class EnvironmentTests_PortletPreferences_ApiRender implements Portlet, R
tr16.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiRender_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_RESET2);
/* TODO: implement test */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
index 3ca9c9e..42bfe16 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletPreferences_ApiResource.java
@@ -88,38 +88,49 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPreferences().getClass());
+
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly1 */
- /* Details: "Method isReadOnly(): Returns true if the preference */
- /* specified by the key is defined to be read-only in the deployment */
- /* descriptor" */
+ /* Details: "Method isReadOnly(String): Returns true if the */
+ /* preference specified by the key is defined to be read-only in the */
+ /* deployment descriptor" */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY1);
/* TODO: implement test */
tr0.appendTcDetail("Not implemented.");
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly2 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is not defined to be read-only in the */
- /* deployment descriptor" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is not defined to be read-only in */
+ /* the deployment descriptor" */
TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY2);
/* TODO: implement test */
tr1.appendTcDetail("Not implemented.");
tr1.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly3 */
- /* Details: "Method isReadOnly(): Returns false if the preference */
- /* specified by the key is undefined" */
+ /* Details: "Method isReadOnly(String): Returns false if the */
+ /* preference specified by the key is undefined" */
TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY3);
/* TODO: implement test */
tr2.appendTcDetail("Not implemented.");
tr2.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_isReadOnly4 */
- /* Details: "Method isReadOnly(): Throws IllegalArgumentException if */
- /* the key is null" */
+ /* Details: "Method isReadOnly(String): Throws */
+ /* IllegalArgumentException if the key is null" */
TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.isReadOnly(null);
+ tr3.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr3.setTcSuccess(true);
+ } catch (Exception e) {
+ tr3.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
tr3.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValue1 */
@@ -151,8 +162,16 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
/* Details: "Method getValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE4);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ tr7.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr7.setTcSuccess(true);
+ } catch (Exception e) {
+ tr7.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
tr7.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getValues1 */
@@ -185,8 +204,17 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
/* Details: "Method getValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUES4);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ String[] vals = prefs.getValues(null, new String[]{"val1-1", "val1-2"});
+ tr11.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr11.setTcSuccess(true);
+ } catch (Exception e) {
+ tr11.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
tr11.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValue1 */
@@ -226,8 +254,17 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
/* Details: "Method setValue(String, String): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUE5);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValue(null, "value");
+ tr16.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr16.setTcSuccess(true);
+ } catch (Exception e) {
+ tr16.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr16.appendTcDetail(e.toString());}
tr16.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_setValues1 */
@@ -275,8 +312,17 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
/* Details: "Method setValues(String, String[]): Throws */
/* IllegalArgumentException if the key is null" */
TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_SETVALUES6);
- /* TODO: implement test */
- tr22.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.setValues(null, new String[]{"val1-1", "val1-2"});
+ tr22.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr22.setTcSuccess(true);
+ } catch (Exception e) {
+ tr22.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr22.appendTcDetail(e.toString());}
tr22.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_getNames1 */
@@ -314,15 +360,15 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
tr26.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset1 */
- /* Details: "Method reset(): Removes the value associated with the */
- /* specified key" */
+ /* Details: "Method reset(String): Removes the value associated with */
+ /* the specified key" */
TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET1);
/* TODO: implement test */
tr27.appendTcDetail("Not implemented.");
tr27.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset2 */
- /* Details: "Method reset(): Throws ReadOnlyException if the */
+ /* Details: "Method reset(String): Throws ReadOnlyException if the */
/* preference cannot be modified for this request" */
TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET2);
/* TODO: implement test */
@@ -330,11 +376,20 @@ public class EnvironmentTests_PortletPreferences_ApiResource implements Portlet,
tr28.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_reset3 */
- /* Details: "Method reset(): Throws IllegalArgumentException if the */
- /* key is null" */
+ /* Details: "Method reset(String): Throws IllegalArgumentException if */
+ /* the key is null" */
TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET3);
- /* TODO: implement test */
- tr29.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletPreferences prefs = portletReq.getPreferences();
+ prefs.reset(null);
+ tr29.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr29.setTcSuccess(true);
+ } catch (Exception e) {
+ tr29.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr29.appendTcDetail(e.toString());}
tr29.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletPreferences_ApiResource_store1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
index 9b3b9ae..dd2cd24 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletRequestDispatcher_ApiRender.java
@@ -100,6 +100,10 @@ public class EnvironmentTests_PortletRequestDispatcher_ApiRender implements Port
// Create result objects for the tests
+ PortletRequestDispatcher rd = portletConfig.getPortletContext()
+ .getRequestDispatcher("/WEB-INF/portlet.xml");
+ ClassChecker cc = new ClassChecker(rd.getClass());
+
/* TestCase: V2EnvironmentTests_PortletRequestDispatcher_ApiRender_includeA1 */
/* Details: "Method include(PortletRequest, PortletResponse): */
/* Includes the content of a JSP page in the response" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
index 66634b8..0436f1d 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSessionUtil_ApiRender.java
@@ -100,6 +100,8 @@ public class EnvironmentTests_PortletSessionUtil_ApiRender implements Portlet, R
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(javax.portlet.PortletSessionUtil.class);
+
/* TestCase: V2EnvironmentTests_PortletSessionUtil_ApiRender_decodeAttributeName1 */
/* Details: "Method decodeAttributeName(String): Returns a String */
/* containing the decoded name of the attribute if the input name is */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
index e8c4845..638cec3 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletSession_ApiRender.java
@@ -100,18 +100,22 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(portletReq.getPortletSession().getClass());
+
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_fieldAPPLICATION_SCOPE */
/* Details: "Has int field APPLICATION_SCOPE with value of 0x01 " */
TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_FIELDAPPLICATION_SCOPE);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
+ try {
+ tr0.setTcSuccess(cc.hasField("APPLICATION_SCOPE", 0x01));
+ } catch(Exception e) {tr0.appendTcDetail(e.toString());}
tr0.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_fieldPORTLET_SCOPE */
/* Details: "Has int field PORTLET_SCOPE with value of 0x02 " */
TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_FIELDPORTLET_SCOPE);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
+ try {
+ tr1.setTcSuccess(cc.hasField("PORTLET_SCOPE", 0x02));
+ } catch(Exception e) {tr1.appendTcDetail(e.toString());}
tr1.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA1 */
@@ -134,8 +138,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEA3);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ Object val = sess.getAttribute(null);
+ tr4.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr4.setTcSuccess(true);
+ } catch (Exception e) {
+ tr4.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
tr4.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeA4 */
@@ -167,8 +180,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method getAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_GETATTRIBUTEB3);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ Object val = sess.getAttribute(null);
+ tr8.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr8.setTcSuccess(true);
+ } catch (Exception e) {
+ tr8.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
tr8.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_getAttributeB4 */
@@ -320,8 +342,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method removeAttribute(String): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEA4);
- /* TODO: implement test */
- tr26.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ sess.removeAttribute(null);
+ tr26.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr26.setTcSuccess(true);
+ } catch (Exception e) {
+ tr26.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr26.appendTcDetail(e.toString());}
tr26.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_removeAttributeB1 */
@@ -355,8 +386,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method removeAttribute(String, int): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_REMOVEATTRIBUTEB4);
- /* TODO: implement test */
- tr30.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ sess.removeAttribute(null, 0x01);
+ tr30.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr30.setTcSuccess(true);
+ } catch (Exception e) {
+ tr30.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr30.appendTcDetail(e.toString());}
tr30.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeA1 */
@@ -426,8 +466,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method setAttribute(String, Object): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEA8);
- /* TODO: implement test */
- tr38.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ sess.setAttribute(null, "value");
+ tr38.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr38.setTcSuccess(true);
+ } catch (Exception e) {
+ tr38.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr38.appendTcDetail(e.toString());}
tr38.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setAttributeB1 */
@@ -497,8 +546,17 @@ public class EnvironmentTests_PortletSession_ApiRender implements Portlet, Resou
/* Details: "Method setAttribute(String, Object, int): Throws */
/* IllegalArgumentException if the name is null" */
TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETSESSION_APIRENDER_SETATTRIBUTEB8);
- /* TODO: implement test */
- tr46.appendTcDetail("Not implemented.");
+ try {
+ try {
+ PortletSession sess = portletReq.getPortletSession();
+ sess.setAttribute(null, "value", 0x01);
+ tr46.appendTcDetail("Method did not throw an exception.");
+ } catch (IllegalArgumentException iae) {
+ tr46.setTcSuccess(true);
+ } catch (Exception e) {
+ tr46.appendTcDetail(e.toString());
+ }
+ } catch(Exception e) {tr46.appendTcDetail(e.toString());}
tr46.writeTo(writer);
/* TestCase: V2EnvironmentTests_PortletSession_ApiRender_setMaxInactiveInterval1 */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
index 1aa12d4..2c5ada9 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiAction.java
@@ -76,6 +76,8 @@ public class EnvironmentTests_PreferencesValidator_ApiAction implements Portlet,
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PreferencesValidator.class);
+
/* TestCase: V2EnvironmentTests_PreferencesValidator_ApiAction_canBeConfigured */
/* Details: "A PreferencesValidator can be configured in the */
/* deployment descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
index 93823bf..72128f8 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiEvent_event.java
@@ -82,6 +82,8 @@ public class EnvironmentTests_PreferencesValidator_ApiEvent_event implements Por
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PreferencesValidator.class);
+
/* TestCase: V2EnvironmentTests_PreferencesValidator_ApiEvent_canBeConfigured */
/* Details: "A PreferencesValidator can be configured in the */
/* deployment descriptor" */
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
index df41626..cf6a13c 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PreferencesValidator_ApiResource.java
@@ -88,6 +88,8 @@ public class EnvironmentTests_PreferencesValidator_ApiResource implements Portle
// Create result objects for the tests
+ ClassChecker cc = new ClassChecker(PreferencesValidator.class);
+
/* TestCase: V2EnvironmentTests_PreferencesValidator_ApiResource_canBeConfigured */
/* Details: "A PreferencesValidator can be configured in the */
/* deployment descriptor" */
[49/63] [abbrv] Completed rework of the tests derived from the API
documentation. Implemented some of the test cases:
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
index 290af2d..ca22612 100644
--- a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/JSR286ApiTestCaseDetails.java
@@ -99,51 +99,48 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
public final static String V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION1 = "V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException1";
public final static String V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION2 = "V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterException2";
public final static String V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXAMINE = "V2FilterTests_ResourceFilter_ApiResourceFilter_doFilterExamine";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_ApiRender_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH = "V2WrapperTests_ActionRequestWrapper_ApiRender_getContentLength";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE = "V2WrapperTests_ActionRequestWrapper_ApiRender_getContentType";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM = "V2WrapperTests_ActionRequestWrapper_ApiRender_getPortletInputStream";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREADER = "V2WrapperTests_ActionRequestWrapper_ApiRender_getReader";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_ApiRender_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREQUEST = "V2WrapperTests_ActionRequestWrapper_ApiRender_getRequest";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETREQUEST = "V2WrapperTests_ActionRequestWrapper_ApiRender_setRequest";
- public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETMETHOD = "V2WrapperTests_ActionRequestWrapper_ApiRender_getMethod";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTA = "V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTB = "V2WrapperTests_ActionResponseWrapper_ApiRender_sendRedirectB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTA = "V2WrapperTests_ActionResponseWrapper_ApiRender_setEventA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTB = "V2WrapperTests_ActionResponseWrapper_ApiRender_setEventB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_ApiRender_setPortletMode";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA = "V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterA";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB = "V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameterB";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERS = "V2WrapperTests_ActionResponseWrapper_ApiRender_setRenderParameters";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_ApiRender_setWindowState";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRESPONSE = "V2WrapperTests_ActionResponseWrapper_ApiRender_getResponse";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRESPONSE = "V2WrapperTests_ActionResponseWrapper_ApiRender_setResponse";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_ApiRender_getPortletMode";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1 = "V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap1";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2 = "V2WrapperTests_ActionResponseWrapper_ApiRender_getRenderParameterMap2";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_ApiRender_getWindowState";
- public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_ActionResponseWrapper_ApiRender_removePublicRenderParameter";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETREQUEST = "V2WrapperTests_EventRequestWrapper_ApiRender_getRequest";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_SETREQUEST = "V2WrapperTests_EventRequestWrapper_ApiRender_setRequest";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT1 = "V2WrapperTests_EventRequestWrapper_ApiRender_getEvent1";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT2 = "V2WrapperTests_EventRequestWrapper_ApiRender_getEvent2";
- public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETMETHOD = "V2WrapperTests_EventRequestWrapper_ApiRender_getMethod";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTA = "V2WrapperTests_EventResponseWrapper_ApiRender_setEventA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTB = "V2WrapperTests_EventResponseWrapper_ApiRender_setEventB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_ApiRender_setPortletMode";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA = "V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB = "V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParameterB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSA = "V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersA";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSB = "V2WrapperTests_EventResponseWrapper_ApiRender_setRenderParametersB";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_ApiRender_setWindowState";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRESPONSE = "V2WrapperTests_EventResponseWrapper_ApiRender_getResponse";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRESPONSE = "V2WrapperTests_EventResponseWrapper_ApiRender_setResponse";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_ApiRender_getPortletMode";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1 = "V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap1";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2 = "V2WrapperTests_EventResponseWrapper_ApiRender_getRenderParameterMap2";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_ApiRender_getWindowState";
- public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_EventResponseWrapper_ApiRender_removePublicRenderParameter";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_ApiAction_getCharacterEncoding";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTLENGTH = "V2WrapperTests_ActionRequestWrapper_ApiAction_getContentLength";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTTYPE = "V2WrapperTests_ActionRequestWrapper_ApiAction_getContentType";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETPORTLETINPUTSTREAM = "V2WrapperTests_ActionRequestWrapper_ApiAction_getPortletInputStream";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREADER = "V2WrapperTests_ActionRequestWrapper_ApiAction_getReader";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETCHARACTERENCODING = "V2WrapperTests_ActionRequestWrapper_ApiAction_setCharacterEncoding";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREQUEST = "V2WrapperTests_ActionRequestWrapper_ApiAction_getRequest";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETREQUEST = "V2WrapperTests_ActionRequestWrapper_ApiAction_setRequest";
+ public final static String V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETMETHOD = "V2WrapperTests_ActionRequestWrapper_ApiAction_getMethod";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTA = "V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectA";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTB = "V2WrapperTests_ActionResponseWrapper_ApiAction_sendRedirectB";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTA = "V2WrapperTests_ActionResponseWrapper_ApiAction_setEventA";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTB = "V2WrapperTests_ActionResponseWrapper_ApiAction_setEventB";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_ApiAction_setPortletMode";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERA = "V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterA";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERB = "V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameterB";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERS = "V2WrapperTests_ActionResponseWrapper_ApiAction_setRenderParameters";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_ApiAction_setWindowState";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRESPONSE = "V2WrapperTests_ActionResponseWrapper_ApiAction_getResponse";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRESPONSE = "V2WrapperTests_ActionResponseWrapper_ApiAction_setResponse";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETPORTLETMODE = "V2WrapperTests_ActionResponseWrapper_ApiAction_getPortletMode";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRENDERPARAMETERMAP1 = "V2WrapperTests_ActionResponseWrapper_ApiAction_getRenderParameterMap1";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETWINDOWSTATE = "V2WrapperTests_ActionResponseWrapper_ApiAction_getWindowState";
+ public final static String V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_ActionResponseWrapper_ApiAction_removePublicRenderParameter";
+ public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETREQUEST = "V2WrapperTests_EventRequestWrapper_ApiEvent_getRequest";
+ public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_SETREQUEST = "V2WrapperTests_EventRequestWrapper_ApiEvent_setRequest";
+ public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETEVENT1 = "V2WrapperTests_EventRequestWrapper_ApiEvent_getEvent1";
+ public final static String V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETMETHOD = "V2WrapperTests_EventRequestWrapper_ApiEvent_getMethod";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTA = "V2WrapperTests_EventResponseWrapper_ApiEvent_setEventA";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTB = "V2WrapperTests_EventResponseWrapper_ApiEvent_setEventB";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_ApiEvent_setPortletMode";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERA = "V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterA";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERB = "V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParameterB";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSA = "V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersA";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSB = "V2WrapperTests_EventResponseWrapper_ApiEvent_setRenderParametersB";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_ApiEvent_setWindowState";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRESPONSE = "V2WrapperTests_EventResponseWrapper_ApiEvent_getResponse";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRESPONSE = "V2WrapperTests_EventResponseWrapper_ApiEvent_setResponse";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETPORTLETMODE = "V2WrapperTests_EventResponseWrapper_ApiEvent_getPortletMode";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRENDERPARAMETERMAP1 = "V2WrapperTests_EventResponseWrapper_ApiEvent_getRenderParameterMap1";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETWINDOWSTATE = "V2WrapperTests_EventResponseWrapper_ApiEvent_getWindowState";
+ public final static String V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_REMOVEPUBLICRENDERPARAMETER = "V2WrapperTests_EventResponseWrapper_ApiEvent_removePublicRenderParameter";
public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTE = "V2WrapperTests_PortletRequestWrapper_ApiRender_getAttribute";
public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTENAMES = "V2WrapperTests_PortletRequestWrapper_ApiRender_getAttributeNames";
public final static String V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETAUTHTYPE = "V2WrapperTests_PortletRequestWrapper_ApiRender_getAuthType";
@@ -216,40 +213,40 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATEACTIONURL = "V2WrapperTests_RenderResponseWrapper_ApiRender_createActionURL";
public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERENDERURL = "V2WrapperTests_RenderResponseWrapper_ApiRender_createRenderURL";
public final static String V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL = "V2WrapperTests_RenderResponseWrapper_ApiRender_createResourceURL";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getPortletInputStream";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREADER = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getReader";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_ApiRender_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREQUEST = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getRequest";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETREQUEST = "V2WrapperTests_ResourceRequestWrapper_ApiRender_setRequest";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentLength";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getContentType";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETETAG = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getETag";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETMETHOD = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getMethod";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETRESOURCEID = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getResourceID";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPRIVATERENDERPARAMETERMAP = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getPrivateRenderParameterMap";
- public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCACHEABILITY = "V2WrapperTests_ResourceRequestWrapper_ApiRender_getCacheability";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_FLUSHBUFFER = "V2WrapperTests_ResourceResponseWrapper_ApiRender_flushBuffer";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getBufferSize";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getContentType";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETLOCALE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getLocale";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getPortletOutputStream";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETWRITER = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getWriter";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_ISCOMMITTED = "V2WrapperTests_ResourceResponseWrapper_ApiRender_isCommitted";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESET = "V2WrapperTests_ResourceResponseWrapper_ApiRender_reset";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESETBUFFER = "V2WrapperTests_ResourceResponseWrapper_ApiRender_resetBuffer";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setBufferSize";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentType";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCACHECONTROL = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getCacheControl";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setCharacterEncoding";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETLOCALE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setLocale";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTLENGTH = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setContentLength";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_getResponse";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_ApiRender_setResponse";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATEACTIONURL = "V2WrapperTests_ResourceResponseWrapper_ApiRender_createActionURL";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERENDERURL = "V2WrapperTests_ResourceResponseWrapper_ApiRender_createRenderURL";
- public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL = "V2WrapperTests_ResourceResponseWrapper_ApiRender_createResourceURL";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPORTLETINPUTSTREAM = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getPortletInputStream";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREADER = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getReader";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_ApiResource_setCharacterEncoding";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREQUEST = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getRequest";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETREQUEST = "V2WrapperTests_ResourceRequestWrapper_ApiResource_setRequest";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCHARACTERENCODING = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getCharacterEncoding";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTLENGTH = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentLength";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTTYPE = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getContentType";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETETAG = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getETag";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETMETHOD = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getMethod";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETRESOURCEID = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getResourceID";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getPrivateRenderParameterMap";
+ public final static String V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCACHEABILITY = "V2WrapperTests_ResourceRequestWrapper_ApiResource_getCacheability";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_FLUSHBUFFER = "V2WrapperTests_ResourceResponseWrapper_ApiResource_flushBuffer";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getBufferSize";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getCharacterEncoding";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getContentType";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETLOCALE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getLocale";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETPORTLETOUTPUTSTREAM = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getPortletOutputStream";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETWRITER = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getWriter";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_ISCOMMITTED = "V2WrapperTests_ResourceResponseWrapper_ApiResource_isCommitted";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESET = "V2WrapperTests_ResourceResponseWrapper_ApiResource_reset";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESETBUFFER = "V2WrapperTests_ResourceResponseWrapper_ApiResource_resetBuffer";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETBUFFERSIZE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setBufferSize";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTTYPE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentType";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCACHECONTROL = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getCacheControl";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCHARACTERENCODING = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setCharacterEncoding";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETLOCALE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setLocale";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTLENGTH = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setContentLength";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_getResponse";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETRESPONSE = "V2WrapperTests_ResourceResponseWrapper_ApiResource_setResponse";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATEACTIONURL = "V2WrapperTests_ResourceResponseWrapper_ApiResource_createActionURL";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERENDERURL = "V2WrapperTests_ResourceResponseWrapper_ApiResource_createRenderURL";
+ public final static String V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERESOURCEURL = "V2WrapperTests_ResourceResponseWrapper_ApiResource_createResourceURL";
public final static String V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDUSER_INFO = "V2RequestTests_PortletRequest_ApiRender_fieldUSER_INFO";
public final static String V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCCPP_PROFILE = "V2RequestTests_PortletRequest_ApiRender_fieldCCPP_PROFILE";
public final static String V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDBASIC_AUTH = "V2RequestTests_PortletRequest_ApiRender_fieldBASIC_AUTH";
@@ -1687,51 +1684,48 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION1, "If the doFilter(ResourceRequest, ResourceResponse, FilterChain): method throws an UnavailableException, processResource is not called");
tcd.put(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXCEPTION2, "If the doFilter(ResourceRequest, ResourceResponse, FilterChain): method throws an UnavailableException, no further filter is called");
tcd.put(V2FILTERTESTS_RESOURCEFILTER_APIRESOURCEFILTER_DOFILTEREXAMINE, "Method doFilter(ResourceRequest, ResourceResponse, FilterChain): After the next filter has been successfully invoked, the ResourceResponse may be examined");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH, "Method getContentLength(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM, "Method getPortletInputStream(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREADER, "Method getReader(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETREQUEST, "Method getRequest(): Returns wrapped ActionRequest object");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_SETREQUEST, "Method setRequest(ActionRequest): Allows wrapped ActionRequest object to be set");
- tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIRENDER_GETMETHOD, "Method getMethod(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTA, "Method sendRedirect(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SENDREDIRECTB, "Method sendRedirect(String, String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTA, "Method setEvent(javax.xml.namespace.QName, java.io.Serializable): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETEVENTB, "Method setEvent(String, java.io.Serializable): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE, "Method setPortletMode(PortletMode): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA, "Method setRenderParameter(String, String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB, "Method setRenderParameter(String, String[]): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERS, "Method setRenderParameters(java.util.Map): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE, "Method setWindowState(WindowState): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRESPONSE, "Method getResponse(): Returns wrapped ActionResponse object");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_SETRESPONSE, "Method setResponse(ActionResponse): Allows wrapped ActionResponse object to be set");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE, "Method getPortletMode(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1, "Method getRenderParameterMap(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2, "Method getRenderParameterMap(): Returns java.util.Map<java.lang.String,java.lang.String[]> object");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE, "Method getWindowState(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER, "Method removePublicRenderParameter(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETREQUEST, "Method getRequest(): Returns wrapped EventRequest object");
- tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_SETREQUEST, "Method setRequest(EventRequest): Allows wrapped EventRequest object to be set");
- tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT1, "Method getEvent(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETEVENT2, "Method getEvent(): Returns Event object");
- tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIRENDER_GETMETHOD, "Method getMethod(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTA, "Method setEvent(javax.xml.namespace.QName, java.io.Serializable): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETEVENTB, "Method setEvent(String, java.io.Serializable): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETPORTLETMODE, "Method setPortletMode(PortletMode): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERA, "Method setRenderParameter(String, String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERB, "Method setRenderParameter(String, String[]): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSA, "Method setRenderParameters(java.util.Map): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRENDERPARAMETERSB, "Method setRenderParameters(java.util.Map): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETWINDOWSTATE, "Method setWindowState(WindowState): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRESPONSE, "Method getResponse(): Returns wrapped EventResponse obect");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_SETRESPONSE, "Method setResponse(EventResponse): Allows wrapped EventResponse object to be set");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETPORTLETMODE, "Method getPortletMode(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP1, "Method getRenderParameterMap(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETRENDERPARAMETERMAP2, "Method getRenderParameterMap(): Returns java.util.Map<java.lang.String,java.lang.String[]> object");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_GETWINDOWSTATE, "Method getWindowState(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIRENDER_REMOVEPUBLICRENDERPARAMETER, "Method removePublicRenderParameter(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTLENGTH, "Method getContentLength(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETPORTLETINPUTSTREAM, "Method getPortletInputStream(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREADER, "Method getReader(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETREQUEST, "Method getRequest(): Returns wrapped ActionRequest object");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_SETREQUEST, "Method setRequest(ActionRequest): Allows wrapped ActionRequest object to be set");
+ tcd.put(V2WRAPPERTESTS_ACTIONREQUESTWRAPPER_APIACTION_GETMETHOD, "Method getMethod(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTA, "Method sendRedirect(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SENDREDIRECTB, "Method sendRedirect(String, String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTA, "Method setEvent(javax.xml.namespace.QName, java.io.Serializable): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETEVENTB, "Method setEvent(String, java.io.Serializable): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETPORTLETMODE, "Method setPortletMode(PortletMode): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERA, "Method setRenderParameter(String, String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERB, "Method setRenderParameter(String, String[]): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRENDERPARAMETERS, "Method setRenderParameters(java.util.Map): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETWINDOWSTATE, "Method setWindowState(WindowState): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRESPONSE, "Method getResponse(): Returns wrapped ActionResponse object");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_SETRESPONSE, "Method setResponse(ActionResponse): Allows wrapped ActionResponse object to be set");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETPORTLETMODE, "Method getPortletMode(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETRENDERPARAMETERMAP1, "Method getRenderParameterMap(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_GETWINDOWSTATE, "Method getWindowState(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_ACTIONRESPONSEWRAPPER_APIACTION_REMOVEPUBLICRENDERPARAMETER, "Method removePublicRenderParameter(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETREQUEST, "Method getRequest(): Returns wrapped EventRequest object");
+ tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_SETREQUEST, "Method setRequest(EventRequest): Allows wrapped EventRequest object to be set");
+ tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETEVENT1, "Method getEvent(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTREQUESTWRAPPER_APIEVENT_GETMETHOD, "Method getMethod(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTA, "Method setEvent(javax.xml.namespace.QName, java.io.Serializable): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETEVENTB, "Method setEvent(String, java.io.Serializable): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETPORTLETMODE, "Method setPortletMode(PortletMode): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERA, "Method setRenderParameter(String, String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERB, "Method setRenderParameter(String, String[]): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSA, "Method setRenderParameters(EventRequest): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRENDERPARAMETERSB, "Method setRenderParameters(EventRequest): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETWINDOWSTATE, "Method setWindowState(WindowState): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRESPONSE, "Method getResponse(): Returns wrapped EventResponse object");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_SETRESPONSE, "Method setResponse(EventResponse): Allows wrapped EventResponse object to be set");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETPORTLETMODE, "Method getPortletMode(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETRENDERPARAMETERMAP1, "Method getRenderParameterMap(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_GETWINDOWSTATE, "Method getWindowState(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_EVENTRESPONSEWRAPPER_APIEVENT_REMOVEPUBLICRENDERPARAMETER, "Method removePublicRenderParameter(String): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTE, "Method getAttribute(String): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETATTRIBUTENAMES, "Method getAttributeNames(): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_GETAUTHTYPE, "Method getAuthType(): Calls wrapped method");
@@ -1764,7 +1758,7 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISPORTLETMODEALLOWED, "Method isPortletModeAllowed(PortletMode): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISREQUESTEDSESSIONIDVALID, "Method isRequestedSessionIdValid(): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISSECURE, "Method isSecure(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISUSERINROLE, "Method isUserInRole(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISUSERINROLE, "Method isUserInRole(String): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_ISWINDOWSTATEALLOWED, "Method isWindowStateAllowed(WindowState): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_REMOVEATTRIBUTE, "Method removeAttribute(String): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_PORTLETREQUESTWRAPPER_APIRENDER_SETATTRIBUTE, "Method setAttribute(String, Object): Calls wrapped method");
@@ -1799,45 +1793,45 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETTITLE, "Method setTitle(String): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETCACHECONTROL, "Method getCacheControl(): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETNEXTPOSSIBLEPORTLETMODES, "Method setNextPossiblePortletModes(java.util.Collection): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETRESPONSE, "Method getResponse(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_GETRESPONSE, "Method getResponse(): Returns wrapped RenderResponse object");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_SETRESPONSE, "Method setResponse(RenderResponse): Allows wrapped RenderResponse object to be set ");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATEACTIONURL, "Method createActionURL(): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERENDERURL, "Method createRenderURL(): Calls wrapped method");
tcd.put(V2WRAPPERTESTS_RENDERRESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL, "Method createResourceURL(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPORTLETINPUTSTREAM, "Method getPortletInputStream(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREADER, "Method getReader(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETREQUEST, "Method getRequest(): Returns wrapped ResourceRequest object");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_SETREQUEST, "Method setRequest(ResourceRequest): Allows wrapped ResourceRequest object to be set");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTLENGTH, "Method getContentLength(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETETAG, "Method getETag(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETMETHOD, "Method getMethod(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETRESOURCEID, "Method getResourceID(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETPRIVATERENDERPARAMETERMAP, "Method getPrivateRenderParameterMap(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRENDER_GETCACHEABILITY, "Method getCacheability(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_FLUSHBUFFER, "Method flushBuffer(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETBUFFERSIZE, "Method getBufferSize(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETLOCALE, "Method getLocale(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETPORTLETOUTPUTSTREAM, "Method getPortletOutputStream(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETWRITER, "Method getWriter(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_ISCOMMITTED, "Method isCommitted(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESET, "Method reset(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_RESETBUFFER, "Method resetBuffer(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETBUFFERSIZE, "Method setBufferSize(int): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTTYPE, "Method setContentType(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETCACHECONTROL, "Method getCacheControl(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETLOCALE, "Method setLocale(Locale): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETCONTENTLENGTH, "Method setContentLength(int): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_GETRESPONSE, "Method getResponse(): Returns wrapped RespurceResponse object");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_SETRESPONSE, "Method setResponse(ResourceResponse): Allows wrapped ResourceResponse object to be set");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATEACTIONURL, "Method createActionURL(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERENDERURL, "Method createRenderURL(): Calls wrapped method");
- tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRENDER_CREATERESOURCEURL, "Method createResourceURL(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPORTLETINPUTSTREAM, "Method getPortletInputStream(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREADER, "Method getReader(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETREQUEST, "Method getRequest(): Returns wrapped ResourceRequest object");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_SETREQUEST, "Method setRequest(ResourceRequest): Allows wrapped ResourceRequest object to be set");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTLENGTH, "Method getContentLength(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETETAG, "Method getETag(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETMETHOD, "Method getMethod(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETRESOURCEID, "Method getResourceID(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETPRIVATERENDERPARAMETERMAP, "Method getPrivateRenderParameterMap(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCEREQUESTWRAPPER_APIRESOURCE_GETCACHEABILITY, "Method getCacheability(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_FLUSHBUFFER, "Method flushBuffer(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETBUFFERSIZE, "Method getBufferSize(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCHARACTERENCODING, "Method getCharacterEncoding(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCONTENTTYPE, "Method getContentType(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETLOCALE, "Method getLocale(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETPORTLETOUTPUTSTREAM, "Method getPortletOutputStream(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETWRITER, "Method getWriter(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_ISCOMMITTED, "Method isCommitted(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESET, "Method reset(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_RESETBUFFER, "Method resetBuffer(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETBUFFERSIZE, "Method setBufferSize(int): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTTYPE, "Method setContentType(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETCACHECONTROL, "Method getCacheControl(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCHARACTERENCODING, "Method setCharacterEncoding(String): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETLOCALE, "Method setLocale(Locale): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETCONTENTLENGTH, "Method setContentLength(int): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_GETRESPONSE, "Method getResponse(): Returns wrapped RespurceResponse object");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_SETRESPONSE, "Method setResponse(ResourceResponse): Allows wrapped ResourceResponse object to be set");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATEACTIONURL, "Method createActionURL(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERENDERURL, "Method createRenderURL(): Calls wrapped method");
+ tcd.put(V2WRAPPERTESTS_RESOURCERESPONSEWRAPPER_APIRESOURCE_CREATERESOURCEURL, "Method createResourceURL(): Calls wrapped method");
tcd.put(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDUSER_INFO, "Has String field USER_INFO with value of \"javax.portlet.userinfo\" ");
tcd.put(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDCCPP_PROFILE, "Has String field CCPP_PROFILE with value of \"javax.portlet.ccpp\" ");
tcd.put(V2REQUESTTESTS_PORTLETREQUEST_APIRENDER_FIELDBASIC_AUTH, "Has String field BASIC_AUTH with value of \"BASIC\" ");
@@ -2484,8 +2478,8 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB9, "Method sendRedirect(String, String): Throws IllegalStateException if setRenderParameter has been called before this method ");
tcd.put(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB10, "Method sendRedirect(String, String): Throws IllegalStateException if setRenderParameters has been called before this method ");
tcd.put(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB11, "Method sendRedirect(String, String): Throws IllegalStateException if removePublicRenderParameter has been called before this method");
- tcd.put(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1, "Method setRenderParameters(java.util.Map): Copies all render parameters set on the EventRequest to the EventResponse");
- tcd.put(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2, "Method setRenderParameters(java.util.Map): Throws IllegalArgumentException if the input EventRequest parameter is null");
+ tcd.put(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1, "Method setRenderParameters(EventRequest): Copies all render parameters set on the EventRequest to the EventResponse");
+ tcd.put(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2, "Method setRenderParameters(EventRequest): Throws IllegalArgumentException if the input EventRequest parameter is null");
tcd.put(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE , "Has String field EXPIRATION_CACHE with value of \"portlet.expiration-cache\"");
tcd.put(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE , "Has String field CACHE_SCOPE with value of \"portlet.cache-scope\"");
tcd.put(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE , "Has String field PUBLIC_SCOPE with value of \"portlet.public-scope\"");
@@ -2997,10 +2991,10 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME3, "Method getPortletContextName(): Returns null if no web.xml <display-name> element is defined");
tcd.put(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS1, "Method getContainerRuntimeOptions(): Returns an java.util.Enumeration<java.lang.String> containing the available runtime option names");
tcd.put(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS2, "Method getContainerRuntimeOptions(): Returns an empty Enumeration if no runtime options are available");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY1, "Method isReadOnly(): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY2, "Method isReadOnly(): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY3, "Method isReadOnly(): Returns false if the preference specified by the key is undefined");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY4, "Method isReadOnly(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY1, "Method isReadOnly(String): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY2, "Method isReadOnly(String): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY3, "Method isReadOnly(String): Returns false if the preference specified by the key is undefined");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_ISREADONLY4, "Method isReadOnly(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE1, "Method getValue(String, String): Returns the first String value for the specified key");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE2, "Method getValue(String, String): Returns the specified default value if there is no value for the specified key ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETVALUE3, "Method getValue(String, String): Returns the specified default value if the existing value for the specified key is null ");
@@ -3014,12 +3008,12 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETNAMES2, "Method getNames(): Returns an empty Enumeration if no preference keys are available");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETMAP1, "Method getMap(): Returns an java.util.Map<java.lang.String> containing the available preferences");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_GETMAP2, "Method getMap(): Returns an empty Map if no preferences are available");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_RESET2, "Method reset(): Throws ReadOnlyException if the preference cannot be modified for this request");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_RESET2, "Method reset(String): Throws ReadOnlyException if the preference cannot be modified for this request");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRENDER_STORE5, "Method store(): Throws IllegalStateException if store(): is called in the render method ");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY1, "Method isReadOnly(): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY2, "Method isReadOnly(): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY3, "Method isReadOnly(): Returns false if the preference specified by the key is undefined");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY4, "Method isReadOnly(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY1, "Method isReadOnly(String): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY2, "Method isReadOnly(String): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY3, "Method isReadOnly(String): Returns false if the preference specified by the key is undefined");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_ISREADONLY4, "Method isReadOnly(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE1, "Method getValue(String, String): Returns the first String value for the specified key");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE2, "Method getValue(String, String): Returns the specified default value if there is no value for the specified key ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETVALUE3, "Method getValue(String, String): Returns the specified default value if the existing value for the specified key is null ");
@@ -3043,9 +3037,9 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETNAMES2, "Method getNames(): Returns an empty Enumeration if no preference keys are available");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETMAP1, "Method getMap(): Returns an java.util.Map<java.lang.String> containing the available preferences");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_GETMAP2, "Method getMap(): Returns an empty Map if no preferences are available");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET1, "Method reset(): Removes the value associated with the specified key");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET2, "Method reset(): Throws ReadOnlyException if the preference cannot be modified for this request");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET3, "Method reset(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET1, "Method reset(String): Removes the value associated with the specified key");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET2, "Method reset(String): Throws ReadOnlyException if the preference cannot be modified for this request");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_RESET3, "Method reset(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE1, "Method store(): Commits changes made to the preferences to the persistent store ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE2, "Method store(): If the store(): method is not called, changes made are discarded");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIACTION_STORE3, "Method store(): If a validator is defined, it is called before the actual store is performed");
@@ -3055,10 +3049,10 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_CANBECONFIGURED, "A PreferencesValidator can be configured in the deployment descriptor");
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_VALIDATE1, "Method validate(PortletPreferences): The validate(PortletPreferences): method is called when the preferences are stored ");
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIACTION_VALIDATE2, "Method validate(PortletPreferences): If a ValidatorException is thrown, the preferences are not stored");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY1, "Method isReadOnly(): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY2, "Method isReadOnly(): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY3, "Method isReadOnly(): Returns false if the preference specified by the key is undefined");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY4, "Method isReadOnly(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY1, "Method isReadOnly(String): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY2, "Method isReadOnly(String): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY3, "Method isReadOnly(String): Returns false if the preference specified by the key is undefined");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_ISREADONLY4, "Method isReadOnly(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE1, "Method getValue(String, String): Returns the first String value for the specified key");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE2, "Method getValue(String, String): Returns the specified default value if there is no value for the specified key ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETVALUE3, "Method getValue(String, String): Returns the specified default value if the existing value for the specified key is null ");
@@ -3082,9 +3076,9 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETNAMES2, "Method getNames(): Returns an empty Enumeration if no preference keys are available");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETMAP1, "Method getMap(): Returns an java.util.Map<java.lang.String> containing the available preferences");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_GETMAP2, "Method getMap(): Returns an empty Map if no preferences are available");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET1, "Method reset(): Removes the value associated with the specified key");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET2, "Method reset(): Throws ReadOnlyException if the preference cannot be modified for this request");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET3, "Method reset(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET1, "Method reset(String): Removes the value associated with the specified key");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET2, "Method reset(String): Throws ReadOnlyException if the preference cannot be modified for this request");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_RESET3, "Method reset(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE1, "Method store(): Commits changes made to the preferences to the persistent store ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE2, "Method store(): If the store(): method is not called, changes made are discarded");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIEVENT_STORE3, "Method store(): If a validator is defined, it is called before the actual store is performed");
@@ -3094,10 +3088,10 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_CANBECONFIGURED, "A PreferencesValidator can be configured in the deployment descriptor");
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_VALIDATE1, "Method validate(PortletPreferences): The validate(PortletPreferences): method is called when the preferences are stored ");
tcd.put(V2ENVIRONMENTTESTS_PREFERENCESVALIDATOR_APIEVENT_VALIDATE2, "Method validate(PortletPreferences): If a ValidatorException is thrown, the preferences are not stored");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY1, "Method isReadOnly(): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY2, "Method isReadOnly(): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY3, "Method isReadOnly(): Returns false if the preference specified by the key is undefined");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY4, "Method isReadOnly(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY1, "Method isReadOnly(String): Returns true if the preference specified by the key is defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY2, "Method isReadOnly(String): Returns false if the preference specified by the key is not defined to be read-only in the deployment descriptor");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY3, "Method isReadOnly(String): Returns false if the preference specified by the key is undefined");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_ISREADONLY4, "Method isReadOnly(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE1, "Method getValue(String, String): Returns the first String value for the specified key");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE2, "Method getValue(String, String): Returns the specified default value if there is no value for the specified key ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETVALUE3, "Method getValue(String, String): Returns the specified default value if the existing value for the specified key is null ");
@@ -3121,9 +3115,9 @@ public class JSR286ApiTestCaseDetails extends TestCaseDetails {
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETNAMES2, "Method getNames(): Returns an empty Enumeration if no preference keys are available");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETMAP1, "Method getMap(): Returns an java.util.Map<java.lang.String> containing the available preferences");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_GETMAP2, "Method getMap(): Returns an empty Map if no preferences are available");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET1, "Method reset(): Removes the value associated with the specified key");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET2, "Method reset(): Throws ReadOnlyException if the preference cannot be modified for this request");
- tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET3, "Method reset(): Throws IllegalArgumentException if the key is null");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET1, "Method reset(String): Removes the value associated with the specified key");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET2, "Method reset(String): Throws ReadOnlyException if the preference cannot be modified for this request");
+ tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_RESET3, "Method reset(String): Throws IllegalArgumentException if the key is null");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE1, "Method store(): Commits changes made to the preferences to the persistent store ");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE2, "Method store(): If the store(): method is not called, changes made are discarded");
tcd.put(V2ENVIRONMENTTESTS_PORTLETPREFERENCES_APIRESOURCE_STORE3, "Method store(): If a validator is defined, it is called before the actual store is performed");
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletRequestWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletRequestWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletRequestWrapperChecker.java
new file mode 100644
index 0000000..b6f541e
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletRequestWrapperChecker.java
@@ -0,0 +1,452 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.PortletRequest;
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+
+public class PortletRequestWrapperChecker extends WrapperChecker implements PortletRequest {
+
+ private PortletRequest req;
+ private PortletSession sess;
+ private PortletPreferences prefs;
+ private PortalContext pcntxt;
+ private Principal ppal;
+
+ public PortletRequestWrapperChecker(PortletRequest portletReq) {
+ req = portletReq;
+ sess = req.getPortletSession();
+ prefs = req.getPreferences();
+ pcntxt = req.getPortalContext();
+ ppal = req.getUserPrincipal();
+ }
+
+ @Override
+ public boolean isWindowStateAllowed(WindowState state) {
+ String meth = "isWindowStateAllowed";
+ Object[] args = {state};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isPortletModeAllowed(PortletMode mode) {
+ String meth = "isPortletModeAllowed";
+ Object[] args = {mode};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletMode getPortletMode() {
+ String meth = "getPortletMode";
+ Object[] args = {};
+ PortletMode ret = PortletMode.EDIT;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public WindowState getWindowState() {
+ String meth = "getWindowState";
+ Object[] args = {};
+ WindowState ret = WindowState.NORMAL;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletPreferences getPreferences() {
+ String meth = "getPreferences";
+ Object[] args = {};
+ PortletPreferences ret = prefs;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession() {
+ String meth = "getPortletSession";
+ Object[] args = {};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortletSession getPortletSession(boolean create) {
+ String meth = "getPortletSession";
+ Object[] args = {create};
+ PortletSession ret = sess;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getProperty(String name) {
+ String meth = "getProperty";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getProperties(String name) {
+ String meth = "getProperties";
+ Object[] args = {name};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getPropertyNames() {
+ String meth = "getPropertyNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public PortalContext getPortalContext() {
+ String meth = "getPortalContext";
+ Object[] args = {};
+ PortalContext ret = pcntxt;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getAuthType() {
+ String meth = "getAuthType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getContextPath() {
+ String meth = "getContextPath";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getRemoteUser() {
+ String meth = "getRemoteUser";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Principal getUserPrincipal() {
+ String meth = "getUserPrincipal";
+ Object[] args = {};
+ Principal ret = ppal;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isUserInRole(String role) {
+ String meth = "isUserInRole";
+ Object[] args = {role};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Object getAttribute(String name) {
+ String meth = "getAttribute";
+ Object[] args = {name};
+ Object ret = "object";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getAttributeNames() {
+ String meth = "getAttributeNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getParameter(String name) {
+ String meth = "getParameter";
+ Object[] args = {name};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getParameterNames() {
+ String meth = "getParameterNames";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String[] getParameterValues(String name) {
+ String meth = "getParameterValues";
+ Object[] args = {name};
+ String[] ret = {"val1", "val2"};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getParameterMap() {
+ String meth = "getParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isSecure() {
+ String meth = "isSecure";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void setAttribute(String name, Object o) {
+ String meth = "setAttribute";
+ Object[] args = {name, o};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void removeAttribute(String name) {
+ String meth = "removeAttribute";
+ Object[] args = {name};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String getRequestedSessionId() {
+ String meth = "getRequestedSessionId";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public boolean isRequestedSessionIdValid() {
+ String meth = "isRequestedSessionIdValid";
+ Object[] args = {};
+ boolean ret = true;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getResponseContentType() {
+ String meth = "getResponseContentType";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<String> getResponseContentTypes() {
+ String meth = "getResponseContentTypes";
+ Object[] args = {};
+ String[] strs = {"val1", "val2"};
+ Enumeration<String> ret = Collections.enumeration(Arrays.asList(strs));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Locale getLocale() {
+ String meth = "getLocale";
+ Object[] args = {};
+ Locale ret = new Locale("en");
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Enumeration<Locale> getLocales() {
+ String meth = "getLocales";
+ Object[] args = {};
+ Locale[] la = {new Locale("en"), new Locale("de")};
+ Enumeration<Locale> ret = Collections.enumeration(Arrays.asList(la));
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getScheme() {
+ String meth = "getScheme";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getServerName() {
+ String meth = "getServerName";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public int getServerPort() {
+ String meth = "getServerPort";
+ Object[] args = {};
+ int ret = 42;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getWindowID() {
+ String meth = "getWindowID";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Cookie[] getCookies() {
+ String meth = "getCookies";
+ Object[] args = {};
+ Cookie[] ret = {new Cookie("name", "Bob"), new Cookie("name", "Alice")};
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPrivateParameterMap() {
+ String meth = "getPrivateParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public Map<String, String[]> getPublicParameterMap() {
+ String meth = "getPublicParameterMap";
+ Object[] args = {};
+ Map<String, String[]> parms = new HashMap<String, String[]>();
+ parms.put("parm1", new String[] {"val1", "val2"});
+ parms.put("parm2", new String[] {"val1", "val2"});
+ Map<String, String[]> ret = parms;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2f638d7a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletResponseWrapperChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletResponseWrapperChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletResponseWrapperChecker.java
new file mode 100644
index 0000000..1e36e21
--- /dev/null
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/PortletResponseWrapperChecker.java
@@ -0,0 +1,121 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.portlet.tck.beans;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.Map;
+
+import java.security.*;
+import java.util.*;
+import java.io.*;
+
+import javax.portlet.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Element;
+
+/**
+ * This class tests a wrapper class by simulating the class to be wrapped.The test code
+ * verifies that the arguments passed to the wrapping method are correctly passed to
+ * the wrapped class. Simulated return data is passed back to the caller.
+ *
+ * @author nick
+ */
+
+public class PortletResponseWrapperChecker extends WrapperChecker implements
+ PortletResponse {
+
+ PortletResponse resp;
+ Element element;
+
+ public PortletResponseWrapperChecker(PortletResponse portletResp) {
+ resp = portletResp;
+ element = resp.createElement("p");
+ }
+
+ @Override
+ public void addProperty(String key, String value) {
+ String meth = "addProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void setProperty(String key, String value) {
+ String meth = "setProperty";
+ Object[] args = {key, value};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public String encodeURL(String path) {
+ String meth = "encodeURL";
+ Object[] args = {path};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public String getNamespace() {
+ String meth = "getNamespace";
+ Object[] args = {};
+ String ret = "value";
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+ @Override
+ public void addProperty(Cookie cookie) {
+ String meth = "addProperty";
+ Object[] args = {cookie};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public void addProperty(String key, Element element) {
+ String meth = "addProperty";
+ Object[] args = {key, element};
+ checkArgs(meth, args);
+ return;
+
+ }
+
+ @Override
+ public Element createElement(String tagName) throws DOMException {
+ String meth = "createElement";
+ Object[] args = {tagName};
+ Element ret = element;
+ retVal = ret;
+ checkArgs(meth, args);
+ return ret;
+ }
+
+}
+
[19/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2RequestTests/src/main/resources/xml-resources/additionalTCs.xml
index f744e20..b185de2 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2RequestTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -20,448 +20,448 @@
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- JSR 286 API RequestTests test case names and page mappings -->
-<entry key="V2RequestTests_PortletRequest_Render_fieldUSER_INFO">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldCCPP_PROFILE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldBASIC_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldFORM_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldDIGEST_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldACTION_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldEVENT_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldRENDER_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldRESOURCE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldRENDER_PART">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldRENDER_HEADERS">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldRENDER_MARKUP">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_fieldACTION_SCOPE_ID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isWindowStateAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isWindowStateAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isPortletModeAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isPortletModeAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletMode">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getWindowState">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPreferences">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionA1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionA2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionB1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionB2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionB3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortletSessionB4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperty1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperty2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperty3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperties1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperties2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getProperties3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPropertyNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPropertyNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPortalContext">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAuthType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAuthType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getContextPath1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getContextPath2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getContextPath3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getRemoteUser1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getRemoteUser2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getUserPrincipal1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getUserPrincipal2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isUserInRole1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isUserInRole2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isUserInRole3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAttributeNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getAttributeNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameter1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameter2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameter3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameter4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameter5">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterValues1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterValues2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterValues3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterValues4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isSecure1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isSecure2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_setAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_setAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_setAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_removeAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_removeAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getRequestedSessionId1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getRequestedSessionId2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_isRequestedSessionIdValid2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getResponseContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getResponseContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getResponseContentTypes1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getResponseContentTypes2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getLocale">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getLocales">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getScheme">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getServerName">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getServerPort">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getWindowID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getCookies1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getCookies2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPrivateParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPrivateParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPrivateParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPublicParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPublicParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_getPublicParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Render_exists">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldUSER_INFO">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldCCPP_PROFILE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldBASIC_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldFORM_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldDIGEST_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldACTION_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldEVENT_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldRENDER_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldRESOURCE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldRENDER_PART">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldRENDER_HEADERS">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldRENDER_MARKUP">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_fieldACTION_SCOPE_ID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isWindowStateAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isWindowStateAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isPortletModeAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isPortletModeAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletMode">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getWindowState">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPreferences">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionA1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionA2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionB1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionB2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionB3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortletSessionB4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperty1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperty2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperty3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperties1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperties2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getProperties3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPropertyNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPropertyNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPortalContext">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAuthType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAuthType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getContextPath1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getContextPath2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getContextPath3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getRemoteUser1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getRemoteUser2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getUserPrincipal1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getUserPrincipal2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isUserInRole1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isUserInRole2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isUserInRole3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAttributeNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getAttributeNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameter1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameter2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameter3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameter4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameter5">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterValues1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterValues2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterValues3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterValues4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isSecure1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isSecure2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_setAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_setAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_setAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_removeAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_removeAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getRequestedSessionId1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getRequestedSessionId2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_isRequestedSessionIdValid2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getResponseContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getResponseContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getResponseContentTypes1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getResponseContentTypes2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getLocale">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getLocales">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getScheme">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getServerName">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getServerPort">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getWindowID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getCookies1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getCookies2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPrivateParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPrivateParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPrivateParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPublicParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPublicParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_getPublicParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Action_exists">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldUSER_INFO">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldCCPP_PROFILE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldBASIC_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldFORM_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldDIGEST_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldACTION_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldEVENT_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldRENDER_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldRESOURCE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldRENDER_PART">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldRENDER_HEADERS">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldRENDER_MARKUP">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_fieldACTION_SCOPE_ID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isWindowStateAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isWindowStateAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isPortletModeAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isPortletModeAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletMode">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getWindowState">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPreferences">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionA1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionA2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionB1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionB2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionB3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortletSessionB4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperty1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperty2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperty3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperties1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperties2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getProperties3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPropertyNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPropertyNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPortalContext">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAuthType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAuthType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getContextPath1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getContextPath2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getContextPath3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getRemoteUser1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getRemoteUser2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getUserPrincipal1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getUserPrincipal2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isUserInRole1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isUserInRole2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isUserInRole3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAttributeNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getAttributeNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameter1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameter2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameter3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameter4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameter5">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterValues1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterValues2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterValues3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterValues4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isSecure1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isSecure2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_setAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_setAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_setAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_removeAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_removeAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getRequestedSessionId1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getRequestedSessionId2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_isRequestedSessionIdValid2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getResponseContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getResponseContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getResponseContentTypes1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getResponseContentTypes2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getLocale">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getLocales">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getScheme">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getServerName">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getServerPort">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getWindowID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getCookies1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getCookies2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPrivateParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPrivateParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPrivateParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPublicParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPublicParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_getPublicParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Event_exists">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldUSER_INFO">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldCCPP_PROFILE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldBASIC_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldFORM_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldDIGEST_AUTH">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldACTION_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldEVENT_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldRENDER_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldRESOURCE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldRENDER_PART">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldRENDER_HEADERS">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldRENDER_MARKUP">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_fieldACTION_SCOPE_ID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isWindowStateAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isWindowStateAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isPortletModeAllowed1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isPortletModeAllowed2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletMode">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getWindowState">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPreferences">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionA1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionA2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionB1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionB2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionB3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortletSessionB4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperty1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperty2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperty3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperties1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperties2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getProperties3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPropertyNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPropertyNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPortalContext">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAuthType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAuthType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getContextPath1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getContextPath2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getContextPath3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getRemoteUser1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getRemoteUser2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getUserPrincipal1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getUserPrincipal2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isUserInRole1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isUserInRole2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isUserInRole3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAttributeNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getAttributeNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameter1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameter2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameter3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameter4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameter5">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterNames1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterNames2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterValues1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterValues2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterValues3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterValues4">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isSecure1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isSecure2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_setAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_setAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_setAttribute3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_removeAttribute1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_removeAttribute2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getRequestedSessionId1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getRequestedSessionId2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_isRequestedSessionIdValid2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getResponseContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getResponseContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getResponseContentTypes1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getResponseContentTypes2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getLocale">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getLocales">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getScheme">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getServerName">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getServerPort">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getWindowID">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getCookies1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getCookies2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPrivateParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPrivateParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPrivateParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPublicParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPublicParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_getPublicParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_PortletRequest_Resource_exists">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getPortletInputStream1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getPortletInputStream2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getPortletInputStream3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_setCharacterEncoding1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_setCharacterEncoding2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_setCharacterEncoding3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_setCharacterEncoding4">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getReader1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getReader2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getReader3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getReader5">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getCharacterEncoding1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getCharacterEncoding2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getContentLength1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getContentLength2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Action_getMethod">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getPortletInputStream1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getPortletInputStream2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getPortletInputStream3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding4">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getReader1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getReader2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getReader3">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getReader5">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getCharacterEncoding1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getCharacterEncoding2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getContentType1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getContentType2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getContentLength1">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getContentLength2">V2RequestTests</entry>
-<entry key="V2RequestTests_ClientDataRequest_Resource_getMethod">V2RequestTests</entry>
-<entry key="V2RequestTests_ActionRequest_Action_fieldACTION_NAME">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_fieldETAG">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getETag2">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getResourceID1">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getResourceID2">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap1">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap2">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap3">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getPrivateRenderParameterMap4">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getResponseContentType">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getResponseContentTypes">V2RequestTests</entry>
-<entry key="V2RequestTests_ResourceRequest_Resource_getCacheability">V2RequestTests</entry>
-<entry key="V2RequestTests_EventRequest_Event_getEvent">V2RequestTests</entry>
-<entry key="V2RequestTests_EventRequest_Event_getMethod">V2RequestTests</entry>
-<entry key="V2RequestTests_RenderRequest_Render_fieldETAG">V2RequestTests</entry>
-<entry key="V2RequestTests_RenderRequest_Render_getETag2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldUSER_INFO">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldCCPP_PROFILE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldBASIC_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldFORM_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldDIGEST_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldACTION_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldEVENT_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldRESOURCE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldRENDER_PART">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldRENDER_HEADERS">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldRENDER_MARKUP">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_fieldACTION_SCOPE_ID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isWindowStateAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isWindowStateAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isPortletModeAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isPortletModeAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletMode">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getWindowState">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPreferences">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionA1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionA2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionB1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionB2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionB3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortletSessionB4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperty1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperty2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperty3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperties1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperties2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getProperties3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPropertyNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPropertyNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPortalContext">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAuthType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAuthType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getContextPath1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getContextPath2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getContextPath3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getRemoteUser1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getRemoteUser2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getUserPrincipal1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getUserPrincipal2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isUserInRole1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isUserInRole2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isUserInRole3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAttributeNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getAttributeNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameter1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameter2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameter3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameter4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameter5">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterValues1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterValues2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterValues3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterValues4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isSecure1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isSecure2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_setAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_setAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_setAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_removeAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_removeAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getRequestedSessionId1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getRequestedSessionId2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isRequestedSessionIdValid1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_isRequestedSessionIdValid2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getResponseContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getResponseContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getResponseContentTypes1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getResponseContentTypes2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getLocale">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getLocales">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getScheme">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getServerName">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getServerPort">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getWindowID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getCookies1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getCookies2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPrivateParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_getPublicParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiRender_exists">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldUSER_INFO">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldCCPP_PROFILE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldBASIC_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldFORM_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldDIGEST_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldACTION_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldEVENT_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldRESOURCE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldRENDER_PART">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldRENDER_HEADERS">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldRENDER_MARKUP">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_fieldACTION_SCOPE_ID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isWindowStateAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isPortletModeAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletMode">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getWindowState">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPreferences">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionA1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionA2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionB1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionB2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionB3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortletSessionB4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperty1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperty2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperty3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperties1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperties2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getProperties3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPropertyNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPropertyNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPortalContext">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAuthType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAuthType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getContextPath1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getContextPath2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getContextPath3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getRemoteUser1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getRemoteUser2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getUserPrincipal1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getUserPrincipal2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isUserInRole1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isUserInRole2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isUserInRole3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAttributeNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getAttributeNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameter1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameter2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameter3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameter4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameter5">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterValues1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterValues2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterValues3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterValues4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isSecure1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isSecure2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_setAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_setAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_setAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_removeAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_removeAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getRequestedSessionId1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getRequestedSessionId2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isRequestedSessionIdValid1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_isRequestedSessionIdValid2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getResponseContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getResponseContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getResponseContentTypes1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getResponseContentTypes2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getLocale">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getLocales">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getScheme">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getServerName">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getServerPort">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getWindowID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getCookies1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getCookies2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPrivateParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_getPublicParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiAction_exists">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldUSER_INFO">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldCCPP_PROFILE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldBASIC_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldFORM_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldDIGEST_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldACTION_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldEVENT_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldRESOURCE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PART">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_HEADERS">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_MARKUP">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_fieldACTION_SCOPE_ID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletMode">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getWindowState">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPreferences">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperty1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperty2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperty3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperties1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperties2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getProperties3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPropertyNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPropertyNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPortalContext">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAuthType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAuthType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getContextPath1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getContextPath2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getContextPath3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getRemoteUser1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getRemoteUser2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isUserInRole1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isUserInRole2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isUserInRole3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAttributeNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getAttributeNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameter1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameter2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameter3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameter4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameter5">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterValues1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterValues2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterValues3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterValues4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isSecure1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isSecure2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_setAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_setAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_setAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_removeAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_removeAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getResponseContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getResponseContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getLocale">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getLocales">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getScheme">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getServerName">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getServerPort">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getWindowID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getCookies1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getCookies2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiEvent_exists">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldUSER_INFO">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldCCPP_PROFILE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldBASIC_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldFORM_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldCLIENT_CERT_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldDIGEST_AUTH">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldACTION_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldEVENT_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldRESOURCE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldLIFECYCLE_PHASE">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldRENDER_PART">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldRENDER_HEADERS">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldRENDER_MARKUP">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_fieldACTION_SCOPE_ID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isWindowStateAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isWindowStateAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isPortletModeAllowed1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isPortletModeAllowed2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletMode">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getWindowState">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPreferences">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionA1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionA2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionB1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionB2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionB3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortletSessionB4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperty1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperty2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperty3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperties1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperties2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getProperties3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPropertyNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPropertyNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPortalContext">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAuthType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAuthType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getContextPath1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getContextPath2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getContextPath3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getRemoteUser1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getRemoteUser2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getUserPrincipal1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getUserPrincipal2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isUserInRole1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isUserInRole2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isUserInRole3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAttributeNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getAttributeNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameter1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameter2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameter3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameter4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameter5">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterNames1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterNames2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterValues1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterValues2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterValues3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterValues4">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isSecure1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isSecure2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_setAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_setAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_setAttribute3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_removeAttribute1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_removeAttribute2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getRequestedSessionId1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getRequestedSessionId2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isRequestedSessionIdValid1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_isRequestedSessionIdValid2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getResponseContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getResponseContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getResponseContentTypes1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getResponseContentTypes2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getLocale">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getLocales">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getScheme">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getServerName">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getServerPort">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getWindowID">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getCookies1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getCookies2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPrivateParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_getPublicParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_PortletRequest_ApiResource_exists">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding4">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getReader1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getReader2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getReader3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getReader5">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getContentLength1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getContentLength2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiAction_getMethod">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding4">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getReader1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getReader2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getReader3">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getReader5">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getContentType1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getContentType2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getContentLength1">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getContentLength2">V2RequestTests</entry>
+<entry key="V2RequestTests_ClientDataRequest_ApiResource_getMethod">V2RequestTests</entry>
+<entry key="V2RequestTests_ActionRequest_ApiAction_fieldACTION_NAME">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_fieldETAG">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getETag2">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getResourceID1">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getResourceID2">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap1">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap2">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap3">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getPrivateRenderParameterMap4">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getResponseContentType">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getResponseContentTypes">V2RequestTests</entry>
+<entry key="V2RequestTests_ResourceRequest_ApiResource_getCacheability">V2RequestTests</entry>
+<entry key="V2RequestTests_EventRequest_ApiEvent_getEvent">V2RequestTests</entry>
+<entry key="V2RequestTests_EventRequest_ApiEvent_getMethod">V2RequestTests</entry>
+<entry key="V2RequestTests_RenderRequest_ApiRender_fieldETAG">V2RequestTests</entry>
+<entry key="V2RequestTests_RenderRequest_ApiRender_getETag2">V2RequestTests</entry>
</properties>
[26/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
new file mode 100644
index 0000000..d30a2ba
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
@@ -0,0 +1,901 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_PortletRequest_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldUSER_INFO */
+ /* Details: "Has String field USER_INFO with value of */
+ /* \"javax.portlet.userinfo\" " */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDUSER_INFO);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCCPP_PROFILE */
+ /* Details: "Has String field CCPP_PROFILE with value of */
+ /* \"javax.portlet.ccpp\" " */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDCCPP_PROFILE);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldBASIC_AUTH */
+ /* Details: "Has String field BASIC_AUTH with value of \"BASIC\" " */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDBASIC_AUTH);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldFORM_AUTH */
+ /* Details: "Has String field FORM_AUTH with value of \"FORM\" " */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDFORM_AUTH);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldCLIENT_CERT_AUTH */
+ /* Details: "Has String field CLIENT_CERT_AUTH with value of */
+ /* \"CLIENT_CERT\" " */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDCLIENT_CERT_AUTH);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldDIGEST_AUTH */
+ /* Details: "Has String field DIGEST_AUTH with value of \"DIGEST\" " */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDDIGEST_AUTH);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_PHASE */
+ /* Details: "Has String field ACTION_PHASE with value of */
+ /* \"ACTION_PHASE\" " */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDACTION_PHASE);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldEVENT_PHASE */
+ /* Details: "Has String field EVENT_PHASE with value of */
+ /* \"EVENT_PHASE\" " */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDEVENT_PHASE);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PHASE */
+ /* Details: "Has String field RENDER_PHASE with value of */
+ /* \"RENDER_PHASE\" " */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_PHASE);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRESOURCE_PHASE */
+ /* Details: "Has String field RESOURCE_PHASE with value of */
+ /* \"RESOURCE_PHASE\" " */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRESOURCE_PHASE);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldLIFECYCLE_PHASE */
+ /* Details: "Has String field LIFECYCLE_PHASE with value of */
+ /* \"javax.portlet.lifecycle_phase\" " */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDLIFECYCLE_PHASE);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_PART */
+ /* Details: "Has String field RENDER_PART with value of */
+ /* \"javax.portlet.render_part\" " */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_PART);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_HEADERS */
+ /* Details: "Has String field RENDER_HEADERS with value of */
+ /* \"RENDER_HEADERS\" " */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_HEADERS);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldRENDER_MARKUP */
+ /* Details: "Has String field RENDER_MARKUP with value of */
+ /* \"RENDER_MARKUP\" " */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDRENDER_MARKUP);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_fieldACTION_SCOPE_ID */
+ /* Details: "Has String field ACTION_SCOPE_ID with value of */
+ /* \"javax.portlet.as\" " */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_FIELDACTION_SCOPE_ID);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed1 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns true */
+ /* if the specified WindowState is allowed" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISWINDOWSTATEALLOWED1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isWindowStateAllowed2 */
+ /* Details: "Method isWindowStateAllowed(WindowState): Returns false */
+ /* if the specified WindowState is not allowed" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISWINDOWSTATEALLOWED2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed1 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns true */
+ /* if the specified PortletMode is allowed" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISPORTLETMODEALLOWED1);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isPortletModeAllowed2 */
+ /* Details: "Method isPortletModeAllowed(PortletMode): Returns false */
+ /* if the specified PortletMode is not allowed" */
+ TestResult tr18 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISPORTLETMODEALLOWED2);
+ /* TODO: implement test */
+ tr18.appendTcDetail("Not implemented.");
+ tr18.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletMode */
+ /* Details: "Method getPortletMode(): Returns current PortletMode " */
+ TestResult tr19 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETMODE);
+ /* TODO: implement test */
+ tr19.appendTcDetail("Not implemented.");
+ tr19.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getWindowState */
+ /* Details: "Method getWindowState(): Returns current WindowState" */
+ TestResult tr20 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETWINDOWSTATE);
+ /* TODO: implement test */
+ tr20.appendTcDetail("Not implemented.");
+ tr20.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPreferences */
+ /* Details: "Method getPreferences(): Returns the PortletPreferences */
+ /* object associated with the portlet" */
+ TestResult tr21 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPREFERENCES);
+ /* TODO: implement test */
+ tr21.appendTcDetail("Not implemented.");
+ tr21.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA1 */
+ /* Details: "Method getPortletSession(): Returns current */
+ /* PortletSession if one already exists" */
+ TestResult tr22 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONA1);
+ /* TODO: implement test */
+ tr22.appendTcDetail("Not implemented.");
+ tr22.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionA2 */
+ /* Details: "Method getPortletSession(): Returns new PortletSession */
+ /* if one does not already exist" */
+ TestResult tr23 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONA2);
+ /* TODO: implement test */
+ tr23.appendTcDetail("Not implemented.");
+ tr23.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB1 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns current PortletSession if one already exists" */
+ TestResult tr24 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONB1);
+ /* TODO: implement test */
+ tr24.appendTcDetail("Not implemented.");
+ tr24.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB2 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* true, returns new PortletSession if one does not already exist" */
+ TestResult tr25 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONB2);
+ /* TODO: implement test */
+ tr25.appendTcDetail("Not implemented.");
+ tr25.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB3 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns current PortletSession if one already exists" */
+ TestResult tr26 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONB3);
+ /* TODO: implement test */
+ tr26.appendTcDetail("Not implemented.");
+ tr26.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortletSessionB4 */
+ /* Details: "Method getPortletSession(boolean): If input flag is */
+ /* false, returns null if one does not already exist" */
+ TestResult tr27 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTLETSESSIONB4);
+ /* TODO: implement test */
+ tr27.appendTcDetail("Not implemented.");
+ tr27.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty1 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property exists, returns its value " */
+ TestResult tr28 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTY1);
+ /* TODO: implement test */
+ tr28.appendTcDetail("Not implemented.");
+ tr28.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty2 */
+ /* Details: "Method getProperty(String): If specified request */
+ /* property does not exist, returns null" */
+ TestResult tr29 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTY2);
+ /* TODO: implement test */
+ tr29.appendTcDetail("Not implemented.");
+ tr29.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperty3 */
+ /* Details: "Method getProperty(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr30 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTY3);
+ /* TODO: implement test */
+ tr30.appendTcDetail("Not implemented.");
+ tr30.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties1 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property exists, returns its values as an Enumeration " */
+ TestResult tr31 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTIES1);
+ /* TODO: implement test */
+ tr31.appendTcDetail("Not implemented.");
+ tr31.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties2 */
+ /* Details: "Method getProperties(String): If specified request */
+ /* property does not exist, returns an empty Enumeration" */
+ TestResult tr32 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTIES2);
+ /* TODO: implement test */
+ tr32.appendTcDetail("Not implemented.");
+ tr32.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getProperties3 */
+ /* Details: "Method getProperties(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr33 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTIES3);
+ /* TODO: implement test */
+ tr33.appendTcDetail("Not implemented.");
+ tr33.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPropertyNames1 */
+ /* Details: "Method getPropertyNames(): Returns an Enumeration of all */
+ /* request property names" */
+ TestResult tr34 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTYNAMES1);
+ /* TODO: implement test */
+ tr34.appendTcDetail("Not implemented.");
+ tr34.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPropertyNames2 */
+ /* Details: "Method getPropertyNames(): Returns an empty Enumeration */
+ /* if there are no request properties defined" */
+ TestResult tr35 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPROPERTYNAMES2);
+ /* TODO: implement test */
+ tr35.appendTcDetail("Not implemented.");
+ tr35.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPortalContext */
+ /* Details: "Method getPortalContext(): Returns the context of the */
+ /* portal" */
+ TestResult tr36 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPORTALCONTEXT);
+ /* TODO: implement test */
+ tr36.appendTcDetail("Not implemented.");
+ tr36.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAuthType1 */
+ /* Details: "Method getAuthType(): Returns a String indicating the */
+ /* authentication type if the request was authenticated" */
+ TestResult tr37 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETAUTHTYPE1);
+ /* TODO: implement test */
+ tr37.appendTcDetail("Not implemented.");
+ tr37.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAuthType2 */
+ /* Details: "Method getAuthType(): Returns null if the request was */
+ /* not authenticated" */
+ TestResult tr38 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETAUTHTYPE2);
+ /* TODO: implement test */
+ tr38.appendTcDetail("Not implemented.");
+ tr38.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath1 */
+ /* Details: "Method getContextPath(): Returns a String representing */
+ /* the context path associated with the portlet" */
+ TestResult tr39 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETCONTEXTPATH1);
+ /* TODO: implement test */
+ tr39.appendTcDetail("Not implemented.");
+ tr39.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath2 */
+ /* Details: "Method getContextPath(): Returns an empty String if the */
+ /* portlet is deployed in the default context" */
+ TestResult tr40 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETCONTEXTPATH2);
+ /* TODO: implement test */
+ tr40.appendTcDetail("Not implemented.");
+ tr40.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getContextPath3 */
+ /* Details: "Method getContextPath(): If the context path is not */
+ /* empty, it must start with \"/\" and may not end with \"/\"" */
+ TestResult tr41 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETCONTEXTPATH3);
+ /* TODO: implement test */
+ tr41.appendTcDetail("Not implemented.");
+ tr41.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRemoteUser1 */
+ /* Details: "Method getRemoteUser(): Returns a String representing */
+ /* the login of the user if the request is authenticated" */
+ TestResult tr42 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETREMOTEUSER1);
+ /* TODO: implement test */
+ tr42.appendTcDetail("Not implemented.");
+ tr42.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRemoteUser2 */
+ /* Details: "Method getRemoteUser(): Returns null if the request has */
+ /* not been authenticated" */
+ TestResult tr43 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETREMOTEUSER2);
+ /* TODO: implement test */
+ tr43.appendTcDetail("Not implemented.");
+ tr43.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal1 */
+ /* Details: "Method getUserPrincipal(): Returns a */
+ /* java.security.Principal object representing the user if the */
+ /* request has been authenticated" */
+ TestResult tr44 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETUSERPRINCIPAL1);
+ /* TODO: implement test */
+ tr44.appendTcDetail("Not implemented.");
+ tr44.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getUserPrincipal2 */
+ /* Details: "Method getUserPrincipal(): Returns null if the request */
+ /* has not been authenticated" */
+ TestResult tr45 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETUSERPRINCIPAL2);
+ /* TODO: implement test */
+ tr45.appendTcDetail("Not implemented.");
+ tr45.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole1 */
+ /* Details: "Method isUserInRole(): Returns true if the authenticated */
+ /* user is in the specified role" */
+ TestResult tr46 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISUSERINROLE1);
+ /* TODO: implement test */
+ tr46.appendTcDetail("Not implemented.");
+ tr46.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole2 */
+ /* Details: "Method isUserInRole(): Returns false if the */
+ /* authenticated user is not in the specified role" */
+ TestResult tr47 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISUSERINROLE2);
+ /* TODO: implement test */
+ tr47.appendTcDetail("Not implemented.");
+ tr47.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isUserInRole3 */
+ /* Details: "Method isUserInRole(): Returns false if the user is not */
+ /* authenticated" */
+ TestResult tr48 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISUSERINROLE3);
+ /* TODO: implement test */
+ tr48.appendTcDetail("Not implemented.");
+ tr48.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute1 */
+ /* Details: "Method getAttribute(String): Returns a java.lang.Object */
+ /* for the specified attribute name" */
+ TestResult tr49 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTE1);
+ /* TODO: implement test */
+ tr49.appendTcDetail("Not implemented.");
+ tr49.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute2 */
+ /* Details: "Method getAttribute(String): Returns null if no */
+ /* attribute with the specified name exists" */
+ TestResult tr50 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTE2);
+ /* TODO: implement test */
+ tr50.appendTcDetail("Not implemented.");
+ tr50.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttribute3 */
+ /* Details: "Method getAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr51 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTE3);
+ /* TODO: implement test */
+ tr51.appendTcDetail("Not implemented.");
+ tr51.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttributeNames1 */
+ /* Details: "Method getAttributeNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* attribute names" */
+ TestResult tr52 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTENAMES1);
+ /* TODO: implement test */
+ tr52.appendTcDetail("Not implemented.");
+ tr52.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getAttributeNames2 */
+ /* Details: "Method getAttributeNames(): Returns an empty Enumeration */
+ /* if there are no attributes available" */
+ TestResult tr53 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETATTRIBUTENAMES2);
+ /* TODO: implement test */
+ tr53.appendTcDetail("Not implemented.");
+ tr53.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter1 */
+ /* Details: "Method getParameter(String): Returns String value of */
+ /* parameter specified by the name" */
+ TestResult tr54 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER1);
+ /* TODO: implement test */
+ tr54.appendTcDetail("Not implemented.");
+ tr54.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter2 */
+ /* Details: "Method getParameter(String): Returns String value of a */
+ /* public render parameter specified by the name" */
+ TestResult tr55 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER2);
+ /* TODO: implement test */
+ tr55.appendTcDetail("Not implemented.");
+ tr55.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter3 */
+ /* Details: "Method getParameter(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr56 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER3);
+ /* TODO: implement test */
+ tr56.appendTcDetail("Not implemented.");
+ tr56.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter4 */
+ /* Details: "Method getParameter(String): Returns first String value */
+ /* from values array if use with a multivalued parameter" */
+ TestResult tr57 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER4);
+ /* TODO: implement test */
+ tr57.appendTcDetail("Not implemented.");
+ tr57.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameter5 */
+ /* Details: "Method getParameter(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr58 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETER5);
+ /* TODO: implement test */
+ tr58.appendTcDetail("Not implemented.");
+ tr58.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterNames1 */
+ /* Details: "Method getParameterNames(): Returns a */
+ /* java.util.Enumeration<java.lang.String> of the available */
+ /* parameter names" */
+ TestResult tr59 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERNAMES1);
+ /* TODO: implement test */
+ tr59.appendTcDetail("Not implemented.");
+ tr59.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterNames2 */
+ /* Details: "Method getParameterNames(): Returns an empty Enumeration */
+ /* if there are no parameters available" */
+ TestResult tr60 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERNAMES2);
+ /* TODO: implement test */
+ tr60.appendTcDetail("Not implemented.");
+ tr60.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues1 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of parameter specified by the name" */
+ TestResult tr61 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERVALUES1);
+ /* TODO: implement test */
+ tr61.appendTcDetail("Not implemented.");
+ tr61.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues2 */
+ /* Details: "Method getParameterValues(String): Returns String[] */
+ /* value of a public render parameter specified by the name" */
+ TestResult tr62 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERVALUES2);
+ /* TODO: implement test */
+ tr62.appendTcDetail("Not implemented.");
+ tr62.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues3 */
+ /* Details: "Method getParameterValues(String): Returns null if no */
+ /* parameter exists for the specified name" */
+ TestResult tr63 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERVALUES3);
+ /* TODO: implement test */
+ tr63.appendTcDetail("Not implemented.");
+ tr63.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterValues4 */
+ /* Details: "Method getParameterValues(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr64 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERVALUES4);
+ /* TODO: implement test */
+ tr64.appendTcDetail("Not implemented.");
+ tr64.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap1 */
+ /* Details: "Method getParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the parameter names and values if parameters are available" */
+ TestResult tr65 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERMAP1);
+ /* TODO: implement test */
+ tr65.appendTcDetail("Not implemented.");
+ tr65.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap2 */
+ /* Details: "Method getParameterMap(): The returned map contains all */
+ /* public and private parameters for the request" */
+ TestResult tr66 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERMAP2);
+ /* TODO: implement test */
+ tr66.appendTcDetail("Not implemented.");
+ tr66.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getParameterMap3 */
+ /* Details: "Method getParameterMap(): Returns an empty map if no */
+ /* parameters exist" */
+ TestResult tr67 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPARAMETERMAP3);
+ /* TODO: implement test */
+ tr67.appendTcDetail("Not implemented.");
+ tr67.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isSecure1 */
+ /* Details: "Method isSecure(): Returns true if the request was made */
+ /* through a secure channel" */
+ TestResult tr68 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISSECURE1);
+ /* TODO: implement test */
+ tr68.appendTcDetail("Not implemented.");
+ tr68.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isSecure2 */
+ /* Details: "Method isSecure(): Returns false if the request was not */
+ /* made through a secure channel" */
+ TestResult tr69 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISSECURE2);
+ /* TODO: implement test */
+ tr69.appendTcDetail("Not implemented.");
+ tr69.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute1 */
+ /* Details: "Method setAttribute(String, Object): Stores an attribute */
+ /* object under the specified name in the request" */
+ TestResult tr70 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_SETATTRIBUTE1);
+ /* TODO: implement test */
+ tr70.appendTcDetail("Not implemented.");
+ tr70.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute2 */
+ /* Details: "Method setAttribute(String, Object): Removes the */
+ /* attribute by the specified name if the object is null" */
+ TestResult tr71 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_SETATTRIBUTE2);
+ /* TODO: implement test */
+ tr71.appendTcDetail("Not implemented.");
+ tr71.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_setAttribute3 */
+ /* Details: "Method setAttribute(String, Object): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr72 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_SETATTRIBUTE3);
+ /* TODO: implement test */
+ tr72.appendTcDetail("Not implemented.");
+ tr72.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_removeAttribute1 */
+ /* Details: "Method removeAttribute(String): Removes the attribute */
+ /* specified by the name from the request" */
+ TestResult tr73 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_REMOVEATTRIBUTE1);
+ /* TODO: implement test */
+ tr73.appendTcDetail("Not implemented.");
+ tr73.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_removeAttribute2 */
+ /* Details: "Method removeAttribute(String): Throws */
+ /* IllegalArgumentException if the name is null" */
+ TestResult tr74 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_REMOVEATTRIBUTE2);
+ /* TODO: implement test */
+ tr74.appendTcDetail("Not implemented.");
+ tr74.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId1 */
+ /* Details: "Method getRequestedSessionId(): Returns the session ID */
+ /* indicated in the client request" */
+ TestResult tr75 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETREQUESTEDSESSIONID1);
+ /* TODO: implement test */
+ tr75.appendTcDetail("Not implemented.");
+ tr75.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getRequestedSessionId2 */
+ /* Details: "Method getRequestedSessionId(): Returns null if no */
+ /* session ID was indicated in the client request" */
+ TestResult tr76 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETREQUESTEDSESSIONID2);
+ /* TODO: implement test */
+ tr76.appendTcDetail("Not implemented.");
+ tr76.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid1 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns true if the */
+ /* session ID is valid" */
+ TestResult tr77 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISREQUESTEDSESSIONIDVALID1);
+ /* TODO: implement test */
+ tr77.appendTcDetail("Not implemented.");
+ tr77.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_isRequestedSessionIdValid2 */
+ /* Details: "Method isRequestedSessionIdValid(): Returns false if the */
+ /* session ID is not valid" */
+ TestResult tr78 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_ISREQUESTEDSESSIONIDVALID2);
+ /* TODO: implement test */
+ tr78.appendTcDetail("Not implemented.");
+ tr78.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentType1 */
+ /* Details: "Method getResponseContentType(): Returns a String */
+ /* representing the portal preferred content type for the response if */
+ /* the content type is defined in the portlet descriptor " */
+ TestResult tr79 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETRESPONSECONTENTTYPE1);
+ /* TODO: implement test */
+ tr79.appendTcDetail("Not implemented.");
+ tr79.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentType2 */
+ /* Details: "Method getResponseContentType(): Returns an empty */
+ /* Enumeration if the content type is not defined in the portlet */
+ /* descriptor" */
+ TestResult tr80 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETRESPONSECONTENTTYPE2);
+ /* TODO: implement test */
+ tr80.appendTcDetail("Not implemented.");
+ tr80.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes1 */
+ /* Details: "Method getResponseContentTypes(): Returns an */
+ /* java.util.Enumeration<java.lang.String> object representing */
+ /* the portal preferred content types for the response if the content */
+ /* types are defined in the portlet descriptor" */
+ TestResult tr81 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETRESPONSECONTENTTYPES1);
+ /* TODO: implement test */
+ tr81.appendTcDetail("Not implemented.");
+ tr81.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getResponseContentTypes2 */
+ /* Details: "Method getResponseContentTypes(): Returns an empty */
+ /* Enumeration if the content types are not defined in the portlet */
+ /* descriptor" */
+ TestResult tr82 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETRESPONSECONTENTTYPES2);
+ /* TODO: implement test */
+ tr82.appendTcDetail("Not implemented.");
+ tr82.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getLocale */
+ /* Details: "Method getLocale(): Returns an java.util.Locale object */
+ /* representing the preferred Locale for the response" */
+ TestResult tr83 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETLOCALE);
+ /* TODO: implement test */
+ tr83.appendTcDetail("Not implemented.");
+ tr83.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getLocales */
+ /* Details: "Method getLocales(): Returns an */
+ /* java.util.Enumeration<java.util.Locale> of the Locales in */
+ /* which the portal will accept content" */
+ TestResult tr84 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETLOCALES);
+ /* TODO: implement test */
+ tr84.appendTcDetail("Not implemented.");
+ tr84.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getScheme */
+ /* Details: "Method getScheme(): Returns a String value representing */
+ /* the scheme name for the request" */
+ TestResult tr85 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETSCHEME);
+ /* TODO: implement test */
+ tr85.appendTcDetail("Not implemented.");
+ tr85.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getServerName */
+ /* Details: "Method getServerName(): Returns a String value */
+ /* representing the host name for the request" */
+ TestResult tr86 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETSERVERNAME);
+ /* TODO: implement test */
+ tr86.appendTcDetail("Not implemented.");
+ tr86.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getServerPort */
+ /* Details: "Method getServerPort(): Returns an int value */
+ /* representing the port number for the request" */
+ TestResult tr87 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETSERVERPORT);
+ /* TODO: implement test */
+ tr87.appendTcDetail("Not implemented.");
+ tr87.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getWindowID */
+ /* Details: "Method getWindowID(): Returns a String value */
+ /* representing the portlet window ID" */
+ TestResult tr88 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETWINDOWID);
+ /* TODO: implement test */
+ tr88.appendTcDetail("Not implemented.");
+ tr88.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getCookies1 */
+ /* Details: "Method getCookies(): Returns a */
+ /* javax.servlet.http.Cookie[] array containing the cookies for this */
+ /* request" */
+ TestResult tr89 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETCOOKIES1);
+ /* TODO: implement test */
+ tr89.appendTcDetail("Not implemented.");
+ tr89.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getCookies2 */
+ /* Details: "Method getCookies(): Returns null if no cookies are */
+ /* present" */
+ TestResult tr90 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETCOOKIES2);
+ /* TODO: implement test */
+ tr90.appendTcDetail("Not implemented.");
+ tr90.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap1 */
+ /* Details: "Method getPrivateParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the private parameter names and values if available" */
+ TestResult tr91 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPRIVATEPARAMETERMAP1);
+ /* TODO: implement test */
+ tr91.appendTcDetail("Not implemented.");
+ tr91.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap2 */
+ /* Details: "Method getPrivateParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr92 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPRIVATEPARAMETERMAP2);
+ /* TODO: implement test */
+ tr92.appendTcDetail("Not implemented.");
+ tr92.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPrivateParameterMap3 */
+ /* Details: "Method getPrivateParameterMap(): Returns an empty map if */
+ /* no private parameters exist" */
+ TestResult tr93 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPRIVATEPARAMETERMAP3);
+ /* TODO: implement test */
+ tr93.appendTcDetail("Not implemented.");
+ tr93.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap1 */
+ /* Details: "Method getPublicParameterMap(): Returns an */
+ /* java.util.Map<java.lang.String,java.lang.String[]> object */
+ /* for the public parameter names and values if available" */
+ TestResult tr94 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPUBLICPARAMETERMAP1);
+ /* TODO: implement test */
+ tr94.appendTcDetail("Not implemented.");
+ tr94.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap2 */
+ /* Details: "Method getPublicParameterMap(): The returned map is */
+ /* immutable" */
+ TestResult tr95 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPUBLICPARAMETERMAP2);
+ /* TODO: implement test */
+ tr95.appendTcDetail("Not implemented.");
+ tr95.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_getPublicParameterMap3 */
+ /* Details: "Method getPublicParameterMap(): Returns an empty map if */
+ /* no public parameters exist" */
+ TestResult tr96 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_GETPUBLICPARAMETERMAP3);
+ /* TODO: implement test */
+ tr96.appendTcDetail("Not implemented.");
+ tr96.writeTo(writer);
+
+ /* TestCase: V2RequestTests_PortletRequest_ApiEvent_exists */
+ /* Details: "Method exists(): The P3PUserInfos exist as a public */
+ /* static enum" */
+ TestResult tr97 = tcd.getTestResultFailed(V2REQUESTTESTS_PORTLETREQUEST_APIEVENT_EXISTS);
+ /* TODO: implement test */
+ tr97.appendTcDetail("Not implemented.");
+ tr97.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>RequestTests_PortletRequest_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "RequestTests_PortletRequest_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
[30/63] [abbrv] Moved filter test cases to proper filter method.
Added keyword "Api" to test case names whose definitions were derived from
the API documentation to allow targeted test runs for that group of tests.
Posted by ms...@apache.org.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
new file mode 100644
index 0000000..fb1c10c
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
@@ -0,0 +1,453 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_ClientDataRequest_ApiAction_event
+ *
+ */
+public class RequestTests_ClientDataRequest_ApiAction implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_ClientDataRequest_ApiAction.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream1 */
+ /* Details: "Method getPortletInputStream(): Returns an InputStream */
+ /* object" */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream2 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if getReader was already called" */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream3 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if the request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding1 */
+ /* Details: "Method setCharacterEncoding(String): Allows the */
+ /* character encoding for the body of the request to be overridden" */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding2 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after reading request */
+ /* parameters" */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding3 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after using the */
+ /* getReader(): method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding4 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* UnsupportedEncodingException if the specified encoding is not */
+ /* valid" */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader1 */
+ /* Details: "Method getReader(): Returns a BufferedReader object for */
+ /* reading the request" */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader2 */
+ /* Details: "Method getReader(): Throws IllegalStateException if */
+ /* getPortletInputStream was already called" */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader3 */
+ /* Details: "Method getReader(): Throws IllegalStateException if the */
+ /* request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader5 */
+ /* Details: "Method getReader(): Throws UnsupportedEncodingException */
+ /* if the character set encoding is not valid so that the text cannot */
+ /* be decoded" */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding1 */
+ /* Details: "Method getCharacterEncoding(): Returns a String */
+ /* containing the name of the character encoding used in the request */
+ /* body" */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding2 */
+ /* Details: "Method getCharacterEncoding(): Returns null if the */
+ /* request does not specify a character encoding" */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType1 */
+ /* Details: "Method getContentType(): Returns a String containing the */
+ /* MIME type of the request body" */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType2 */
+ /* Details: "Method getContentType(): Returns null if the MIME type */
+ /* is unknown" */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength1 */
+ /* Details: "Method getContentLength(): Returns the length in bytes */
+ /* of the request body" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength2 */
+ /* Details: "Method getContentLength(): Returns -1 if the length is */
+ /* unknown" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getMethod */
+ /* Details: "Method getMethod(): Returns a String containing the name */
+ /* of the HTTP method with which the request was made" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_ApiAction",
+ writer.toString(), APPLICATION_SCOPE);
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ PortletSession ps = portletReq.getPortletSession();
+ String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_ApiAction", APPLICATION_SCOPE);
+ if (msg != null) {
+ writer.write("<p>" + msg + "</p><br/>\n");
+ ps.removeAttribute(RESULT_ATTR_PREFIX + "RequestTests_ClientDataRequest_ApiAction", APPLICATION_SCOPE);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream1 */
+ /* Details: "Method getPortletInputStream(): Returns an InputStream */
+ /* object" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream2 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if getReader was already called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream3 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if the request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding1 */
+ /* Details: "Method setCharacterEncoding(String): Allows the */
+ /* character encoding for the body of the request to be overridden" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding2 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after reading request */
+ /* parameters" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding3 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after using the */
+ /* getReader(): method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding4 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* UnsupportedEncodingException if the specified encoding is not */
+ /* valid" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding4", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader1 */
+ /* Details: "Method getReader(): Returns a BufferedReader object for */
+ /* reading the request" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getReader1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader2 */
+ /* Details: "Method getReader(): Throws IllegalStateException if */
+ /* getPortletInputStream was already called" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getReader2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader3 */
+ /* Details: "Method getReader(): Throws IllegalStateException if the */
+ /* request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getReader3", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader5 */
+ /* Details: "Method getReader(): Throws UnsupportedEncodingException */
+ /* if the character set encoding is not valid so that the text cannot */
+ /* be decoded" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getReader5", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding1 */
+ /* Details: "Method getCharacterEncoding(): Returns a String */
+ /* containing the name of the character encoding used in the request */
+ /* body" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding2 */
+ /* Details: "Method getCharacterEncoding(): Returns null if the */
+ /* request does not specify a character encoding" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType1 */
+ /* Details: "Method getContentType(): Returns a String containing the */
+ /* MIME type of the request body" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getContentType1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType2 */
+ /* Details: "Method getContentType(): Returns null if the MIME type */
+ /* is unknown" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getContentType2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength1 */
+ /* Details: "Method getContentLength(): Returns the length in bytes */
+ /* of the request body" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getContentLength1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength2 */
+ /* Details: "Method getContentLength(): Returns -1 if the length is */
+ /* unknown" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getContentLength2", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getMethod */
+ /* Details: "Method getMethod(): Returns a String containing the name */
+ /* of the HTTP method with which the request was made" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_ClientDataRequest_ApiAction_getMethod", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
new file mode 100644
index 0000000..6c17c37
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
@@ -0,0 +1,271 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_ClientDataRequest_ApiResource_event
+ *
+ */
+public class RequestTests_ClientDataRequest_ApiResource implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_ClientDataRequest_ApiResource.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream1 */
+ /* Details: "Method getPortletInputStream(): Returns an InputStream */
+ /* object" */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream2 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if getReader was already called" */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream3 */
+ /* Details: "Method getPortletInputStream(): Throws */
+ /* IllegalStateException if the request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
+ /* TODO: implement test */
+ tr2.appendTcDetail("Not implemented.");
+ tr2.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding1 */
+ /* Details: "Method setCharacterEncoding(String): Allows the */
+ /* character encoding for the body of the request to be overridden" */
+ TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
+ /* TODO: implement test */
+ tr3.appendTcDetail("Not implemented.");
+ tr3.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding2 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after reading request */
+ /* parameters" */
+ TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
+ /* TODO: implement test */
+ tr4.appendTcDetail("Not implemented.");
+ tr4.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding3 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* IllegalStateException if method is called after using the */
+ /* getReader(): method" */
+ TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
+ /* TODO: implement test */
+ tr5.appendTcDetail("Not implemented.");
+ tr5.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding4 */
+ /* Details: "Method setCharacterEncoding(String): Throws */
+ /* UnsupportedEncodingException if the specified encoding is not */
+ /* valid" */
+ TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
+ /* TODO: implement test */
+ tr6.appendTcDetail("Not implemented.");
+ tr6.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader1 */
+ /* Details: "Method getReader(): Returns a BufferedReader object for */
+ /* reading the request" */
+ TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
+ /* TODO: implement test */
+ tr7.appendTcDetail("Not implemented.");
+ tr7.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader2 */
+ /* Details: "Method getReader(): Throws IllegalStateException if */
+ /* getPortletInputStream was already called" */
+ TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
+ /* TODO: implement test */
+ tr8.appendTcDetail("Not implemented.");
+ tr8.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader3 */
+ /* Details: "Method getReader(): Throws IllegalStateException if the */
+ /* request has HTTP POST data of type */
+ /* application/x-www-form-urlencoded" */
+ TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
+ /* TODO: implement test */
+ tr9.appendTcDetail("Not implemented.");
+ tr9.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader5 */
+ /* Details: "Method getReader(): Throws UnsupportedEncodingException */
+ /* if the character set encoding is not valid so that the text cannot */
+ /* be decoded" */
+ TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
+ /* TODO: implement test */
+ tr10.appendTcDetail("Not implemented.");
+ tr10.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding1 */
+ /* Details: "Method getCharacterEncoding(): Returns a String */
+ /* containing the name of the character encoding used in the request */
+ /* body" */
+ TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
+ /* TODO: implement test */
+ tr11.appendTcDetail("Not implemented.");
+ tr11.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding2 */
+ /* Details: "Method getCharacterEncoding(): Returns null if the */
+ /* request does not specify a character encoding" */
+ TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
+ /* TODO: implement test */
+ tr12.appendTcDetail("Not implemented.");
+ tr12.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentType1 */
+ /* Details: "Method getContentType(): Returns a String containing the */
+ /* MIME type of the request body" */
+ TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
+ /* TODO: implement test */
+ tr13.appendTcDetail("Not implemented.");
+ tr13.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentType2 */
+ /* Details: "Method getContentType(): Returns null if the MIME type */
+ /* is unknown" */
+ TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
+ /* TODO: implement test */
+ tr14.appendTcDetail("Not implemented.");
+ tr14.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentLength1 */
+ /* Details: "Method getContentLength(): Returns the length in bytes */
+ /* of the request body" */
+ TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
+ /* TODO: implement test */
+ tr15.appendTcDetail("Not implemented.");
+ tr15.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentLength2 */
+ /* Details: "Method getContentLength(): Returns -1 if the length is */
+ /* unknown" */
+ TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
+ /* TODO: implement test */
+ tr16.appendTcDetail("Not implemented.");
+ tr16.writeTo(writer);
+
+ /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getMethod */
+ /* Details: "Method getMethod(): Returns a String containing the name */
+ /* of the HTTP method with which the request was made" */
+ TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
+ /* TODO: implement test */
+ tr17.appendTcDetail("Not implemented.");
+ tr17.writeTo(writer);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ writer.write("<div id=\"RequestTests_ClientDataRequest_ApiResource\">no resource output.</div>\n");
+ ResourceURL resurl = portletResp.createResourceURL();
+ resurl.setCacheability(PAGE);
+ writer.write("<script>\n");
+ writer.write("(function () {\n");
+ writer.write(" var xhr = new XMLHttpRequest();\n");
+ writer.write(" xhr.onreadystatechange=function() {\n");
+ writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
+ writer.write(" document.getElementById(\"RequestTests_ClientDataRequest_ApiResource\").innerHTML=xhr.responseText;\n");
+ writer.write(" }\n");
+ writer.write(" };\n");
+ writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+ writer.write(" xhr.send();\n");
+ writer.write("})();\n");
+ writer.write("</script>\n");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Resource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Resource.java
deleted file mode 100644
index 0b72d54..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_Resource.java
+++ /dev/null
@@ -1,271 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_ClientDataRequest_Resource_event
- *
- */
-public class RequestTests_ClientDataRequest_Resource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ClientDataRequest_Resource.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getPortletInputStream1 */
- /* Details: "Method getPortletInputStream(): Returns an InputStream */
- /* object" */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETPORTLETINPUTSTREAM1);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getPortletInputStream2 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if getReader was already called" */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETPORTLETINPUTSTREAM2);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getPortletInputStream3 */
- /* Details: "Method getPortletInputStream(): Throws */
- /* IllegalStateException if the request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETPORTLETINPUTSTREAM3);
- /* TODO: implement test */
- tr2.appendTcDetail("Not implemented.");
- tr2.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding1 */
- /* Details: "Method setCharacterEncoding(String): Allows the */
- /* character encoding for the body of the request to be overridden" */
- TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_SETCHARACTERENCODING1);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding2 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after reading request */
- /* parameters" */
- TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_SETCHARACTERENCODING2);
- /* TODO: implement test */
- tr4.appendTcDetail("Not implemented.");
- tr4.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding3 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* IllegalStateException if method is called after using the */
- /* getReader(): method" */
- TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_SETCHARACTERENCODING3);
- /* TODO: implement test */
- tr5.appendTcDetail("Not implemented.");
- tr5.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_setCharacterEncoding4 */
- /* Details: "Method setCharacterEncoding(String): Throws */
- /* UnsupportedEncodingException if the specified encoding is not */
- /* valid" */
- TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_SETCHARACTERENCODING4);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getReader1 */
- /* Details: "Method getReader(): Returns a BufferedReader object for */
- /* reading the request" */
- TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETREADER1);
- /* TODO: implement test */
- tr7.appendTcDetail("Not implemented.");
- tr7.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getReader2 */
- /* Details: "Method getReader(): Throws IllegalStateException if */
- /* getPortletInputStream was already called" */
- TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETREADER2);
- /* TODO: implement test */
- tr8.appendTcDetail("Not implemented.");
- tr8.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getReader3 */
- /* Details: "Method getReader(): Throws IllegalStateException if the */
- /* request has HTTP POST data of type */
- /* application/x-www-form-urlencoded" */
- TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETREADER3);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getReader5 */
- /* Details: "Method getReader(): Throws UnsupportedEncodingException */
- /* if the character set encoding is not valid so that the text cannot */
- /* be decoded" */
- TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETREADER5);
- /* TODO: implement test */
- tr10.appendTcDetail("Not implemented.");
- tr10.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getCharacterEncoding1 */
- /* Details: "Method getCharacterEncoding(): Returns a String */
- /* containing the name of the character encoding used in the request */
- /* body" */
- TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCHARACTERENCODING1);
- /* TODO: implement test */
- tr11.appendTcDetail("Not implemented.");
- tr11.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getCharacterEncoding2 */
- /* Details: "Method getCharacterEncoding(): Returns null if the */
- /* request does not specify a character encoding" */
- TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCHARACTERENCODING2);
- /* TODO: implement test */
- tr12.appendTcDetail("Not implemented.");
- tr12.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getContentType1 */
- /* Details: "Method getContentType(): Returns a String containing the */
- /* MIME type of the request body" */
- TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCONTENTTYPE1);
- /* TODO: implement test */
- tr13.appendTcDetail("Not implemented.");
- tr13.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getContentType2 */
- /* Details: "Method getContentType(): Returns null if the MIME type */
- /* is unknown" */
- TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCONTENTTYPE2);
- /* TODO: implement test */
- tr14.appendTcDetail("Not implemented.");
- tr14.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getContentLength1 */
- /* Details: "Method getContentLength(): Returns the length in bytes */
- /* of the request body" */
- TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCONTENTLENGTH1);
- /* TODO: implement test */
- tr15.appendTcDetail("Not implemented.");
- tr15.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getContentLength2 */
- /* Details: "Method getContentLength(): Returns -1 if the length is */
- /* unknown" */
- TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETCONTENTLENGTH2);
- /* TODO: implement test */
- tr16.appendTcDetail("Not implemented.");
- tr16.writeTo(writer);
-
- /* TestCase: V2RequestTests_ClientDataRequest_Resource_getMethod */
- /* Details: "Method getMethod(): Returns a String containing the name */
- /* of the HTTP method with which the request was made" */
- TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_RESOURCE_GETMETHOD);
- /* TODO: implement test */
- tr17.appendTcDetail("Not implemented.");
- tr17.writeTo(writer);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- writer.write("<div id=\"RequestTests_ClientDataRequest_Resource\">no resource output.</div>\n");
- ResourceURL resurl = portletResp.createResourceURL();
- resurl.setCacheability(PAGE);
- writer.write("<script>\n");
- writer.write("(function () {\n");
- writer.write(" var xhr = new XMLHttpRequest();\n");
- writer.write(" xhr.onreadystatechange=function() {\n");
- writer.write(" if (xhr.readyState==4 && xhr.status==200) {\n");
- writer.write(" document.getElementById(\"RequestTests_ClientDataRequest_Resource\").innerHTML=xhr.responseText;\n");
- writer.write(" }\n");
- writer.write(" };\n");
- writer.write(" xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
- writer.write(" xhr.send();\n");
- writer.write("})();\n");
- writer.write("</script>\n");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
new file mode 100644
index 0000000..8dda3a0
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
@@ -0,0 +1,124 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion
+ * portlet RequestTests_EventRequest_ApiEvent_event
+ *
+ */
+public class RequestTests_EventRequest_ApiEvent implements Portlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_EventRequest_ApiEvent.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+
+ portletResp.setRenderParameters(portletReq.getParameterMap());
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ QName eventQName = new QName(TCKNAMESPACE,
+ "RequestTests_EventRequest_ApiEvent");
+ portletResp.setEvent(eventQName, "Hi!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ PrintWriter writer = portletResp.getWriter();
+
+ /* TestCase: V2RequestTests_EventRequest_ApiEvent_getEvent */
+ /* Details: "Method getEvent(): Returns the Event object that */
+ /* triggered the call to the processEvent method" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_EventRequest_ApiEvent_getEvent", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2RequestTests_EventRequest_ApiEvent_getMethod */
+ /* Details: "Method getMethod(): Returns a String containing the name */
+ /* of the HTTP method with which the request was made" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2RequestTests_EventRequest_ApiEvent_getMethod", aurl);
+ tb.writeTo(writer);
+ }
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
new file mode 100644
index 0000000..ebb0edf
--- /dev/null
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
@@ -0,0 +1,125 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.PortletSession.*;
+
+/**
+ * This is the event processing portlet for the test cases. This portlet processes events,
+ * but does not publish them. Events are published in the main portlet for the test cases.
+ */
+public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
+ private static final String LOG_CLASS =
+ RequestTests_EventRequest_ApiEvent_event.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+ }
+
+ @Override
+ public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
+ }
+
+ @Override
+ public void processEvent(EventRequest portletReq, EventResponse portletResp)
+ throws PortletException, IOException {
+ LOGGER.entering(LOG_CLASS, "event companion processEvent");
+
+
+ portletResp.setRenderParameters(portletReq);
+
+ long tid = Thread.currentThread().getId();
+ portletReq.setAttribute(THREADID_ATTR, tid);
+
+ StringWriter writer = new StringWriter();
+
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+ // Create result objects for the tests
+
+ /* TestCase: V2RequestTests_EventRequest_ApiEvent_getEvent */
+ /* Details: "Method getEvent(): Returns the Event object that */
+ /* triggered the call to the processEvent method" */
+ TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_APIEVENT_GETEVENT);
+ /* TODO: implement test */
+ tr0.appendTcDetail("Not implemented.");
+ tr0.writeTo(writer);
+
+ /* TestCase: V2RequestTests_EventRequest_ApiEvent_getMethod */
+ /* Details: "Method getMethod(): Returns a String containing the name */
+ /* of the HTTP method with which the request was made" */
+ TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_APIEVENT_GETMETHOD);
+ /* TODO: implement test */
+ tr1.appendTcDetail("Not implemented.");
+ tr1.writeTo(writer);
+
+ portletReq.getPortletSession().setAttribute(
+ Constants.RESULT_ATTR_PREFIX + "RequestTests_EventRequest_ApiEvent",
+ writer.toString(), APPLICATION_SCOPE);
+
+ }
+
+ @Override
+ public void render(RenderRequest portletReq, RenderResponse portletResp)
+ throws PortletException, IOException {
+
+ LOGGER.entering(LOG_CLASS, "event companion render");
+
+ portletResp.setContentType("text/html");
+ PrintWriter writer = portletResp.getWriter();
+ writer.write("<h3>Event Companion Portlet </h3>\n");
+ writer.write("<p>RequestTests_EventRequest_ApiEvent_event</p>\n");
+
+ String msg = (String) portletReq.getPortletSession()
+ .getAttribute(RESULT_ATTR_PREFIX + "RequestTests_EventRequest_ApiEvent", APPLICATION_SCOPE);
+ msg = (msg==null) ? "Not ready. click test case link." : msg;
+ writer.write("<p>" + msg + "</p>\n");
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event.java
deleted file mode 100644
index 7182bf8..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
-
-/**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
- *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion
- * portlet RequestTests_EventRequest_Event_event
- *
- */
-public class RequestTests_EventRequest_Event implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_EventRequest_Event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
- portletResp.setRenderParameters(portletReq.getParameterMap());
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- QName eventQName = new QName(TCKNAMESPACE,
- "RequestTests_EventRequest_Event");
- portletResp.setEvent(eventQName, "Hi!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- PrintWriter writer = portletResp.getWriter();
-
- /* TestCase: V2RequestTests_EventRequest_Event_getEvent */
- /* Details: "Method getEvent(): Returns the Event object that */
- /* triggered the call to the processEvent method" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_EventRequest_Event_getEvent", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2RequestTests_EventRequest_Event_getMethod */
- /* Details: "Method getMethod(): Returns a String containing the name */
- /* of the HTTP method with which the request was made" */
- {
- PortletURL aurl = portletResp.createActionURL();
- aurl.setParameters(portletReq.getPrivateParameterMap());
- TestButton tb = new TestButton("V2RequestTests_EventRequest_Event_getMethod", aurl);
- tb.writeTo(writer);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event_event.java
deleted file mode 100644
index e0cf864..0000000
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_Event_event.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package javax.portlet.tck.portlets;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events,
- * but does not publish them. Events are published in the main portlet for the test cases.
- */
-public class RequestTests_EventRequest_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_EventRequest_Event_event.class.getName();
- private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-
- private PortletConfig portletConfig = null;
-
- @Override
- public void init(PortletConfig config) throws PortletException {
- this.portletConfig = config;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public void processAction(ActionRequest portletReq, ActionResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
- }
-
- @Override
- public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
- }
-
- @Override
- public void processEvent(EventRequest portletReq, EventResponse portletResp)
- throws PortletException, IOException {
- LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
- portletResp.setRenderParameters(portletReq);
-
- long tid = Thread.currentThread().getId();
- portletReq.setAttribute(THREADID_ATTR, tid);
-
- StringWriter writer = new StringWriter();
-
- JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
- // Create result objects for the tests
-
- /* TestCase: V2RequestTests_EventRequest_Event_getEvent */
- /* Details: "Method getEvent(): Returns the Event object that */
- /* triggered the call to the processEvent method" */
- TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_EVENT_GETEVENT);
- /* TODO: implement test */
- tr0.appendTcDetail("Not implemented.");
- tr0.writeTo(writer);
-
- /* TestCase: V2RequestTests_EventRequest_Event_getMethod */
- /* Details: "Method getMethod(): Returns a String containing the name */
- /* of the HTTP method with which the request was made" */
- TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_EVENT_GETMETHOD);
- /* TODO: implement test */
- tr1.appendTcDetail("Not implemented.");
- tr1.writeTo(writer);
-
- portletReq.getPortletSession().setAttribute(
- Constants.RESULT_ATTR_PREFIX + "RequestTests_EventRequest_Event",
- writer.toString(), APPLICATION_SCOPE);
-
- }
-
- @Override
- public void render(RenderRequest portletReq, RenderResponse portletResp)
- throws PortletException, IOException {
-
- LOGGER.entering(LOG_CLASS, "event companion render");
-
- portletResp.setContentType("text/html");
- PrintWriter writer = portletResp.getWriter();
- writer.write("<h3>Event Companion Portlet </h3>\n");
- writer.write("<p>RequestTests_EventRequest_Event_event</p>\n");
-
- String msg = (String) portletReq.getPortletSession()
- .getAttribute(RESULT_ATTR_PREFIX + "RequestTests_EventRequest_Event", APPLICATION_SCOPE);
- msg = (msg==null) ? "Not ready. click test case link." : msg;
- writer.write("<p>" + msg + "</p>\n");
-
- }
-
-}