Skip to content

Commit

Permalink
Fix unit test case formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfrederick committed Feb 27, 2020
1 parent b00ed5b commit 296a13a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ void executeWhenResposeIsIn500RangeShouldThrowDockerException() {
void executeWhenClientThrowsIOExceptionRethrowsAsDockerException() throws IOException {
given(this.client.execute(any())).willThrow(new IOException("test IO exception"));
assertThatExceptionOfType(DockerException.class).isThrownBy(() -> this.http.get(this.uri))
.satisfies((ex) -> assertThat(ex.getErrors()).isNull())
.satisfies(DockerException::getStatusCode).withMessageContaining("500")
.satisfies((ex) -> assertThat(ex.getErrors()).isNull()).satisfies(DockerException::getStatusCode)
.withMessageContaining("500")
.satisfies((ex) -> assertThat(ex.getReasonPhrase()).contains("test IO exception"));
}

Expand Down

0 comments on commit 296a13a

Please sign in to comment.