File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
vision/face-detection/src/test/java/com/google/cloud/vision/samples/facedetect Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments