Skip to content

Commit 9e21f4f

Browse files
committed
feat:amp-170 add client to call webhook
1 parent 79f0d8e commit 9e21f4f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/uk/gov/hmcts/cp/subscription/services/WebhookService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.springframework.stereotype.Service;
77
import uk.gov.hmcts.cp.openapi.model.PcrEventPayload;
88
import uk.gov.hmcts.cp.subscription.client.DocumentServiceClient;
9+
910
@Service
1011
@RequiredArgsConstructor
1112
@Slf4j

src/test/java/uk/gov/hmcts/cp/subscription/services/WebhookServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void configureProperties(DynamicPropertyRegistry registry) {
5757
private WebhookService webhookInvoiceService;
5858

5959
@Test
60-
void shouldCallDocumentServiceToUpdateMetadata() {
60+
void should_call_document_service_to_update_metadata() {
6161
wireMockServer.stubFor(post(urlEqualTo("/document-service/api/rest/document/metadata"))
6262
.willReturn(aResponse()
6363
.withStatus(200)));

0 commit comments

Comments
 (0)