From e4f78ed85c3e8df39bca87d8b6fc1ac8e1469712 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 9 Nov 2016 13:11:44 -0800 Subject: [PATCH] Fix vision integration test to match latest error messages. (#404) --- .../vision/samples/landmarkdetection/DetectLandmarkIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java b/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java index 970ec0d63d2..71ee1c6425d 100644 --- a/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java +++ b/vision/landmark-detection/src/test/java/com/google/cloud/vision/samples/landmarkdetection/DetectLandmarkIT.java @@ -60,7 +60,7 @@ public class DetectLandmarkIT { appUnderTest.identifyLandmark(LANDMARK_URI + "/nonexistent.jpg", MAX_RESULTS); fail("Expected IOException"); } catch (IOException expected) { - assertThat(expected.getMessage()).named("IOException message").contains("OBJECT_NOT_FOUND"); + assertThat(expected.getMessage()).named("IOException message").contains("file"); } }