Skip to content

Commit

Permalink
Apply code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gromspys authored and velo committed Aug 19, 2024
1 parent 74f542e commit 833e08e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/test/java/feign/client/AbstractClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public void canSupportGzipOnError() throws Exception {
@Test
public void canSupportGzipOnErrorWithoutBody() throws Exception {
server.enqueue(new MockResponse().setResponseCode(400)
.addHeader("Content-Encoding", "gzip"));
.addHeader("Content-Encoding", "gzip"));

TestInterface api =
newBuilder().target(TestInterface.class, "http://localhost:" + server.getPort());
Expand All @@ -433,8 +433,8 @@ public void canSupportGzipOnErrorWithoutBody() throws Exception {
} catch (FeignException e) {
/* verify that the response is unzipped */
assertThat(e.responseBody()).isNotEmpty()
.map(body -> new String(body.array(), StandardCharsets.UTF_8))
.get().isEqualTo("");
.map(body -> new String(body.array(), StandardCharsets.UTF_8))
.get().isEqualTo("");
}
}

Expand Down Expand Up @@ -478,7 +478,7 @@ public void canSupportDeflateOnError() throws Exception {
@Test
public void canSupportDeflateOnErrorWithoutBody() throws Exception {
server.enqueue(new MockResponse().setResponseCode(400)
.addHeader("Content-Encoding", "deflate"));
.addHeader("Content-Encoding", "deflate"));

TestInterface api =
newBuilder().target(TestInterface.class, "http://localhost:" + server.getPort());
Expand All @@ -489,8 +489,8 @@ public void canSupportDeflateOnErrorWithoutBody() throws Exception {
} catch (FeignException e) {
/* verify that the response is unzipped */
assertThat(e.responseBody()).isNotEmpty()
.map(body -> new String(body.array(), StandardCharsets.UTF_8))
.get().isEqualTo("");
.map(body -> new String(body.array(), StandardCharsets.UTF_8))
.get().isEqualTo("");
}
}

Expand Down

0 comments on commit 833e08e

Please sign in to comment.