Skip to content

Commit 7e8ca22

Browse files
authored
Merge pull request GoogleCloudPlatform#364 from GoogleCloudPlatform/tswast-more-vision
One more vision API test to fix.
2 parents 1261451 + 07ebd2b commit 7e8ca22

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

vision/face-detection/src/test/java/com/google/cloud/vision/samples/facedetect/FaceDetectAppIT.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public class FaceDetectAppIT {
5050

5151
assertThat(faces).named("face.jpg faces").isNotEmpty();
5252
assertThat(faces.get(0).getFdBoundingPoly().getVertices())
53-
.named("face.jpg face #0 FdBoundingPoly Vertices")
5453
.isNotEmpty();
5554
}
5655

@@ -59,9 +58,7 @@ public class FaceDetectAppIT {
5958
appUnderTest.detectFaces(Paths.get("data/bad.txt"), MAX_RESULTS);
6059
fail("Expected IOException");
6160
} catch (IOException expected) {
62-
assertThat(expected.getMessage().toLowerCase())
63-
.named("IOException message")
64-
.contains("malformed request");
61+
assertThat(expected.getMessage()).isNotEmpty();
6562
}
6663
}
6764
}

0 commit comments

Comments
 (0)