Skip to content

Commit 81eae9d

Browse files
nnegreychingor13
authored andcommitted
samples: video: update .mp4 file used in test (#2550)
Fixes #2545 - [ x] Tests pass - [ x] Appropriate changes to README are included in PR - [ x] API's need to be enabled to test (tell us) - [ x] Environment Variables need to be set (ask us to set them)
1 parent 4e4b0ab commit 81eae9d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

video/src/test/java/com/example/video/DetectIT.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,11 @@ public void testSpeechTranscription() throws Exception {
7979

8080
@Test
8181
public void testTrackObjects() throws Exception {
82-
VideoAnnotationResults result = TrackObjects.trackObjects("resources/cat.mp4");
82+
TrackObjects.trackObjects("resources/googlework_short.mp4");
8383

84-
boolean textExists = false;
85-
for (ObjectTrackingAnnotation objectTrackingAnnotation : result.getObjectAnnotationsList()) {
86-
if (objectTrackingAnnotation.getEntity().getDescription().toUpperCase().contains("CAT")) {
87-
textExists = true;
88-
break;
89-
}
90-
}
84+
String got = bout.toString();
9185

92-
assertThat(textExists).isTrue();
86+
assertThat(got).contains("Entity id");
9387
}
9488

9589
@Test

0 commit comments

Comments
 (0)