Skip to content

Commit 362297a

Browse files
committed
Fix formatting
1 parent 68f59a0 commit 362297a

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

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

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ void tearDown() {
7474

7575
@Test
7676
void promoteWhenSuccessful() {
77-
this.server
78-
.expect(requestTo(
79-
"https://repo.spring.io/api/build/promote/example-build/example-build-1"))
77+
this.server.expect(requestTo("https://repo.spring.io/api/build/promote/example-build/example-build-1"))
8078
.andExpect(method(HttpMethod.POST))
8179
.andExpect(content().json(
8280
"{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"libs-milestone-local\"}"))
@@ -89,9 +87,7 @@ void promoteWhenSuccessful() {
8987

9088
@Test
9189
void promoteWhenArtifactsAlreadyPromoted() {
92-
this.server
93-
.expect(requestTo(
94-
"https://repo.spring.io/api/build/promote/example-build/example-build-1"))
90+
this.server.expect(requestTo("https://repo.spring.io/api/build/promote/example-build/example-build-1"))
9591
.andRespond(withStatus(HttpStatus.CONFLICT));
9692
this.server.expect(requestTo("https://repo.spring.io/api/build/example-build/example-build-1"))
9793
.andRespond(withJsonFrom("build-info-response.json"));
@@ -101,9 +97,7 @@ void promoteWhenArtifactsAlreadyPromoted() {
10197

10298
@Test
10399
void promoteWhenCheckForArtifactsAlreadyPromotedFails() {
104-
this.server
105-
.expect(requestTo(
106-
"https://repo.spring.io/api/build/promote/example-build/example-build-1"))
100+
this.server.expect(requestTo("https://repo.spring.io/api/build/promote/example-build/example-build-1"))
107101
.andRespond(withStatus(HttpStatus.CONFLICT));
108102
this.server.expect(requestTo("https://repo.spring.io/api/build/example-build/example-build-1"))
109103
.andRespond(withStatus(HttpStatus.FORBIDDEN));
@@ -114,9 +108,7 @@ void promoteWhenCheckForArtifactsAlreadyPromotedFails() {
114108

115109
@Test
116110
void promoteWhenPromotionFails() {
117-
this.server
118-
.expect(requestTo(
119-
"https://repo.spring.io/api/build/promote/example-build/example-build-1"))
111+
this.server.expect(requestTo("https://repo.spring.io/api/build/promote/example-build/example-build-1"))
120112
.andRespond(withStatus(HttpStatus.CONFLICT));
121113
this.server.expect(requestTo("https://repo.spring.io/api/build/example-build/example-build-1"))
122114
.andRespond(withJsonFrom("staged-build-info-response.json"));
@@ -129,9 +121,7 @@ void promoteWhenPromotionFails() {
129121
void distributeWhenSuccessful() throws Exception {
130122
ReleaseInfo releaseInfo = getReleaseInfo();
131123
given(this.bintrayService.isDistributionComplete(releaseInfo)).willReturn(true);
132-
this.server
133-
.expect(requestTo(
134-
"https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
124+
this.server.expect(requestTo("https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
135125
.andExpect(method(HttpMethod.POST))
136126
.andExpect(content().json(
137127
"{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\", \"async\":\"true\"}"))
@@ -146,9 +136,7 @@ void distributeWhenSuccessful() throws Exception {
146136
@Test
147137
void distributeWhenFailure() throws Exception {
148138
ReleaseInfo releaseInfo = getReleaseInfo();
149-
this.server
150-
.expect(requestTo(
151-
"https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
139+
this.server.expect(requestTo("https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
152140
.andExpect(method(HttpMethod.POST))
153141
.andExpect(content().json(
154142
"{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\", \"async\":\"true\"}"))
@@ -166,9 +154,7 @@ void distributeWhenFailure() throws Exception {
166154
void distributeWhenGettingPackagesTimesOut() throws Exception {
167155
ReleaseInfo releaseInfo = getReleaseInfo();
168156
given(this.bintrayService.isDistributionComplete(releaseInfo)).willReturn(false);
169-
this.server
170-
.expect(requestTo(
171-
"https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
157+
this.server.expect(requestTo("https://repo.spring.io/api/build/distribute/example-build/example-build-1"))
172158
.andExpect(method(HttpMethod.POST))
173159
.andExpect(content().json(
174160
"{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\", \"async\":\"true\"}"))

0 commit comments

Comments
 (0)