From 83f105d6acf82088a7d4ace9f499beda97a057f8 Mon Sep 17 00:00:00 2001 From: nnegrey Date: Mon, 23 Mar 2020 10:13:51 -0600 Subject: [PATCH] vision: makes tests more generic --- .../src/test/java/com/example/vision/DetectIT.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vision/cloud-client/src/test/java/com/example/vision/DetectIT.java b/vision/cloud-client/src/test/java/com/example/vision/DetectIT.java index cff7d5f2ea6..4ec885e99b9 100644 --- a/vision/cloud-client/src/test/java/com/example/vision/DetectIT.java +++ b/vision/cloud-client/src/test/java/com/example/vision/DetectIT.java @@ -244,8 +244,8 @@ public void detectWebAnnotations() throws Exception { // Assert String got = bout.toString().toLowerCase(); - assertThat(got).contains("history"); - assertThat(got).contains("best guess label: palace of fine arts"); + assertThat(got).contains("entity:id:score"); + assertThat(got).contains("best guess label"); } @Test @@ -256,8 +256,8 @@ public void detectWebAnnotationsGcs() throws Exception { // Assert String got = bout.toString().toLowerCase(); - assertThat(got).contains("history"); - assertThat(got).contains("best guess label: palace of fine arts"); + assertThat(got).contains("entity:id:score"); + assertThat(got).contains("best guess label"); } @Test