Skip to content

Commit 57b7b1a

Browse files
committed
Fix formatting of ArtifactoryServiceTests
See gh-33967
1 parent 18985d0 commit 57b7b1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/artifactory/ArtifactoryServiceTests.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -70,8 +70,11 @@ void promoteWhenSuccessful() {
7070
.andExpect(method(HttpMethod.POST))
7171
.andExpect(content().json(
7272
"{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"libs-milestone-local\"}"))
73-
.andExpect(header("Authorization", "Basic " + Base64.getEncoder().encodeToString(String
74-
.format("%s:%s", this.properties.getUsername(), this.properties.getPassword()).getBytes())))
73+
.andExpect(
74+
header("Authorization",
75+
"Basic " + Base64.getEncoder()
76+
.encodeToString(String.format("%s:%s", this.properties.getUsername(),
77+
this.properties.getPassword()).getBytes())))
7578
.andExpect(header("Content-Type", MediaType.APPLICATION_JSON.toString())).andRespond(withSuccess());
7679
this.service.promote("libs-milestone-local", getReleaseInfo());
7780
this.server.verify();

0 commit comments

Comments
 (0)