Skip to main content
Last updated June 04, 2013 12:32, by Martin Scott Nicklous
Feedicon  
===JSR 286 Parameter Handling Tests - Resource Phase Tests=== <table border="1"> <tr> <th>Preconditions</th> <th>Pluto</th> </tr><tr> <td colspan="3" align="left"> Test 1: <br/>// Create resource URL with no further processing - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); </td> </tr><tr> <td> <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td><td> <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td> </tr><tr> <td colspan="3" align="left"> Test 2: <br/>// Create resource URL with no further processing - <br/>ResourceURL resourceURL = resourceResponse.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=[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><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 3: <br/>// Create resource URL with no further processing - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <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> n/a </td> </tr><tr> <td colspan="3" align="left"> Test 4: <br/>// Create resource URL, setting parameter - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); <br/>resourceURL.setParameter("resourceURLParameter4", "44"); </td> </tr><tr> <td> <br/>mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>mapName=parameterMap: <br/>getParameterNames() and getParameterValues(): </td><td> mapName=publicParameterMap: <br/>mapName=privateParameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>mapName=parameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter4] values[0]=[44] </td> </tr><tr> <td colspan="3" align="left"> Test 5: <br/>// Create resource URL, setting parameter - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); <br/>resourceURL.setParameter("resourceURLParameter4", "44"); </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] </td><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter4] values[0]=[44] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 6: <br/>// Create resource URL, setting parameter - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); <br/>resourceURL.setParameter("resourceURLParameter4", "44"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <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> n/a </td> </tr><tr> <td colspan="3" align="left"> Test 7: <br/>// Create resource URL with no further processing - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); </td> </tr><tr> <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><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 8: <br/>// Create resource URL, setting parameter - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); <br/>resourceURL.setParameter("resourceURLParameter4", "44"); </td> </tr><tr> <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><td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>mapName=parameterMap: <br/>key=[resourceURLParameter4] values[0]=[44] <br/>key=[privateRenderParameter1] values[0]=[1] <br/>key=[publicRenderParameter1] values[0]=[2] <br/>getParameterNames() and getParameterValues(): <br/>Name=[resourceURLParameter4] values[0]=[44] <br/>Name=[publicRenderParameter1] values[0]=[2] <br/>Name=[privateRenderParameter1] values[0]=[1] </td> </tr><tr> <td colspan="3" align="left"> Test 9: <br/>// Create resource URL with no further processing - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>key=[resourceURLParameter3] values[0]=[Barney] <br/>key=[resourceURLParameter3] values[1]=[Betty] <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/>key=[resourceURLParameter3] values[0]=[Barney] <br/>key=[resourceURLParameter3] values[1]=[Betty] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[35] <br/>Name=[privateRenderParameter1] values[1]=[1] <br/>Name=[publicRenderParameter1] values[0]=[30] <br/>Name=[publicRenderParameter1] values[1]=[2] <br/>Name=[resourceURLParameter2] values[0]=[40] <br/>Name=[resourceURLParameter3] values[0]=[Barney] <br/>Name=[resourceURLParameter3] values[1]=[Betty] </td><td> n/a </td> </tr><tr> <td colspan="3" align="left"> Test 10: <br/>// Create resource URL, setting parameter - <br/>ResourceURL resourceURL = resourceResponse.createResourceURL(); <br/>resourceURL.setParameter("resourceURLParameter4", "44"); </td> </tr><tr> <td> mapName=publicParameterMap: <br/>key=[publicRenderParameter1] values[0]=[2] <br/>mapName=privateParameterMap: <br/>key=[privateRenderParameter1] values[0]=[35] <br/>key=[publicRenderParameter1] values[0]=[30] <br/>key=[resourceURLParameter2] values[0]=[40] <br/>key=[resourceURLParameter3] values[0]=[Barney] <br/>key=[resourceURLParameter3] values[1]=[Betty] <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/>key=[resourceURLParameter3] values[0]=[Barney] <br/>key=[resourceURLParameter3] values[1]=[Betty] <br/>getParameterNames() and getParameterValues(): <br/>Name=[privateRenderParameter1] values[0]=[35] <br/>Name=[privateRenderParameter1] values[1]=[1] <br/>Name=[publicRenderParameter1] values[0]=[30] <br/>Name=[publicRenderParameter1] values[1]=[2] <br/>Name=[resourceURLParameter2] values[0]=[40] <br/>Name=[resourceURLParameter3] values[0]=[Barney] <br/>Name=[resourceURLParameter3] values[1]=[Betty] </td><td> n/a </td> </tr><tr> <td colspan="3" align="left"> Test 11: </td> </tr><tr> <td> (no parameters set) </td><td> (pluto) </td> </tr> </table>
 
 
Close
loading
Please Confirm
Close