Skip to content

Commit

Permalink
Fix test indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Aug 15, 2023
1 parent c1b7ec8 commit a008f6e
Showing 1 changed file with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,12 @@ public void testRepair() throws Exception {
assertThat(response.getStatus()).isEqualTo(HttpStatus.SC_OK);
verify(context.cqlService)
.executePreparedStatement(
any(), eq("CALL NodeOps.repair(?, ?, ?, ?)"), eq("test_ks"), eq(null), eq(true), eq(false));
any(),
eq("CALL NodeOps.repair(?, ?, ?, ?)"),
eq("test_ks"),
eq(null),
eq(true),
eq(false));
}

@Test
Expand All @@ -1678,10 +1683,11 @@ public void testRepairAsync() throws Exception {

when(mockRow.getString(0)).thenReturn("0fe65b47-98c2-47d8-9c3c-5810c9988e10");

MockHttpRequest request = MockHttpRequest.post("/api/v1/ops/node/repair")
.content(repairRequestAsJSON.getBytes())
.accept(MediaType.TEXT_PLAIN)
.contentType(MediaType.APPLICATION_JSON_TYPE);
MockHttpRequest request =
MockHttpRequest.post("/api/v1/ops/node/repair")
.content(repairRequestAsJSON.getBytes())
.accept(MediaType.TEXT_PLAIN)
.contentType(MediaType.APPLICATION_JSON_TYPE);

MockHttpResponse response = context.invoke(request);

Expand All @@ -1690,7 +1696,12 @@ public void testRepairAsync() throws Exception {

verify(context.cqlService)
.executePreparedStatement(
any(), eq("CALL NodeOps.repair(?, ?, ?, ?)"), eq("test_ks"), eq(null), eq(true), eq(true));
any(),
eq("CALL NodeOps.repair(?, ?, ?, ?)"),
eq("test_ks"),
eq(null),
eq(true),
eq(true));
}

@Test
Expand Down

0 comments on commit a008f6e

Please sign in to comment.