|
32 | 32 |
|
33 | 33 | public class QueryParametersTest { |
34 | 34 |
|
35 | | - private String simpleInputQueryString = "one=1&two=2&three=3&four&five=4%2F5%266%2B7"; |
| 35 | + private String simpleInputQueryString = "one=1&two=2&three=3&four&five=4%2F5%266%2B7&six=val+ue"; |
36 | 36 |
|
37 | | - private String complexInputQueryString = "one=1&one=11&two=2&two=22&three=3&four&five=4%2F5%266%2B7"; |
| 37 | + private String complexInputQueryString = "one=1&one=11&two=2&two=22&three=3&four&five=4%2F5%266%2B7&six=val+ue"; |
38 | 38 |
|
39 | 39 | private Map<String, String> getSimpleInputParameters() { |
40 | 40 | Map<String, String> inputParameters = new HashMap<>(); |
@@ -106,6 +106,7 @@ public void simpleParametersFromQueryString() { |
106 | 106 | expectedFullParams.put("three", Collections.singletonList("3")); |
107 | 107 | expectedFullParams.put("four", Collections.singletonList("")); |
108 | 108 | expectedFullParams.put("five", Collections.singletonList("4/5&6+7")); |
| 109 | + expectedFullParams.put("six", Collections.singletonList("val+ue")); |
109 | 110 | assertEquals(expectedFullParams, simpleParams.getParameters()); |
110 | 111 | } |
111 | 112 |
|
@@ -158,6 +159,7 @@ public void complexParametersFromQueryString() { |
158 | 159 | expectedFullParams.put("three", Collections.singletonList("3")); |
159 | 160 | expectedFullParams.put("four", Collections.singletonList("")); |
160 | 161 | expectedFullParams.put("five", Collections.singletonList("4/5&6+7")); |
| 162 | + expectedFullParams.put("six", Collections.singletonList("val+ue")); |
161 | 163 | assertEquals(expectedFullParams, fullParams.getParameters()); |
162 | 164 | } |
163 | 165 |
|
|
0 commit comments