@@ -174,10 +174,10 @@ public void testUpdateSimpleFormParam() throws IOException {
174174 public void testUpdateComplexFormParam () throws IOException {
175175 HttpRequest .Builder localRequestBuilder = new HttpRequest .Builder ().httpMethod (Method .GET )
176176 .formParam (param -> param .key ("form" )
177- .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
177+ .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
178178
179179 updateAndVerify (localRequestBuilder , "$request.body#/form/NumberOfElectrons" ,
180- ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
180+ ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
181181 }
182182
183183 @ Test
@@ -192,28 +192,29 @@ public void testUpdateSimpleQueryParam() throws IOException {
192192 public void testUpdateComplexQueryParam () throws IOException {
193193 HttpRequest .Builder localRequestBuilder = new HttpRequest .Builder ().httpMethod (Method .GET )
194194 .queryParam (param -> param .key ("que" )
195- .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
195+ .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
196196
197197 updateAndVerify (localRequestBuilder , "$request.query#/que/NumberOfElectrons" ,
198- ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
198+ ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
199199 }
200200
201201 @ Test
202202 public void testUpdateSimpleHeaderParam () throws IOException {
203203 HttpRequest .Builder localRequestBuilder = new HttpRequest .Builder ().httpMethod (Method .GET )
204204 .headerParam (param -> param .key ("head" ).value (HEADER_DEFAULT ));
205205
206- updateAndVerify (localRequestBuilder , "$request.headers#/head" , HEADER_DEFAULT , HEADER_UPDATED );
206+ updateAndVerify (localRequestBuilder , "$request.headers#/head" ,
207+ HEADER_DEFAULT , HEADER_UPDATED );
207208 }
208209
209210 @ Test
210211 public void testUpdateComplexHeaderParam () throws IOException {
211212 HttpRequest .Builder localRequestBuilder = new HttpRequest .Builder ().httpMethod (Method .GET )
212213 .headerParam (param -> param .key ("head" )
213- .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
214+ .value (new Atom (ELECTRONS_DEFAULT , ELECTRONS_DEFAULT )));
214215
215216 updateAndVerify (localRequestBuilder , "$request.headers#/head/NumberOfElectrons" ,
216- ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
217+ ELECTRONS_DEFAULT , ELECTRONS_UPDATED );
217218 }
218219
219220 @ Test
@@ -231,19 +232,19 @@ public void testUpdateComplexBodyParam() throws IOException {
231232 .bodyParam (param -> param .value (new Atom (ATOM_NUMBER , ATOM_MASS )));
232233
233234 updateAndVerify (localRequestBuilder , "$request.body#/NumberOfElectrons" ,
234- ATOM_NUMBER , ATOM_MASS );
235+ ATOM_NUMBER , ATOM_MASS );
235236 }
236237
237238 @ Test
238239 public void testUpdateMultipleComplexBodyParams () throws IOException {
239240 HttpRequest .Builder localRequestBuilder = new HttpRequest .Builder ().httpMethod (Method .POST )
240241 .bodyParam (param -> param .key ("bodyA" )
241- .value (new Atom (BODY_A_ELECTRONS , BODY_A_MASS )))
242+ .value (new Atom (BODY_A_ELECTRONS , BODY_A_MASS )))
242243 .bodyParam (param -> param .key ("bodyB" )
243- .value (new Atom (BODY_B_ELECTRONS , BODY_B_MASS )));
244+ .value (new Atom (BODY_B_ELECTRONS , BODY_B_MASS )));
244245
245246 updateAndVerify (localRequestBuilder , "$request.body#/bodyB/NumberOfElectrons" ,
246- BODY_B_ELECTRONS , BODY_B_UPDATED );
247+ BODY_B_ELECTRONS , BODY_B_UPDATED );
247248 }
248249
249250 @ Test
@@ -255,7 +256,7 @@ public void testUpdateSimpleBodyParam() throws IOException {
255256 }
256257
257258 private void updateAndVerify (HttpRequest .Builder requestBuilder ,
258- String pointer , Object oldValue , Object newValue ) {
259+ String pointer , Object oldValue , Object newValue ) {
259260 requestBuilder .updateParameterByJsonPointer (pointer , old -> {
260261 assertEquals (oldValue .toString (), old .toString ());
261262 return newValue ;
@@ -273,8 +274,8 @@ private void updateAndVerify(HttpRequest.Builder requestBuilder,
273274 public void testBodyParamValidation () throws IOException {
274275 // when
275276 new HttpRequest .Builder ()
276- .httpMethod (Method .POST )
277- .bodyParam (param -> param .value (null ))
277+ .httpMethod (Method .POST )
278+ .bodyParam (param -> param .value (null ))
278279 .build (getMockGlobalConfig ());
279280 }
280281
0 commit comments