Skip to content

Commit 89c2e6b

Browse files
committed
test(Speech to Text): Remove references to removed props
1 parent 7ab41aa commit 89c2e6b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

speech-to-text/src/test/java/com/ibm/watson/developer_cloud/speech_to_text/v1/SpeechToTextIT.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public void testGetModel() {
141141
assertNotNull(model.getRate());
142142
assertNotNull(model.getUrl());
143143
assertNotNull(model.getDescription());
144-
assertNotNull(model.getSessions());
145144
assertNotNull(model.getSupportedFeatures().isCustomLanguageModel());
146145
assertNotNull(model.getSupportedFeatures().isSpeakerLabels());
147146
}
@@ -269,7 +268,6 @@ public void testRecognizeWebSocket() throws FileNotFoundException, InterruptedEx
269268
FileInputStream audio = new FileInputStream(SAMPLE_WAV);
270269
RecognizeOptions options = new RecognizeOptions.Builder()
271270
.audio(audio)
272-
.interimResults(true)
273271
.inactivityTimeout(40)
274272
.timestamps(true)
275273
.maxAlternatives(2)
@@ -332,7 +330,6 @@ public void testInactivityTimeoutWithWebSocket() throws FileNotFoundException, I
332330
FileInputStream audio = new FileInputStream(SAMPLE_WAV_WITH_PAUSE);
333331
RecognizeOptions options = new RecognizeOptions.Builder()
334332
.audio(audio)
335-
.interimResults(true)
336333
.inactivityTimeout(3)
337334
.timestamps(true)
338335
.maxAlternatives(2)
@@ -633,7 +630,6 @@ public void testCreateLanguageModel() throws InterruptedException, FileNotFoundE
633630
.customizationId(id)
634631
.corpusName("corpus-1")
635632
.corpusFile(new File(String.format(SPEECH_RESOURCE, "corpus1.txt")))
636-
.corpusFileContentType(HttpMediaType.TEXT_PLAIN)
637633
.allowOverwrite(false)
638634
.build();
639635
service.addCorpus(addOptions).execute();
@@ -654,7 +650,6 @@ public void testCreateLanguageModel() throws InterruptedException, FileNotFoundE
654650
.customizationId(id)
655651
.corpusName("corpus-1")
656652
.corpusFile(new File(String.format(SPEECH_RESOURCE, "corpus1.txt")))
657-
.corpusFileContentType(HttpMediaType.TEXT_PLAIN)
658653
.allowOverwrite(true)
659654
.build();
660655
service.addCorpus(addOptionsWithOverwrite).execute();

speech-to-text/src/test/java/com/ibm/watson/developer_cloud/speech_to_text/v1/SpeechToTextTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,6 @@ public void testAddCorpus() throws InterruptedException, IOException {
809809
.customizationId(id)
810810
.corpusName(corpusName)
811811
.corpusFile(corpusFile)
812-
.corpusFileContentType(HttpMediaType.TEXT_PLAIN)
813812
.allowOverwrite(true)
814813
.build();
815814
service.addCorpus(addOptions).execute();

0 commit comments

Comments
 (0)