@@ -91,7 +91,8 @@ void successPathBindsRequestContextDuringChain() throws Exception {
9191 Optional .empty (),
9292 List .of (),
9393 Map .of (),
94- Map .of ());
94+ Map .of (),
95+ Optional .empty ());
9596 Spec spec = specWith (op );
9697 Filter f = newFilter (spec );
9798 HttpExchange ex = exchange ("GET" , "/users/42" , new byte [0 ]);
@@ -128,7 +129,8 @@ void unknownPathThrowsNotFound() {
128129 Optional .empty (),
129130 List .of (),
130131 Map .of (),
131- Map .of ()));
132+ Map .of (),
133+ Optional .empty ()));
132134 Filter f = newFilter (spec );
133135
134136 HttpExchange ex = exchange ("GET" , "/missing" , new byte [0 ]);
@@ -147,7 +149,8 @@ void wrongMethodThrowsMethodNotAllowed() {
147149 Optional .empty (),
148150 List .of (),
149151 Map .of (),
150- Map .of ()));
152+ Map .of (),
153+ Optional .empty ()));
151154 Filter f = newFilter (spec );
152155
153156 HttpExchange ex = exchange ("POST" , "/x" , new byte [0 ]);
@@ -167,7 +170,8 @@ void invalidQueryParamThrowsValidation() {
167170 Optional .empty (),
168171 List .of (new Parameter ("q" , Parameter .Location .QUERY , true , stringSchema )),
169172 Map .of (),
170- Map .of ());
173+ Map .of (),
174+ Optional .empty ());
171175 Spec spec = specWith (op );
172176 Filter f = newFilter (spec );
173177
@@ -190,7 +194,8 @@ void integerQueryParamIsCoercedFromStringBeforeValidation() throws Exception {
190194 Optional .empty (),
191195 List .of (new Parameter ("n" , Parameter .Location .QUERY , true , intSchema )),
192196 Map .of (),
193- Map .of ());
197+ Map .of (),
198+ Optional .empty ());
194199 Spec spec = specWith (op );
195200 Filter f = newFilter (spec );
196201
@@ -212,7 +217,8 @@ void integerQueryParamRejectsNonNumericString() {
212217 Optional .empty (),
213218 List .of (new Parameter ("n" , Parameter .Location .QUERY , true , intSchema )),
214219 Map .of (),
215- Map .of ());
220+ Map .of (),
221+ Optional .empty ());
216222 Spec spec = specWith (op );
217223 Filter f = newFilter (spec );
218224
@@ -235,7 +241,8 @@ void numberQueryParamIsCoercedFromStringBeforeValidation() throws Exception {
235241 Optional .empty (),
236242 List .of (new Parameter ("n" , Parameter .Location .QUERY , true , numSchema )),
237243 Map .of (),
238- Map .of ());
244+ Map .of (),
245+ Optional .empty ());
239246 Spec spec = specWith (op );
240247 Filter f = newFilter (spec );
241248
@@ -257,7 +264,8 @@ void numberQueryParamRejectsNonNumericString() {
257264 Optional .empty (),
258265 List .of (new Parameter ("n" , Parameter .Location .QUERY , true , numSchema )),
259266 Map .of (),
260- Map .of ());
267+ Map .of (),
268+ Optional .empty ());
261269 Spec spec = specWith (op );
262270 Filter f = newFilter (spec );
263271
@@ -279,7 +287,8 @@ void booleanQueryParamCoercesTrueAndFalse() throws Exception {
279287 Optional .empty (),
280288 List .of (new Parameter ("b" , Parameter .Location .QUERY , true , boolSchema )),
281289 Map .of (),
282- Map .of ());
290+ Map .of (),
291+ Optional .empty ());
283292 Spec spec = specWith (op );
284293 Filter f = newFilter (spec );
285294
@@ -304,7 +313,8 @@ void booleanQueryParamRejectsNonBooleanString() {
304313 Optional .empty (),
305314 List .of (new Parameter ("b" , Parameter .Location .QUERY , true , boolSchema )),
306315 Map .of (),
307- Map .of ());
316+ Map .of (),
317+ Optional .empty ());
308318 Spec spec = specWith (op );
309319 Filter f = newFilter (spec );
310320
0 commit comments