@Override
    public List<SensitiveWordDO> getSensitiveWordList() {
        return sensitiveWordMapper.selectList();
    }
@Test
    public void testGetSensitiveWordList() {
        // mock 数据
        SensitiveWordDO sensitiveWord01 = randomPojo(SensitiveWordDO.class);
        sensitiveWordMapper.insert(sensitiveWord01);
        SensitiveWordDO sensitiveWord02 = randomPojo(SensitiveWordDO.class);
        sensitiveWordMapper.insert(sensitiveWord02);

        // 调用
        List<SensitiveWordDO> list = sensitiveWordService.getSensitiveWordList();
        // 断言
        assertEquals(2, list.size());
        assertEquals(sensitiveWord01, list.get(0));
        assertEquals(sensitiveWord02, list.get(1));
    }