Skip to content

Commit 22c583e

Browse files
Uncommenting Get Call State test
1 parent ab44bf2 commit 22c583e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/test/java/com/bandwidth/sdk/api/CallsApiTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,20 @@ public void getCalls() throws ApiException {
216216

217217
}
218218

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+
}
233233

234234
@Test
235235
public void getCallStateUnauthorized() throws ApiException {

0 commit comments

Comments
 (0)