Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个传递所有约束的对象实例,而不保存它。
Build Test Data 'build' 方法保存实例。
插件是否有可选参数或其他方法来获取“相同”对象而不保存它?
是的,只需调用buildWithoutSave而不是build.
buildWithoutSave
build