Fix unit test case formatting
This commit is contained in:
parent
b00ed5b143
commit
296a13a479
|
|
@ -190,8 +190,8 @@ class HttpClientHttpTests {
|
||||||
void executeWhenClientThrowsIOExceptionRethrowsAsDockerException() throws IOException {
|
void executeWhenClientThrowsIOExceptionRethrowsAsDockerException() throws IOException {
|
||||||
given(this.client.execute(any())).willThrow(new IOException("test IO exception"));
|
given(this.client.execute(any())).willThrow(new IOException("test IO exception"));
|
||||||
assertThatExceptionOfType(DockerException.class).isThrownBy(() -> this.http.get(this.uri))
|
assertThatExceptionOfType(DockerException.class).isThrownBy(() -> this.http.get(this.uri))
|
||||||
.satisfies((ex) -> assertThat(ex.getErrors()).isNull())
|
.satisfies((ex) -> assertThat(ex.getErrors()).isNull()).satisfies(DockerException::getStatusCode)
|
||||||
.satisfies(DockerException::getStatusCode).withMessageContaining("500")
|
.withMessageContaining("500")
|
||||||
.satisfies((ex) -> assertThat(ex.getReasonPhrase()).contains("test IO exception"));
|
.satisfies((ex) -> assertThat(ex.getReasonPhrase()).contains("test IO exception"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue