update indentation

This commit is contained in:
Adrian Maghear 2020-12-14 19:24:02 +01:00
parent b6ff723533
commit 0c055b7d31
1 changed files with 8 additions and 7 deletions

View File

@ -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()))));
} }
} }