From 9cf995f09675457c2a4fbd0f3b665b6083521f80 Mon Sep 17 00:00:00 2001 From: Dane Liergaard Date: Wed, 9 May 2018 15:43:40 -0700 Subject: [PATCH] Fix dataflow tests by creating spanner instance. Fix vision tests by updating match tag from 'Landmark' to 'History.' --- dataflow/spanner-io/pom.xml | 1 + .../src/test/java/com/example/vision/DetectIT.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dataflow/spanner-io/pom.xml b/dataflow/spanner-io/pom.xml index 231e8bb8911..37dfa9a977d 100644 --- a/dataflow/spanner-io/pom.xml +++ b/dataflow/spanner-io/pom.xml @@ -53,6 +53,7 @@ maven-failsafe-plugin 2.19.1 + sponge_log default-instance diff --git a/vision/beta/cloud-client/src/test/java/com/example/vision/DetectIT.java b/vision/beta/cloud-client/src/test/java/com/example/vision/DetectIT.java index cab7a9e3aef..1f0b719887a 100644 --- a/vision/beta/cloud-client/src/test/java/com/example/vision/DetectIT.java +++ b/vision/beta/cloud-client/src/test/java/com/example/vision/DetectIT.java @@ -244,7 +244,7 @@ public void detectWebAnnotations() throws Exception { // Assert String got = bout.toString(); - assertThat(got).contains("Landmark"); + assertThat(got).contains("History"); assertThat(got).contains("Best guess label: palace of fine arts"); } @@ -256,7 +256,7 @@ public void detectWebAnnotationsGcs() throws Exception { // Assert String got = bout.toString(); - assertThat(got).contains("Landmark"); + assertThat(got).contains("History"); assertThat(got).contains("Best guess label: palace of fine arts"); }