| | |
| | | /** |
| | | * {@link ProductBrandServiceImpl} 的单元测试类 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Disabled // TODO 芋艿:后续 fix 补充的单测 |
| | | @Import(ProductBrandServiceImpl.class) |
| | |
| | | public void testGetBrandPage() { |
| | | // mock 数据 |
| | | ProductBrandDO dbBrand = randomPojo(ProductBrandDO.class, o -> { // 等会查询到 |
| | | o.setName("芋道源码"); |
| | | o.setName("超级管理员"); |
| | | o.setStatus(CommonStatusEnum.ENABLE.getStatus()); |
| | | o.setCreateTime(buildTime(2022, 2, 1)); |
| | | }); |
| | |
| | | brandMapper.insert(cloneIgnoreId(dbBrand, o -> o.setCreateTime(buildTime(2022, 3, 1)))); |
| | | // 准备参数 |
| | | ProductBrandPageReqVO reqVO = new ProductBrandPageReqVO(); |
| | | reqVO.setName("芋道"); |
| | | reqVO.setName("超级管理员"); |
| | | reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus()); |
| | | reqVO.setCreateTime((new LocalDateTime[]{buildTime(2022, 1, 1), buildTime(2022, 2, 25)})); |
| | | |