chore: seed demo delivery tasks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.linhelp.dev;
|
||||
|
||||
import com.linhelp.delivery.DeliveryUserService;
|
||||
import com.linhelp.delivery.DeliveryAssignmentService;
|
||||
import com.linhelp.groupbuy.GroupBuyService;
|
||||
import com.linhelp.notice.BannerService;
|
||||
import com.linhelp.notice.NoticeService;
|
||||
@@ -29,6 +30,8 @@ class DevDataInitializerTests {
|
||||
private SecondGoodsService secondGoodsService;
|
||||
@Autowired
|
||||
private DeliveryUserService deliveryUserService;
|
||||
@Autowired
|
||||
private DeliveryAssignmentService deliveryAssignmentService;
|
||||
|
||||
@Test
|
||||
void seedsOneCommunityDemoDataForLocalTrial() {
|
||||
@@ -39,5 +42,8 @@ class DevDataInitializerTests {
|
||||
assertThat(bannerService.listEnabled(1L)).hasSize(1);
|
||||
assertThat(secondGoodsService.listPublic(1L, null)).hasSize(1);
|
||||
assertThat(deliveryUserService.requireByUserId(3L).getName()).isEqualTo("配送员小林");
|
||||
assertThat(deliveryAssignmentService.listRiderTasks(1L))
|
||||
.extracting("bizType")
|
||||
.containsExactly("GOODS_ORDER", "EXPRESS_ORDER");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user