@GetMapping("/getAllRoles")
    @RequiresPermissions("system:role:list")
    public ShenyuAdminResult selectAll() {
        return ShenyuAdminResult.success(ShenyuResultMessage.QUERY_SUCCESS, roleService.selectAll());
    }
@Test
    public void testSelectAll() throws Exception {
        given(roleService.selectAll()).willReturn(Collections.emptyList());
        this.mockMvc.perform(MockMvcRequestBuilders.get("/role/getAllRoles"))
            .andExpect(status().isOk())
            .andExpect(jsonPath("$.message", is(ShenyuResultMessage.QUERY_SUCCESS)))
            .andReturn();
    }