【修复】MALL:TradeOrderUpdateService 的单元测试

This commit is contained in:
YunaiV 2024-06-15 17:33:54 +08:00
parent 0f5d6366a9
commit f2b7ad5092
2 changed files with 4 additions and 4 deletions

View File

@ -322,7 +322,7 @@ public class TradeOrderDO extends BaseDO {
*
* 关联 CombinationRecordDO headId 字段
*/
private Long combinationHeadId; // FIXME 2024/5/15: "团长" 应该译作 leader / starter 而不是 head
private Long combinationHeadId;
/**
* 拼团记录编号
*

View File

@ -33,8 +33,8 @@ import cn.iocoder.yudao.module.trade.service.price.TradePriceServiceImpl;
import cn.iocoder.yudao.module.trade.service.price.calculator.TradePriceCalculator;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
@ -53,7 +53,7 @@ import static org.mockito.Mockito.when;
* @author LeeYan9
* @since 2022-09-07
*/
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Disabled // TODO 芋艿后续 fix 补充的单测
@Import({TradeOrderUpdateServiceImpl.class, TradeOrderConfig.class, CartServiceImpl.class, TradePriceServiceImpl.class,
DeliveryExpressServiceImpl.class, TradeMessageServiceImpl.class
})
@ -94,7 +94,7 @@ public class TradeOrderUpdateServiceTest extends BaseDbUnitTest {
private TradePriceCalculator tradePriceCalculator;
@MockBean
private NotifyMessageSendApi notifyMessageSendApi;
@Autowired
@MockBean
private DeliveryExpressService deliveryExpressService;
@BeforeEach