Skip to content

Commit aac8ea5

Browse files
nnegreychingor13
authored andcommitted
samples: vision: makes tests more generic (#2475)
Fix: #2424 Fix: #2408
1 parent d94ee76 commit aac8ea5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vision/snippets/src/test/java/com/example/vision/DetectIT.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ public void detectWebAnnotations() throws Exception {
244244

245245
// Assert
246246
String got = bout.toString().toLowerCase();
247-
assertThat(got).contains("history");
248-
assertThat(got).contains("best guess label: palace of fine arts");
247+
assertThat(got).contains("entity:id:score");
248+
assertThat(got).contains("best guess label");
249249
}
250250

251251
@Test
@@ -256,8 +256,8 @@ public void detectWebAnnotationsGcs() throws Exception {
256256

257257
// Assert
258258
String got = bout.toString().toLowerCase();
259-
assertThat(got).contains("history");
260-
assertThat(got).contains("best guess label: palace of fine arts");
259+
assertThat(got).contains("entity:id:score");
260+
assertThat(got).contains("best guess label");
261261
}
262262

263263
@Test

0 commit comments

Comments
 (0)