Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez committed Oct 31, 2023
1 parent faf3fbd commit 0acb9af
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/test/java/com/bandwidth/sdk/api/CallsApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,15 @@ public void getCalls() throws ApiException {
ApiResponse<List<CallState>> response = api.listCallsWithHttpInfo(BW_ACCOUNT_ID, USER_NUMBER, BW_NUMBER, null, null, null, null, null);

assertThat(response.getStatusCode(), is(200));
assertThat(response.getData(), hasProperty("callId", is(instanceOf(String.class))));
assertThat(response.getData(), hasProperty("accountId", is(BW_ACCOUNT_ID)));
assertThat(response.getData(), hasProperty("applicationId", is(BW_VOICE_APPLICATION_ID)));
assertThat(response.getData(), hasProperty("to", is(USER_NUMBER)));
assertThat(response.getData(), hasProperty("from", is(BW_NUMBER)));
assertThat(response.getData(), is(instanceOf(Array.class)));
assertThat(response.getData(0), hasProperty("accountId", is(BW_ACCOUNT_ID)));
assertThat(response.getData(0), hasProperty("applicationId", is(BW_VOICE_APPLICATION_ID)));
assertThat(response.getData(0), hasProperty("to", is(USER_NUMBER)));
assertThat(response.getData(0), hasProperty("from", is(BW_NUMBER)));
assertThat(response.getData(0), hasProperty("callId", is(instanceOf(String.class))));
assertThat(response.getData(0), hasProperty("state", is(instanceOf(String.class))))
;

}

// @Test
Expand Down

0 comments on commit 0acb9af

Please sign in to comment.