@Test
    public void generate() {
        int minLength = 10;
        int maxLength = 20;
        String generate = generator.generate(String.format("zh|%d-%d", minLength, maxLength), null);
        assertTrue(
                Objects.nonNull(generate) && generate.length() >= minLength && generate.length() <= maxLength);
    }
The test case for {@link ZhStringGenerator}.

@date 2022/6/20 15:44
shenyu-plugin/shenyu-plugin-mock/src/test/java/org/apache/shenyu/plugin/mock/generator/ZhStringGeneratorTest.java