File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/uk/gov/hmcts/cp/subscription/services
test/java/uk/gov/hmcts/cp/subscription/services Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ public class WebhookService {
1515 private final DocumentServiceClient client ;
1616
1717 public void processPcrEvent (final PcrEventPayload payload ) {
18- log .info ("Processing invoice webhook event: {}" , payload );
18+ log .info ("Processing webhook event: {}" , payload );
1919
2020 try {
2121 client .updateDocumentMetadata (payload );
22- log .info ("Successfully updated document metadata for invoice event " );
22+ log .info ("Successfully updated document metadata" );
2323 } catch (FeignException ex ) {
24- log .error ("Failed to update document metadata for invoice event " , ex );
24+ log .error ("Failed to update document metadata" , ex );
2525 throw ex ;
2626 }
2727 }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ static void configureProperties(DynamicPropertyRegistry registry) {
5454 }
5555
5656 @ Autowired
57- private WebhookService webhookInvoiceService ;
57+ private WebhookService webhookService ;
5858
5959 @ Test
6060 void should_call_document_service_to_update_metadata () {
@@ -65,7 +65,7 @@ void should_call_document_service_to_update_metadata() {
6565 PcrEventPayload payload = new PcrEventPayload ();
6666 payload .setEventId (UUID .randomUUID ());
6767
68- webhookInvoiceService .processPcrEvent (payload );
68+ webhookService .processPcrEvent (payload );
6969
7070 wireMockServer .verify (postRequestedFor (
7171 urlEqualTo ("/document-service/api/rest/document/metadata" ))
You can’t perform that action at this time.
0 commit comments