Skip to content

Commit

Permalink
[Webhook] Write Test for Webhook module (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtranq-nashtechglobal committed Sep 4, 2024
1 parent 7d72f80 commit 02142e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ public class WebhookControllerIT extends AbstractControllerIT {
@BeforeEach
public void insertTestData() {
Event event = new Event();
event.setId(1L);
event.setName(EventName.ON_PRODUCT_UPDATED);
event.setDescription("");

Event persistedEvent = eventRepository.save(event);

Webhook webhook = new Webhook();
webhook.setId(1L);
Webhook persistedWebhook = webhookRepository.save(webhook);

WebhookEvent webhookEvent = new WebhookEvent();
Expand Down

0 comments on commit 02142e7

Please sign in to comment.