Skip to content

Commit a756fa0

Browse files
committed
lil test cleanup type shi
1 parent 805669a commit a756fa0

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

src/test/java/com/bandwidth/sdk/unit/models/CreateSyncLookupResponseTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@
1818
import com.bandwidth.sdk.model.CreateSyncLookupResponseData;
1919
import com.bandwidth.sdk.model.LinkSchema;
2020
import com.bandwidth.sdk.model.LookupErrorSchema;
21-
import com.google.gson.TypeAdapter;
22-
import com.google.gson.annotations.JsonAdapter;
23-
import com.google.gson.annotations.SerializedName;
24-
import com.google.gson.stream.JsonReader;
25-
import com.google.gson.stream.JsonWriter;
26-
import java.io.IOException;
21+
2722
import java.util.ArrayList;
2823
import java.util.Arrays;
2924
import java.util.List;
30-
import org.junit.jupiter.api.Disabled;
25+
3126
import org.junit.jupiter.api.Test;
3227

3328
import static org.hamcrest.MatcherAssert.assertThat;

src/test/java/com/bandwidth/sdk/unit/models/FailureWebhookTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.util.Arrays;
2020
import java.util.ArrayList;
2121
import com.bandwidth.sdk.model.FailureWebhook;
22-
import com.bandwidth.sdk.model.TelephoneNumber;
2322

2423
import static org.hamcrest.MatcherAssert.assertThat;
2524
import static org.hamcrest.CoreMatchers.instanceOf;

src/test/java/com/bandwidth/sdk/unit/models/LookupErrorResponseTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@
1616
import com.bandwidth.sdk.model.LinkSchema;
1717
import com.bandwidth.sdk.model.LookupErrorResponse;
1818
import com.bandwidth.sdk.model.LookupErrorSchema;
19-
import com.google.gson.TypeAdapter;
20-
import com.google.gson.annotations.JsonAdapter;
21-
import com.google.gson.annotations.SerializedName;
22-
import com.google.gson.stream.JsonReader;
23-
import com.google.gson.stream.JsonWriter;
24-
import java.io.IOException;
19+
2520
import java.util.ArrayList;
2621
import java.util.Arrays;
2722
import java.util.List;
28-
import org.junit.jupiter.api.Disabled;
23+
2924
import org.junit.jupiter.api.Test;
3025

3126
import static org.hamcrest.MatcherAssert.assertThat;

src/test/java/com/bandwidth/sdk/unit/models/MultiChannelErrorTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void testMultiChannelError() {
4444
/**
4545
* Test the property 'links'
4646
*/
47+
@SuppressWarnings("null")
4748
@Test
4849
public void linksTest() {
4950
assertThat(model.getLinks(), instanceOf(List.class));
@@ -61,6 +62,7 @@ public void dataTest() {
6162
/**
6263
* Test the property 'errors'
6364
*/
65+
@SuppressWarnings("null")
6466
@Test
6567
public void errorsTest() {
6668
assertThat(model.getErrors(), instanceOf(List.class));

src/test/java/com/bandwidth/sdk/utils/CallCleanup.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.bandwidth.sdk.model.CallStateEnum;
1010
import com.bandwidth.sdk.model.UpdateCall;
1111
import com.bandwidth.sdk.ApiException;
12-
import com.bandwidth.sdk.ApiResponse;
1312

1413
import static com.bandwidth.sdk.utils.TestingEnvironmentVariables.*;
1514

@@ -21,6 +20,7 @@ public class CallCleanup {
2120
*
2221
* @param callIdList List of Bandwidth call ID's
2322
*/
23+
@SuppressWarnings("null")
2424
public static final void Cleanup(CallsApiTest testClass, List<String> callIdList) throws Exception {
2525
TimeUnit.SECONDS.sleep(TEST_SLEEP);
2626

@@ -34,9 +34,7 @@ public static final void Cleanup(CallsApiTest testClass, List<String> callIdList
3434
if (!callState.equalsIgnoreCase("disconnected")) {
3535
UpdateCall updateCallBody = new UpdateCall();
3636
updateCallBody.setState(CallStateEnum.COMPLETED);
37-
ApiResponse<Void> response = testClass.api.updateCallWithHttpInfo(BW_ACCOUNT_ID,
38-
callIdList.get(i),
39-
updateCallBody);
37+
testClass.api.updateCallWithHttpInfo(BW_ACCOUNT_ID, callIdList.get(i), updateCallBody);
4038
}
4139
}
4240
} catch (ApiException e) {
@@ -51,6 +49,7 @@ public static final void Cleanup(CallsApiTest testClass, List<String> callIdList
5149
*
5250
* @param callId Bandwidth call ID
5351
*/
52+
@SuppressWarnings("null")
5453
public static final void Cleanup(ConferencesApiTest testClass, String callId) throws Exception {
5554
TimeUnit.SECONDS.sleep(TEST_SLEEP);
5655

@@ -62,16 +61,15 @@ public static final void Cleanup(ConferencesApiTest testClass, String callId) th
6261
if (!callState.equalsIgnoreCase("disconnected")) {
6362
UpdateCall updateCallBody = new UpdateCall();
6463
updateCallBody.setState(CallStateEnum.COMPLETED);
65-
ApiResponse<Void> response = testClass.callsApi.updateCallWithHttpInfo(BW_ACCOUNT_ID,
66-
callId,
67-
updateCallBody);
64+
testClass.callsApi.updateCallWithHttpInfo(BW_ACCOUNT_ID, callId, updateCallBody);
6865
}
6966
} catch (ApiException e) {
7067
System.out.println("API Error: " + e.toString());
7168
throw new Exception("Failed to terminate all calls: [" + callId + "]");
7269
}
7370
}
7471

72+
@SuppressWarnings("null")
7573
public static final void Cleanup(RecordingsApiTest testClass, String callId) throws Exception {
7674
TimeUnit.SECONDS.sleep(TEST_SLEEP);
7775

@@ -83,9 +81,7 @@ public static final void Cleanup(RecordingsApiTest testClass, String callId) thr
8381
if (!callState.equalsIgnoreCase("disconnected")) {
8482
UpdateCall updateCallBody = new UpdateCall();
8583
updateCallBody.setState(CallStateEnum.COMPLETED);
86-
ApiResponse<Void> response = testClass.callsApi.updateCallWithHttpInfo(BW_ACCOUNT_ID,
87-
callId,
88-
updateCallBody);
84+
testClass.callsApi.updateCallWithHttpInfo(BW_ACCOUNT_ID, callId, updateCallBody);
8985
}
9086
} catch (ApiException e) {
9187
System.out.println("API Error: " + e.toString());

0 commit comments

Comments
 (0)