diff --git a/src/test/java/integration/WebhookTest.java b/src/test/java/integration/WebhookTest.java index 9efd117..43fdc58 100644 --- a/src/test/java/integration/WebhookTest.java +++ b/src/test/java/integration/WebhookTest.java @@ -27,13 +27,13 @@ void createWebhook() throws PostmarkException, IOException { Webhook webhookCreated = client.createWebhook(new Webhook("http://example.com")); assertNotNull(webhookCreated.getId()); - client.deleteTemplate(webhookCreated.getId()); + client.deleteWebhook(webhookCreated.getId()); } @Test void deleteWebhook() throws PostmarkException, IOException { Webhook webhookCreated = client.createWebhook(new Webhook("http://example.com")); - String stringResponse = client.deleteTemplate(webhookCreated.getId()); + String stringResponse = client.deleteWebhook(webhookCreated.getId()); assertNotNull(stringResponse); }