Skip to content

Commit

Permalink
fixed webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalosh committed Nov 6, 2019
1 parent a6ba84f commit d896d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/integration/WebhookTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d896d1c

Please sign in to comment.