Skip to content

Commit d1dd367

Browse files
authored
samples: Fix failing beta tets (#1592)
1 parent cf6be3e commit d1dd367

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ public void testDetectHandwrittenOcr() throws Exception {
7373

7474
// Assert
7575
String got = bout.toString();
76-
assertThat(got).contains("Google Cloud Platform");
76+
assertThat(got).contains("Google");
77+
assertThat(got).contains("Cloud");
78+
assertThat(got).contains("Platform");
7779
}
7880

7981
@Test
@@ -97,7 +99,9 @@ public void testDetectHandwrittenOcrGcs() throws Exception {
9799

98100
// Assert
99101
String got = bout.toString();
100-
assertThat(got).contains("Google Cloud Platform");
102+
assertThat(got).contains("Google");
103+
assertThat(got).contains("Cloud");
104+
assertThat(got).contains("Platform");
101105
}
102106

103107
@Test

0 commit comments

Comments
 (0)