|
@@ -89,7 +89,9 @@ class HealthPlanReviewGuardTest {
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
void getPlanForFamily_匹配返回方案() {
|
|
void getPlanForFamily_匹配返回方案() {
|
|
|
- when(mapper.selectById(99L)).thenReturn(planWithStatus("pending_review"));
|
|
|
|
|
|
|
+ HealthPlan plan = planWithStatus("pending_review");
|
|
|
|
|
+ plan.setId(99L);
|
|
|
|
|
+ when(mapper.selectById(99L)).thenReturn(plan);
|
|
|
HealthPlan p = service.getPlanForFamily(99L, 10L);
|
|
HealthPlan p = service.getPlanForFamily(99L, 10L);
|
|
|
assertNotNull(p);
|
|
assertNotNull(p);
|
|
|
assertEquals(Long.valueOf(99L), p.getId());
|
|
assertEquals(Long.valueOf(99L), p.getId());
|