@@ -202,11 +202,15 @@ public void getCalls() throws ApiException {
202202 ApiResponse <List <CallState >> response = api .listCallsWithHttpInfo (BW_ACCOUNT_ID , USER_NUMBER , BW_NUMBER , null , null , null , null , null );
203203
204204 assertThat (response .getStatusCode (), is (200 ));
205- assertThat (response .getData (), hasProperty ("callId" , is (instanceOf (String .class ))));
206- assertThat (response .getData (), hasProperty ("accountId" , is (BW_ACCOUNT_ID )));
207- assertThat (response .getData (), hasProperty ("applicationId" , is (BW_VOICE_APPLICATION_ID )));
208- assertThat (response .getData (), hasProperty ("to" , is (USER_NUMBER )));
209- assertThat (response .getData (), hasProperty ("from" , is (BW_NUMBER )));
205+ assertThat (response .getData (), is (instanceOf (Array .class )));
206+ assertThat (response .getData (0 ), hasProperty ("accountId" , is (BW_ACCOUNT_ID )));
207+ assertThat (response .getData (0 ), hasProperty ("applicationId" , is (BW_VOICE_APPLICATION_ID )));
208+ assertThat (response .getData (0 ), hasProperty ("to" , is (USER_NUMBER )));
209+ assertThat (response .getData (0 ), hasProperty ("from" , is (BW_NUMBER )));
210+ assertThat (response .getData (0 ), hasProperty ("callId" , is (instanceOf (String .class ))));
211+ assertThat (response .getData (0 ), hasProperty ("state" , is (instanceOf (String .class ))))
212+ ;
213+
210214 }
211215
212216 // @Test
0 commit comments