@@ -379,8 +379,8 @@ void relativeResourcesAreEqual() throws Exception {
379
379
@ Test
380
380
void unusualRelativeResourcesAreEqual () throws Exception {
381
381
Resource resource = new UrlResource ("file:dir/" );
382
- Resource relative = resource .createRelative ("http ://spring.io" );
383
- assertThat (relative ).isEqualTo (new UrlResource ("file:dir/http ://spring.io" ));
382
+ Resource relative = resource .createRelative ("https ://spring.io" );
383
+ assertThat (relative ).isEqualTo (new UrlResource ("file:dir/https ://spring.io" ));
384
384
}
385
385
386
386
@ Test
@@ -421,14 +421,14 @@ void canCustomizeHttpUrlConnectionForRead() throws Exception {
421
421
@ Test
422
422
void useUserInfoToSetBasicAuth () throws Exception {
423
423
startServer ();
424
- UrlResource resource = new UrlResource ("http://alice:secret@localhost:"
425
- + this .server .getPort () + "/resource" );
424
+ UrlResource resource = new UrlResource (
425
+ "http://alice:secret@localhost:" + this .server .getPort () + "/resource" );
426
426
assertThat (resource .getInputStream ()).hasContent ("Spring" );
427
427
RecordedRequest request = this .server .takeRequest ();
428
428
String authorization = request .getHeader ("Authorization" );
429
429
assertThat (authorization ).isNotNull ().startsWith ("Basic " );
430
- assertThat (new String (Base64 .getDecoder ().decode (
431
- authorization . substring ( 6 )), StandardCharsets .ISO_8859_1 )).isEqualTo ("alice:secret" );
430
+ assertThat (new String (Base64 .getDecoder ().decode (authorization . substring ( 6 )),
431
+ StandardCharsets .ISO_8859_1 )).isEqualTo ("alice:secret" );
432
432
}
433
433
434
434
@ AfterEach
0 commit comments