我正在编写一个SpringBoot集成测试,其中我需要能够模拟与外部服务的交互,同时使用一些真实的对象(如扩展JPARepository的接口)来与我的数据库交互。JPARepository which I want to use the real thing
OtherService otherService; //public class myMethod() {
//Code wh
= null && id.equals(((TestUser) o).getId()); public int hashCodesetSomeProperty("value2"); }每当我更新someProperty实体时,我都想更新用户实体的‘BugTicket’。因此,我向BugTicket的</