【修复】MALL:TradeOrderUpdateService 的单元测试
This commit is contained in:
parent
0f5d6366a9
commit
f2b7ad5092
|
@ -322,7 +322,7 @@ public class TradeOrderDO extends BaseDO {
|
|||
*
|
||||
* 关联 CombinationRecordDO 的 headId 字段
|
||||
*/
|
||||
private Long combinationHeadId; // FIXME 2024/5/15: "团长" 应该译作 leader / starter 而不是 head
|
||||
private Long combinationHeadId;
|
||||
/**
|
||||
* 拼团记录编号
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue