-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【UnitAuto】-单元测试,方法的入参是对象,不能自动生成对象属性值吗? #30
Comments
目前还不支持,需要反射调用 class.getFields ,然后调用 MethodUtil.mockValue 为每个成员变量赋值。 不改源码的话可以导入后,点开用例,直接在网页编辑 User 对象,然后点右上角中间图标按钮 [上传/分享] 保存 |
在网页编辑 User 对象,然后点右上角中间图标按钮 [上传/分享] 保存 |
你漏了前面的步骤,一步步来,有问题把过程截屏发出来方便诊断 |
2.9.0 已经支持 |
好的 感谢 |
好的 感谢解答 |
入参为User对象
![image](https://user-images.githubusercontent.com/64843785/225495573-f9b94625-6c8f-4ad4-9ea8-2d777f3502d8.png)
The text was updated successfully, but these errors were encountered: