Remove ControlBusController.getCommandsForBean

The extra REST API to get commands for specific bean does not make sense.
Exactly same data can be extracted from the JSON returned by the `getCommands` REST API
This commit is contained in:
Artem Bilan
2024-08-20 10:43:53 -04:00
parent 7c42402b9a
commit 6641cf8e21
3 changed files with 18 additions and 41 deletions

View File

@@ -83,18 +83,6 @@ public class ControlBusControllerTests {
.andExpect(content().string(Matchers.containsString("The overloaded operation with two arguments")));
}
@Test
void commandsForBean() throws Exception {
this.mockMvc.perform(get("/control-bus/testManagementComponent")
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(handler().handlerType(ControlBusController.class))
.andExpect(handler().methodName("getCommandsForBean"))
.andExpect(content().string(Matchers.containsString("testManagementComponent.operation")))
.andExpect(content().string(Matchers.containsString("testManagementComponent.operation2")));
}
@Test
void controlBusCommandIsPerformedOverRestCall() throws Exception {
this.mockMvc.perform(post("/control-bus/testManagementComponent.operation")