diff --git a/docs/ja-JP/skills/quarkus-tdd/SKILL.md b/docs/ja-JP/skills/quarkus-tdd/SKILL.md index 7be26f67..97e0bbbd 100644 --- a/docs/ja-JP/skills/quarkus-tdd/SKILL.md +++ b/docs/ja-JP/skills/quarkus-tdd/SKILL.md @@ -181,6 +181,19 @@ class BusinessRulesRouteTest { @InjectMock EventService eventService; + @InjectMock + DocumentValidator documentValidator; + + private BusinessRulesPayload testPayload; + + @BeforeEach + void setUp() { + // ARRANGE - テストデータ + testPayload = new BusinessRulesPayload(); + testPayload.setDocumentId(1L); + testPayload.setFlowProfile(FlowProfile.BASIC); + } + @Test @DisplayName("Should successfully publish message to RabbitMQ") void givenValidPayload_whenPublish_thenMessageSentToQueue() throws Exception { diff --git a/docs/zh-CN/skills/quarkus-tdd/SKILL.md b/docs/zh-CN/skills/quarkus-tdd/SKILL.md index 918957e8..3e12f505 100644 --- a/docs/zh-CN/skills/quarkus-tdd/SKILL.md +++ b/docs/zh-CN/skills/quarkus-tdd/SKILL.md @@ -181,6 +181,19 @@ class BusinessRulesRouteTest { @InjectMock EventService eventService; + @InjectMock + DocumentValidator documentValidator; + + private BusinessRulesPayload testPayload; + + @BeforeEach + void setUp() { + // ARRANGE - 测试数据 + testPayload = new BusinessRulesPayload(); + testPayload.setDocumentId(1L); + testPayload.setFlowProfile(FlowProfile.BASIC); + } + @Test @DisplayName("Should successfully publish message to RabbitMQ") void givenValidPayload_whenPublish_thenMessageSentToQueue() throws Exception {