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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user