Skip to main content
This revision made June 04, 2013 12:32, by Martin Scott Nicklous
« earlier revision revert to this « later revision

JSR 286 Parameter Handling Tests - Resource Phase Tests

PreconditionsPluto
Test 1:
// Create resource URL with no further processing -
ResourceURL resourceURL = resourceResponse.createResourceURL();

mapName=publicParameterMap:
mapName=privateParameterMap:
mapName=parameterMap:
getParameterNames() and getParameterValues():

mapName=publicParameterMap:
mapName=privateParameterMap:
mapName=parameterMap:
getParameterNames() and getParameterValues():
Test 2:
// Create resource URL with no further processing -
ResourceURL resourceURL = resourceResponse.createResourceURL();
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]
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 3:
// Create resource URL with no further processing -
ResourceURL resourceURL = resourceResponse.createResourceURL();
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
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]
n/a
Test 4:
// Create resource URL, setting parameter -
ResourceURL resourceURL = resourceResponse.createResourceURL();
resourceURL.setParameter("resourceURLParameter4", "44");

mapName=publicParameterMap:
mapName=privateParameterMap:
mapName=parameterMap:
getParameterNames() and getParameterValues():
mapName=publicParameterMap:
mapName=privateParameterMap:
key=[resourceURLParameter4] values[0]=[44]
mapName=parameterMap:
key=[resourceURLParameter4] values[0]=[44]
getParameterNames() and getParameterValues():
Name=[resourceURLParameter4] values[0]=[44]
Test 5:
// Create resource URL, setting parameter -
ResourceURL resourceURL = resourceResponse.createResourceURL();
resourceURL.setParameter("resourceURLParameter4", "44");
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]
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
key=[resourceURLParameter4] values[0]=[44]
key=[privateRenderParameter1] values[0]=[1]
mapName=parameterMap:
key=[resourceURLParameter4] values[0]=[44]
key=[privateRenderParameter1] values[0]=[1]
key=[publicRenderParameter1] values[0]=[2]
getParameterNames() and getParameterValues():
Name=[resourceURLParameter4] values[0]=[44]
Name=[publicRenderParameter1] values[0]=[2]
Name=[privateRenderParameter1] values[0]=[1]
Test 6:
// Create resource URL, setting parameter -
ResourceURL resourceURL = resourceResponse.createResourceURL();
resourceURL.setParameter("resourceURLParameter4", "44");
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
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]
n/a
Test 7:
// Create resource URL with no further processing -
ResourceURL resourceURL = resourceResponse.createResourceURL();
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]
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:
// Create resource URL, setting parameter -
ResourceURL resourceURL = resourceResponse.createResourceURL();
resourceURL.setParameter("resourceURLParameter4", "44");
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]
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
key=[resourceURLParameter4] values[0]=[44]
key=[privateRenderParameter1] values[0]=[1]
mapName=parameterMap:
key=[resourceURLParameter4] values[0]=[44]
key=[privateRenderParameter1] values[0]=[1]
key=[publicRenderParameter1] values[0]=[2]
getParameterNames() and getParameterValues():
Name=[resourceURLParameter4] values[0]=[44]
Name=[publicRenderParameter1] values[0]=[2]
Name=[privateRenderParameter1] values[0]=[1]
Test 9:
// Create resource URL with no further processing -
ResourceURL resourceURL = resourceResponse.createResourceURL();
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
key=[privateRenderParameter1] values[0]=[35]
key=[publicRenderParameter1] values[0]=[30]
key=[resourceURLParameter2] values[0]=[40]
key=[resourceURLParameter3] values[0]=[Barney]
key=[resourceURLParameter3] values[1]=[Betty]
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]
key=[resourceURLParameter3] values[0]=[Barney]
key=[resourceURLParameter3] values[1]=[Betty]
getParameterNames() and getParameterValues():
Name=[privateRenderParameter1] values[0]=[35]
Name=[privateRenderParameter1] values[1]=[1]
Name=[publicRenderParameter1] values[0]=[30]
Name=[publicRenderParameter1] values[1]=[2]
Name=[resourceURLParameter2] values[0]=[40]
Name=[resourceURLParameter3] values[0]=[Barney]
Name=[resourceURLParameter3] values[1]=[Betty]
n/a
Test 10:
// Create resource URL, setting parameter -
ResourceURL resourceURL = resourceResponse.createResourceURL();
resourceURL.setParameter("resourceURLParameter4", "44");
mapName=publicParameterMap:
key=[publicRenderParameter1] values[0]=[2]
mapName=privateParameterMap:
key=[privateRenderParameter1] values[0]=[35]
key=[publicRenderParameter1] values[0]=[30]
key=[resourceURLParameter2] values[0]=[40]
key=[resourceURLParameter3] values[0]=[Barney]
key=[resourceURLParameter3] values[1]=[Betty]
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]
key=[resourceURLParameter3] values[0]=[Barney]
key=[resourceURLParameter3] values[1]=[Betty]
getParameterNames() and getParameterValues():
Name=[privateRenderParameter1] values[0]=[35]
Name=[privateRenderParameter1] values[1]=[1]
Name=[publicRenderParameter1] values[0]=[30]
Name=[publicRenderParameter1] values[1]=[2]
Name=[resourceURLParameter2] values[0]=[40]
Name=[resourceURLParameter3] values[0]=[Barney]
Name=[resourceURLParameter3] values[1]=[Betty]
n/a
Test 11:
(no parameters set) (pluto)

 
 
Close
loading
Please Confirm
Close