| | |
| | | /** |
| | | * {@link CombinationRecordServiceImpl} 的单元测试类 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Import(CombinationRecordServiceImpl.class) |
| | | public class CombinationRecordServiceImplTest extends BaseDbUnitTest { |
| | |
| | | private void mockCreateContext() { |
| | | MemberUserRespDTO user = randomPojo(MemberUserRespDTO.class, o -> { |
| | | o.setId(USER_ID); |
| | | o.setNickname("芋道源码"); |
| | | o.setNickname("超级管理员"); |
| | | o.setAvatar("https://www.iocoder.cn/avatar.png"); |
| | | }); |
| | | when(memberUserApi.getUser(USER_ID)).thenReturn(user); |
| | |
| | | o.setSkuId(SKU_ID); |
| | | o.setCount(1); |
| | | o.setUserId(USER_ID); |
| | | o.setNickname("芋道源码"); |
| | | o.setNickname("超级管理员"); |
| | | o.setAvatar("https://www.iocoder.cn/avatar.png"); |
| | | o.setHeadId(CombinationRecordDO.HEAD_ID_GROUP); |
| | | o.setStatus(CombinationRecordStatusEnum.IN_PROGRESS.getStatus()); |