UT提示词

JAVA

为函数--- 要求:
1、覆盖所有 public 方法的主要场景(正常、边界、异常)
2、使用 Mockito 模拟外部依赖
3、测试方法命名清晰,采用 given_when_then 风格
4、代码简洁,无编译错误,可直接运行

posted @ 2026-01-28 10:16  静水深耕,云停风驻  阅读(4)  评论(0)    收藏  举报