From eee2841b5c9e44dfb3f8f2401c55dea0a9c6fee2 Mon Sep 17 00:00:00 2001 From: Mohit Sinha Date: Thu, 18 Jul 2019 15:53:43 +0700 Subject: [PATCH] FINERACT-780: Unique id for hook test --- .../apache/fineract/integrationtests/HookIntegrationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/HookIntegrationTest.java b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/HookIntegrationTest.java index 5013a4085..ae3c68bc6 100644 --- a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/HookIntegrationTest.java +++ b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/HookIntegrationTest.java @@ -22,6 +22,7 @@ import org.junit.Assert; import static org.junit.Assert.fail; +import java.util.UUID; import java.util.concurrent.TimeUnit; import org.apache.fineract.integrationtests.common.HookHelper; @@ -62,7 +63,8 @@ public class HookIntegrationTest { // Subject to https://echo-webhook.herokuapp.com being up // See // http://www.jamesward.com/2014/06/11/testing-webhooks-was-a-pain-so-i-fixed-the-glitch - final String payloadURL = "http://echo-webhook.herokuapp.com:80/Z7RXoCBdLSFMDrpn?"; + final String uniqueId = UUID.randomUUID().toString(); + final String payloadURL = "http://echo-webhook.herokuapp.com:80/" + uniqueId + "?"; this.hookHelper.createHook(payloadURL); final Integer createdOfficeID = this.officeHelper.createOffice("01 January 2012"); try {