Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bindambc committed May 6, 2024
1 parent b03e999 commit 9ce15ca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ public static void setUp() throws IOException {

mockWebServer = new MockWebServer();
mockWebServer.start();
System.err.println("Starting MockWebServer"+mockWebServer.getPort());

baseUrl = String.format("http://localhost:%s", mockWebServer.getPort());
WhatsappApiConfig.setBaseDomain(baseUrl);

System.err.println(baseUrl);

String TOKEN = "df4UIkhjdli48574654SDsdf54654sdf5s4DDF54654654654564654sdfsdf54sdf65s4";
WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TOKEN);

Expand All @@ -86,7 +89,7 @@ public static void tearDown() throws IOException {
void testCreateMessageTemplate() throws InterruptedException, JSONException {
WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TOKEN);


System.err.println("testCreateMessageTemplate");

mockWebServer.enqueue(new MockResponse().setResponseCode(200).setBody(DEFAULT_TEMPLATE_RESPONSE));
var expectedJson = """
Expand Down

0 comments on commit 9ce15ca

Please sign in to comment.