From b3f5701f81666806cf98f1fe19ac868db382000a Mon Sep 17 00:00:00 2001 From: Mauricio Binda da Costa Date: Mon, 6 May 2024 00:43:49 -0300 Subject: [PATCH] test --- src/test/java/com/whatsapp/api/MockServerUtilsTest.java | 3 ++- .../com/whatsapp/api/impl/WhatsappBusinessCloudApiTest.java | 3 +-- .../whatsapp/api/impl/WhatsappBusinessManagementApiTest.java | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/whatsapp/api/MockServerUtilsTest.java b/src/test/java/com/whatsapp/api/MockServerUtilsTest.java index 095f384a3..fe53203a2 100644 --- a/src/test/java/com/whatsapp/api/MockServerUtilsTest.java +++ b/src/test/java/com/whatsapp/api/MockServerUtilsTest.java @@ -44,8 +44,9 @@ public void setUp() throws IOException { @AfterEach public void tearDown() throws IOException { - mockWebServer.close(); + mockWebServer.shutdown(); + mockWebServer.close(); } diff --git a/src/test/java/com/whatsapp/api/impl/WhatsappBusinessCloudApiTest.java b/src/test/java/com/whatsapp/api/impl/WhatsappBusinessCloudApiTest.java index b052e4ecf..08b854605 100644 --- a/src/test/java/com/whatsapp/api/impl/WhatsappBusinessCloudApiTest.java +++ b/src/test/java/com/whatsapp/api/impl/WhatsappBusinessCloudApiTest.java @@ -15,7 +15,6 @@ import mockwebserver3.RecordedRequest; import org.json.JSONException; import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.skyscreamer.jsonassert.JSONAssert; import org.skyscreamer.jsonassert.JSONCompareMode; @@ -24,7 +23,7 @@ import java.net.URISyntaxException; import static com.whatsapp.api.configuration.WhatsappApiConfig.getApiVersion; -@Disabled + class WhatsappBusinessCloudApiTest extends MockServerUtilsTest { private final String PHONE_NUMBER_1 = "121212121212"; diff --git a/src/test/java/com/whatsapp/api/impl/WhatsappBusinessManagementApiTest.java b/src/test/java/com/whatsapp/api/impl/WhatsappBusinessManagementApiTest.java index 788d5b7d2..4602b947d 100644 --- a/src/test/java/com/whatsapp/api/impl/WhatsappBusinessManagementApiTest.java +++ b/src/test/java/com/whatsapp/api/impl/WhatsappBusinessManagementApiTest.java @@ -21,6 +21,7 @@ import mockwebserver3.RecordedRequest; import org.json.JSONException; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.skyscreamer.jsonassert.JSONAssert; import org.skyscreamer.jsonassert.JSONCompareMode; @@ -30,7 +31,7 @@ import java.util.Collections; import static com.whatsapp.api.configuration.WhatsappApiConfig.getApiVersion; - +@Disabled class WhatsappBusinessManagementApiTest extends MockServerUtilsTest { private final String API_VERSION = getApiVersion().getValue();