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

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

 
 
Close
loading
Please Confirm
Close