File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
spring-core/src/test/java/org/springframework/core/io Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -380,8 +380,8 @@ void relativeResourcesAreEqual() throws Exception {
380
380
@ Test
381
381
void unusualRelativeResourcesAreEqual () throws Exception {
382
382
Resource resource = new UrlResource ("file:dir/" );
383
- Resource relative = resource .createRelative ("http ://spring.io" );
384
- assertThat (relative ).isEqualTo (new UrlResource ("file:dir/http ://spring.io" ));
383
+ Resource relative = resource .createRelative ("https ://spring.io" );
384
+ assertThat (relative ).isEqualTo (new UrlResource ("file:dir/https ://spring.io" ));
385
385
}
386
386
387
387
@ Test
@@ -422,14 +422,14 @@ void canCustomizeHttpUrlConnectionForRead() throws Exception {
422
422
@ Test
423
423
void useUserInfoToSetBasicAuth () throws Exception {
424
424
startServer ();
425
- UrlResource resource = new UrlResource ("http://alice:secret@localhost:"
426
- + this .server .getPort () + "/resource" );
425
+ UrlResource resource = new UrlResource (
426
+ "http://alice:secret@localhost:" + this .server .getPort () + "/resource" );
427
427
assertThat (resource .getInputStream ()).hasContent ("Spring" );
428
428
RecordedRequest request = this .server .takeRequest ();
429
429
String authorization = request .getHeader ("Authorization" );
430
430
assertThat (authorization ).isNotNull ().startsWith ("Basic " );
431
- assertThat (new String (Base64 .getDecoder ().decode (
432
- authorization . substring ( 6 )), StandardCharsets .ISO_8859_1 )).isEqualTo ("alice:secret" );
431
+ assertThat (new String (Base64 .getDecoder ().decode (authorization . substring ( 6 )),
432
+ StandardCharsets .ISO_8859_1 )).isEqualTo ("alice:secret" );
433
433
}
434
434
435
435
@ AfterEach
You can’t perform that action at this time.
0 commit comments