@@ -216,20 +216,20 @@ public void getCalls() throws ApiException {
216
216
217
217
}
218
218
219
- // @Test
220
- // @Order(2)
221
- // public void getCallState() throws ApiException, InterruptedException {
222
- // Basic.setUsername(BW_USERNAME);
223
- // Basic.setPassword(BW_PASSWORD);
224
-
225
- // TimeUnit.SECONDS.sleep(TEST_SLEEP);
226
- // ApiResponse<CallState> response = api.getCallStateWithHttpInfo(BW_ACCOUNT_ID, callIdList.get(0));
227
-
228
- // assertThat(response.getStatusCode(), anyOf(is(200),is(404)));
229
- // assertThat(response.getData(), hasProperty("callId", is(instanceOf(String.class))));
230
- // assertThat(response.getData(), hasProperty("state", is(instanceOf(String.class))));
231
- // assertThat(response.getData(), hasProperty("direction", is(CallDirectionEnum.OUTBOUND)));
232
- // }
219
+ @ Test
220
+ @ Order (2 )
221
+ public void getCallState () throws ApiException , InterruptedException {
222
+ Basic .setUsername (BW_USERNAME );
223
+ Basic .setPassword (BW_PASSWORD );
224
+
225
+ TimeUnit .SECONDS .sleep (TEST_SLEEP );
226
+ ApiResponse <CallState > response = api .getCallStateWithHttpInfo (BW_ACCOUNT_ID , callIdList .get (0 ));
227
+
228
+ assertThat (response .getStatusCode (), anyOf (is (200 ),is (404 )));
229
+ assertThat (response .getData (), hasProperty ("callId" , is (instanceOf (String .class ))));
230
+ assertThat (response .getData (), hasProperty ("state" , is (instanceOf (String .class ))));
231
+ assertThat (response .getData (), hasProperty ("direction" , is (CallDirectionEnum .OUTBOUND )));
232
+ }
233
233
234
234
@ Test
235
235
public void getCallStateUnauthorized () throws ApiException {
0 commit comments