From d1dd3674e1b7f46787121d5597df710c73c11535 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Mon, 30 Sep 2019 10:48:13 -0600 Subject: [PATCH] samples: Fix failing beta tets (#1592) --- .../src/test/java/com/example/vision/DetectIT.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vision/snippets/src/test/java/com/example/vision/DetectIT.java b/vision/snippets/src/test/java/com/example/vision/DetectIT.java index 544c6f93173..0fdda77d940 100644 --- a/vision/snippets/src/test/java/com/example/vision/DetectIT.java +++ b/vision/snippets/src/test/java/com/example/vision/DetectIT.java @@ -73,7 +73,9 @@ public void testDetectHandwrittenOcr() throws Exception { // Assert String got = bout.toString(); - assertThat(got).contains("Google Cloud Platform"); + assertThat(got).contains("Google"); + assertThat(got).contains("Cloud"); + assertThat(got).contains("Platform"); } @Test @@ -97,7 +99,9 @@ public void testDetectHandwrittenOcrGcs() throws Exception { // Assert String got = bout.toString(); - assertThat(got).contains("Google Cloud Platform"); + assertThat(got).contains("Google"); + assertThat(got).contains("Cloud"); + assertThat(got).contains("Platform"); } @Test