| | |
| | | import com.sinata.appointment.entity.BizVisitReason; |
| | | import com.sinata.appointment.entity.MpUser; |
| | | import com.sinata.appointment.integration.WechatMiniGateway; |
| | | import com.sinata.appointment.mapper.ApprovalTaskMapper; |
| | | import com.sinata.appointment.mapper.BizVisitReasonMapper; |
| | | import com.sinata.appointment.mapper.MpUserMapper; |
| | | import java.time.LocalDate; |
| | |
| | | private MpUserMapper mpUserMapper; |
| | | |
| | | @Mock |
| | | private ApprovalTaskMapper approvalTaskMapper; |
| | | |
| | | @Mock |
| | | private BizVisitReasonMapper bizVisitReasonMapper; |
| | | |
| | | private IntegrationWechatService integrationWechatService; |
| | |
| | | @BeforeEach |
| | | void setUp() { |
| | | integrationWechatService = |
| | | new IntegrationWechatService(wechatMiniGateway, mpUserMapper, bizVisitReasonMapper); |
| | | new IntegrationWechatService( |
| | | wechatMiniGateway, |
| | | mpUserMapper, |
| | | approvalTaskMapper, |
| | | bizVisitReasonMapper); |
| | | } |
| | | |
| | | @Test |
| | |
| | | Map<String, String> payload = dataCaptor.getValue(); |
| | | assertEquals("审核通过", payload.get("thing1")); |
| | | assertEquals("张三", payload.get("thing2")); |
| | | assertEquals("2026-04-24 上午", payload.get("time3")); |
| | | assertEquals("2026-04-24 09:00", payload.get("time3")); |
| | | assertEquals("商务洽谈", payload.get("thing4")); |
| | | } |
| | | |