Skip to main content
Last updated June 04, 2013 12:35, by Martin Scott Nicklous
Feedicon  
===JSR 286 Parameter Handling Tests - Render Phase Tests=== This page summarizes parameter handling test results. ====Parameter Naming==== ;privateRenderParameter :Private parameter set on a RenderURL :Private parameter set on an ActionResponse or EventResponse (Action phase) ;publicRenderParameter :Public parameter set on a RenderURL :Public parameter set on an ActionURL :Public parameter set on a ResourceURL :Public parameter set on an ActionResponse or EventResponse (Action phase) ;actionParameter :Private parameter set on an ActionURL ;resourceParameter :Private parameter set on a ResourceURL <table border="1"> <tr> <th>Preconditions</th> <th>Pluto</th> </tr><tr> <td colspan="3" align="left"> Test 1: <br/>// Create render URL w/o parameters - <br/>PortletURL renderURL = renderResponse.createRenderURL(); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 2: <br/>// Create Render URL, copying all parameters from request using map - <br/>renderURL = renderResponse.createRenderURL(); <br/>Map&lt;String, String[]&gt; parmMap = renderRequest.getParameterMap(); <br/>renderURL.setParameters(parmMap); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 3: <br/>// set public & private render parameters - <br/>PortletURL renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("publicRenderParameter1", "2"); <br/>renderURL.setParameter("privateRenderParameter1", "1"); </td> </tr><tr> <td> (no parameters set) </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 4: <br/>// set public & private render parameters, making use of map - <br/>PortletURL renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("publicRenderParameter1", "2"); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>String[] values = {"Fred", "Wilma", "Pebbles"}; <br/>renderURL.getParameterMap().put("privateRenderParameter2", values); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 5: <br/>// Resource URL with no further processing - <br/>renderResponse.createResourceURL() </td> </tr><tr> <td> (no parameters set) </td><td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td> </tr><tr> <td colspan="3" align="left"> Test 6: <br/>// Resource URL with no further processing - <br/>renderResponse.createResourceURL() </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 7: <br/>// Resource URL attempting to remove parameters - <br/>ResourceURL resourceURL = renderResponse.createResourceURL(); <br/>try { resourceURL.setParameter("publicRenderParameter1", (String) null); } <br/>catch(Exception e) {writer.write("remove publicRenderParameter1 from URL failed.&lt;br/&gt;" + e.getMessage() + "&lt;br/&gt;");} <br/>try { resourceURL.setParameter("privateRenderParameter1", (String) null); } <br/>catch(Exception e) {writer.write("remove privateRenderParameter1 from URL failed.&lt;br/&gt;" + e.getMessage() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> In Render Phase: <br/>remove publicRenderParameter1 from URL failed. <br/>Illegal Argument: value (argument should not be null) <br/>remove privateRenderParameter1 from URL failed. <br/>Illegal Argument: value (argument should not be null) <br/>In Resource Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 8: <br/>// Resource URL setting parameters using various means - <br/>resourceURL = renderResponse.createResourceURL(); <br/>resourceURL.setParameter("publicRenderParameter1", "30"); <br/>resourceURL.setParameter("privateRenderParameter1", "35"); <br/>resourceURL.setParameter("resourceURLParameter2", "40"); <br/>String[] values2 = {"Barney", "Betty"}; <br/>resourceURL.getParameterMap().put("resourceURLParameter3", values2); </td> </tr><tr> <td> (no parameters set) </td><td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter2] values[0]=[40] <br/>Name=[privateRenderParameter1] values[0]=[35] <br/>Name=[publicRenderParameter1] values[0]=[30] </td> </tr><tr> <td colspan="3" align="left"> Test 9: <br/>// Resource URL setting parameters using various means - <br/>resourceURL = renderResponse.createResourceURL(); <br/>resourceURL.setParameter("publicRenderParameter1", "30"); <br/>resourceURL.setParameter("privateRenderParameter1", "35"); <br/>resourceURL.setParameter("resourceURLParameter2", "40"); <br/>String[] values2 = {"Barney", "Betty"}; <br/>resourceURL.getParameterMap().put("resourceURLParameter3", values2); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[privateRenderParameter1] values[1]=[1] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[privateRenderParameter1] values[1]=[1] <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[publicRenderParameter1] values[1]=[2] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter2] values[0]=[40] <br/>Name=[publicRenderParameter1] values[0]=[30] <br/>Name=[publicRenderParameter1] values[1]=[2] <br/>Name=[privateRenderParameter1] values[0]=[35] <br/>Name=[privateRenderParameter1] values[1]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 10: <br/>// set & delete parameters on render URL through setParameter() using null string - <br/>testName = "createRenderURL(), remove parameters #1"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>Set&lt;String&gt; keySet = parmMap.keySet(); <br/>for (String key: keySet){ <br/> try { renderURL.setParameter(key, (String)null); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove " + key + " from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> RenderPhase (URL creation): <br/>remove privateRenderParameter1 from URL failed. <br/>Illegal Argument: value (argument should not be null) <br/>Render Phase (URL execution): <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 11: <br/>testName = "createRenderURL() remove parameters #3"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>parmMap = renderURL.getParameterMap(); <br/>keySet = parmMap.keySet(); <br/>String[] parmVals = {null}; <br/>for (String key: keySet){ <br/> try { parmMap.put(key, parmVals); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"updating map entry " + key + "failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} <br/>try { renderURL.setParameters(parmMap); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setParameters() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> Render Phase (URL creation): <br/>setParameters() failed. <br/>parameters map contains a values array which is empty or contains only null values <br/>Render Phase (URL executed): <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>renderRequest.getParameter("publicRenderParameter1")=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 12: <br/>// render URL with public render parameter removed - <br/>renderURL = renderResponse.createRenderURL(); <br/>try {renderURL.removePublicRenderParameter("publicRenderParameter1");} <br/>catch(Exception e) {writer.write("remove publicRenderParameter1 from URL failed.&lt;br/&gt;" + e.getMessage() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): <br/>renderRequest.getParameter("publicRenderParameter1")=[null] </td> </tr><tr> <td colspan="3" align="left"> Test 13: Create Action URL without adding parameters <br/>actionURL = renderResponse.createActionURL(); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: </td><td> Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: </td> </tr><tr> <td colspan="3" align="left"> Test 14: Create Action URL without adding parameters <br/>actionURL = renderResponse.createActionURL(); </td> </tr><tr> <td> (parameters in Render Phase when ActionURL created) <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[157] <br/>mapName=privateParameterMap: <br/>key=[actionURLParameter1] values[0]=[342] <br/>key=[ActionTest] values[0]=[10] <br/>mapName=parameterMap: <br/>key=[actionURLParameter1] values[0]=[342] <br/>key=[publicRenderParameter1] values[0]=[157] <br/>key=[ActionTest] values[0]=[10] </td><td> Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[157] <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[157] </td> </tr><tr> <td colspan="3" align="left"> Test 15: Create Action URL, setting parameters - <br/>PortletURL actionURL = renderResponse.createActionURL(); <br/>actionURL.setParameter("publicRenderParameter1", "100"); <br/>actionURL.setParameter("actionURLParameter1", "1"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: </td><td> Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] <br/>mapName=parameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] </td> </tr><tr> <td colspan="3" align="left"> Test 16: Create Action URL, put parameter using map before setParameter() <br/>PortletURL actionURL = renderResponse.createActionURL(); <br/>String[] values = {"30", "40", "50"}; <br/>try {actionURL.getParameterMap().put("actionURLParameter2", values);} <br/>catch(Exception e) {writer.write("Putting map values directly failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>actionURL.setParameter("publicRenderParameter1", "100"); <br/>actionURL.setParameter("actionURLParameter1", "1"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: </td><td> Render Phase: <br/>Putting map values directly failed. <br/>java.lang.UnsupportedOperationException <br/>Action Phase: <br/>Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] <br/>mapName=parameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] </td> </tr><tr> <td colspan="3" align="left"> Test 17: Create Action URL, put parameter using map after setParameter() <br/>PortletURL actionURL = renderResponse.createActionURL(); <br/>actionURL.setParameter("publicRenderParameter1", "100"); <br/>actionURL.setParameter("actionURLParameter1", "1"); <br/>String[] values = {"30", "40", "50"}; <br/>try {actionURL.getParameterMap().put("actionURLParameter2", values);} <br/>catch(Exception e) {writer.write("Putting map values directly failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: </td><td> Render Phase: <br/>(no exception) <br/>Action Phase: <br/>Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] <br/>mapName=parameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] </td> </tr><tr> <td colspan="3" align="left"> Test 18: Create Action URL, setting parameters - <br/>PortletURL actionURL = renderResponse.createActionURL(); <br/>actionURL.setParameter("publicRenderParameter1", "100"); <br/>actionURL.setParameter("actionURLParameter1", "1"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[15] <br/>mapName=privateParameterMap: <br/>key=[ActionTest] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[15] <br/>key=[ActionTest] values[0]=[1] </td><td> Messages from Action Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[15] <br/>mapName=privateParameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] <br/>mapName=parameterMap: <br/>key=[Pluto_PORTLETSPEC3_8_PORTLETSPEC3_8__2003234579_1_formParameter1] values[0]=[1] <br/>key=[actionURLParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[100] <br/>key=[publicRenderParameter1] values[1]=[15] </td> </tr><tr> <td colspan="3" align="left"> Test 19: <br/>// set & delete parameters on render URL through setParameter() using null string - <br/>testName = "createRenderURL(), remove parameters #1"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>Set&lt;String&gt; keySet = parmMap.keySet(); <br/>for (String key: keySet){ <br/> try { renderURL.setParameter(key, (String)null); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove " + key + " from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>remove publicRenderParameter1 from URL failed. <br/>java.lang.IllegalArgumentException: Illegal Argument: value (argument should not be null) <br/>remove privateRenderParameter1 from URL failed. <br/>java.lang.IllegalArgumentException: Illegal Argument: value (argument should not be null) <br/>Resulting render phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 20: <br/>// set & delete parameters on render URL through setParameter() using "" string - <br/>testName = "createRenderURL(), remove parameters #2"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>keySet = parmMap.keySet(); <br/>for (String key: keySet){ <br/> try { renderURL.setParameter(key, ""); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove " + key + " from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting render phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td> </tr><tr> <td colspan="3" align="left"> Test 21: <br/>// set & delete parameters on render URL through setParameters() using String[] {null} - <br/>testName = "createRenderURL() remove parameters #3"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>parmMap = renderURL.getParameterMap(); <br/>keySet = parmMap.keySet(); <br/>String[] parmVals = {null}; <br/>for (String key: keySet){ <br/> try { parmMap.put(key, parmVals); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"updating map entry " + key + "failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} <br/>try { renderURL.setParameters(parmMap); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setParameters() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>In test: createRenderURL() remove parameters #3: <br/>setParameters() failed. <br/>java.lang.IllegalStateException: parameters map contains a values array which is empty or contains only null values <br/>Resulting render phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 22: <br/>// set & delete parameters on render URL through setParameters() using String[] {""} - <br/>testName = "createRenderURL() remove parameters #4"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>parmMap = renderURL.getParameterMap(); <br/>keySet = parmMap.keySet(); <br/>String[] parmVals2 = {""}; <br/>for (String key: keySet){ <br/> try { parmMap.put(key, parmVals2); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"updating map entry " + key + "failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} <br/>try { renderURL.setParameters(parmMap); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setParameters() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting render phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 23: <br/>// Resource URL attempting to remove parameters using setParameter("parm", "") - <br/>testName = "createResourceURL(), remove parameters (\"\")"; <br/>resourceURL = renderResponse.createResourceURL(); <br/>try { resourceURL.setParameter("publicRenderParameter1", ""); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove publicRenderParameter1 from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>try { resourceURL.setParameter("privateRenderParameter1", ""); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove privateRenderParameter1 from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Resource Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[] <br/>key=[privateRenderParameter1] values[1]=[1] <br/>key=[publicRenderParameter1] values[0]=[] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[] <br/>key=[publicRenderParameter1] values[1]=[2] <br/>key=[privateRenderParameter1] values[0]=[] <br/>key=[privateRenderParameter1] values[1]=[1] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[] <br/>Name=[publicRenderParameter1] values[1]=[2] <br/>Name=[privateRenderParameter1] values[0]=[] <br/>Name=[privateRenderParameter1] values[1]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 24: <br/>// set & delete parameters on render URL through setParameters() using String[] {""} - <br/>testName = "createRenderURL() remove parameters #4"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>parmMap = renderURL.getParameterMap(); <br/>keySet = parmMap.keySet(); <br/>String[] parmVals2 = {""}; <br/>for (String key: keySet){ <br/> try { parmMap.put(key, parmVals2); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"updating map entry " + key + "failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} <br/>try { renderURL.setParameters(parmMap); } <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setParameters() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Render Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[publicRenderParameter1] values[0]=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 25: <br/>// set & delete parameters on render URL through setParameter() using "" string - <br/>testName = "createRenderURL(), remove parameters #2"; <br/>renderURL = renderResponse.createRenderURL(); <br/>renderURL.setParameter("privateRenderParameter1", "1"); <br/>keySet = parmMap.keySet(); <br/>for (String key: keySet){ <br/> try { renderURL.setParameter(key, ""); } <br/> catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"remove " + key + " from URL failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>} </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Render Phase: <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td> </tr><tr> <td colspan="3" align="left"> Test 26: <br/>// Create resource URL, setting parameter, cacheability=FULL - <br/>testName = "createResourceURL(), set parm, cache=FULL"; <br/>resourceURL = renderResponse.createResourceURL(); <br/>try {resourceURL.setCacheability(ResourceURL.FULL);} <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setCacheability() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>resourceURL.setParameter("resourceURLParameter3", "55"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Resource Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[resourceURLParameter3] values[0]=[55] <br/>mapName=parameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[resourceURLParameter3] values[0]=[55] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter3] values[0]=[55] <br/>Name=[publicRenderParameter1] values[0]=[2] </td> </tr><tr> <td colspan="3" align="left"> Test 27: <br/>// Create resource URL, setting parameter, cacheability=PORTLET - <br/>testName = "createResourceURL(), set parm, cache=PORTLET"; <br/>resourceURL = renderResponse.createResourceURL(); <br/>try {resourceURL.setCacheability(ResourceURL.PORTLET);} <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setCacheability() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>resourceURL.setParameter("resourceURLParameter3", "66"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Resource Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[resourceURLParameter3] values[0]=[66] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[resourceURLParameter3] values[0]=[66] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter3] values[0]=[66] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 28: <br/>// Create resource URL, setting parameter, cacheability=PAGE - <br/>testName = "createResourceURL(), set parm, cache=PAGE"; <br/>resourceURL = renderResponse.createResourceURL(); <br/>try {resourceURL.setCacheability(ResourceURL.PAGE);} <br/>catch(Exception e) {writer.write("In test: "+testName+":&lt;br/&gt;"+"setCacheability() failed.&lt;br/&gt;" + e.toString() + "&lt;br/&gt;");} <br/>resourceURL.setParameter("resourceURLParameter3", "77"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[1] <br/>Name=[publicRenderParameter1] values[0]=[2] </td><td> During URL generation: <br/>(no exception) <br/>Resulting Resource Phase: <br/>mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[resourceURLParameter3] values[0]=[77] <br/>mapName=parameterMap: <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>key=[resourceURLParameter3] values[0]=[77] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter3] values[0]=[77] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 29: </td> </tr><tr> <td> (no parameters set) </td><td> (pluto) </td> </tr> </table>
 
 
Close
loading
Please Confirm
Close