Skip to content

Commit

Permalink
Erik's requested changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Aug 25, 2023
1 parent 72f1cc0 commit f47f74a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ public Response repair(RepairRequest repairRequest) {
.build();
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
import javax.ws.rs.core.Response;

@Path("/api/v2/repairs")
public class RepairResources extends BaseResources {
public class RepairResourcesV2 extends BaseResources {

public RepairResources(ManagementApplication application) {
public RepairResourcesV2(ManagementApplication application) {
super(application);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ public void testRepair() throws Exception {
eq("test_ks"),
eq(null),
eq(true),
eq(false),
eq(true),
eq(Optional.empty()),
eq(Optional.empty()),
eq(Optional.empty()),
Expand Down Expand Up @@ -2120,4 +2120,4 @@ MockHttpResponse invoke(HttpRequest request) {
return response;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.junit.Assert;
import org.junit.Test;

public class RepairResourcesTest {
public class RepairResourcesV2Test {

@Test
public void testRepairResourcesSuccess() throws Exception {
Expand All @@ -43,7 +43,7 @@ public void testRepairResourcesSuccess() throws Exception {
when(mockCqlService.executePreparedStatement(
any(), anyString(), any(), any(), any(), any(), any(), any(), any(), any()))
.thenReturn(mockResultSet);
RepairResources unit = new RepairResources(app);
RepairResourcesV2 unit = new RepairResourcesV2(app);
RepairRequest req =
new RepairRequest(
"keyspace",
Expand Down Expand Up @@ -83,7 +83,7 @@ public void testRepairResourcesFail() throws Exception {
when(mockCqlService.executePreparedStatement(
any(), anyString(), any(), any(), any(), any(), any(), any(), any(), any()))
.thenReturn(mockResultSet);
RepairResources unit = new RepairResources(app);
RepairResourcesV2 unit = new RepairResourcesV2(app);
List<String> tables = new ArrayList<>();
tables.add("table1");
tables.add("table2");
Expand All @@ -100,4 +100,4 @@ public void testRepairResourcesFail() throws Exception {
Response resp = unit.repair(req);
Assert.assertEquals(500, resp.getStatus());
}
}
}

0 comments on commit f47f74a

Please sign in to comment.