-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWI-6778 Add Smoke Test For TFV (#167)
- Loading branch information
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
src/test/java/com/bandwidth/sdk/smoke/TollFreeVerificationApiTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* | ||
* Bandwidth | ||
* Bandwidth's Communication APIs | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package com.bandwidth.sdk.smoke; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import com.bandwidth.sdk.ApiClient; | ||
import com.bandwidth.sdk.ApiException; | ||
import com.bandwidth.sdk.ApiResponse; | ||
import com.bandwidth.sdk.Configuration; | ||
import com.bandwidth.sdk.api.TollFreeVerificationApi; | ||
import com.bandwidth.sdk.auth.HttpBasicAuth; | ||
|
||
import java.util.List; | ||
|
||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.CoreMatchers.instanceOf; | ||
import static org.hamcrest.CoreMatchers.is; | ||
|
||
import static com.bandwidth.sdk.utils.TestingEnvironmentVariables.*; | ||
|
||
@SuppressWarnings("null") | ||
public class TollFreeVerificationApiTest { | ||
private static ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
private static HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); | ||
private static TollFreeVerificationApi api = new TollFreeVerificationApi(defaultClient); | ||
|
||
@BeforeAll | ||
public static void setUp() { | ||
Basic.setUsername(BW_USERNAME); | ||
Basic.setPassword(BW_PASSWORD); | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void createWebhookSubscriptionTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void deleteWebhookSubscriptionTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void getTollFreeVerificationStatusTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
public void listTollFreeUseCasesTest() throws ApiException { | ||
ApiResponse<List<String>> response = api.listTollFreeUseCasesWithHttpInfo(); | ||
|
||
assertThat(response.getStatusCode(), is(200)); | ||
assertThat(response.getData(), instanceOf(List.class)); | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void listWebhookSubscriptionsTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void requestTollFreeVerificationTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void updateTollFreeVerificationRequestTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
@Test | ||
@Disabled | ||
public void updateWebhookSubscriptionTest() throws ApiException { | ||
// Test | ||
} | ||
|
||
} |