update indentation
This commit is contained in:
parent
b6ff723533
commit
0c055b7d31
|
@ -14,13 +14,14 @@ public class BookMocks {
|
||||||
|
|
||||||
public static void setupMockBooksResponse(WireMockServer mockService) throws IOException {
|
public static void setupMockBooksResponse(WireMockServer mockService) throws IOException {
|
||||||
mockService.stubFor(WireMock.get(WireMock.urlEqualTo("/books"))
|
mockService.stubFor(WireMock.get(WireMock.urlEqualTo("/books"))
|
||||||
.willReturn(WireMock.aResponse()
|
.willReturn(
|
||||||
.withStatus(HttpStatus.OK.value())
|
WireMock.aResponse()
|
||||||
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE)
|
.withStatus(HttpStatus.OK.value())
|
||||||
.withBody(
|
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE)
|
||||||
copyToString(
|
.withBody(
|
||||||
BookMocks.class.getClassLoader().getResourceAsStream("payload/get-books-response.json"),
|
copyToString(
|
||||||
defaultCharset()))));
|
BookMocks.class.getClassLoader().getResourceAsStream("payload/get-books-response.json"),
|
||||||
|
defaultCharset()))));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue