diff --git a/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java b/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java index e0af0de9..36c0201e 100644 --- a/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java +++ b/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java @@ -67,7 +67,7 @@ public class TranscriptionsApiTest { private static CreateCall createMantecaCallBody = new CreateCall(); private static UpdateCall completeMantecaCallBody = new UpdateCall(); private static URI mantecaAnswerUrl; - private static String bxmlBody = "This is a bxml start transcription test.Ideally this part is being transcribed."; + private static String bxmlBody = "This is a bxml start transcription test.Ideally this part is being transcribed."; private static int TEST_SLEEP = 10; private static int TEST_SLEEP_LONG = 60; @@ -118,11 +118,13 @@ public void getAndDeleteRealTimeTranscriptionsTest() throws ApiException, Interr assertThat(getRealTimeTranscriptionResponse.getStatusCode(), is(200)); assertThat(getRealTimeTranscriptionResponse.getData(), hasProperty("transcriptionId", is(instanceOf(String.class)))); + assertThat(getRealTimeTranscriptionResponse.getData().getTracks(), hasProperty("track", is("outbound"))); + assertThat(getRealTimeTranscriptionResponse.getData().getTracks(), hasProperty("confidence", is(instanceOf(String.class)))); ApiResponse deleteRealTimeTranscriptionResponse = transcriptionsApi.deleteRealTimeTranscriptionWithHttpInfo(BW_ACCOUNT_ID, createCallResponse.getData().getCallId(), transcriptionId); - assertThat(deleteRealTimeTranscriptionResponse.getStatusCode(), is(200)); + assertThat(deleteRealTimeTranscriptionResponse.getStatusCode(), is(200)); // This should be 204 but there is currently a bug in the API to be fixed in VAPI-1863 } }