99import com .bandwidth .sdk .model .CallStateEnum ;
1010import com .bandwidth .sdk .model .UpdateCall ;
1111import com .bandwidth .sdk .ApiException ;
12- import com .bandwidth .sdk .ApiResponse ;
1312
1413import 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