File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,8 @@ public void detectFacesTest() throws IOException {
292292 for (FaceAnnotation annotation : assertNotEmpty (res , res .getFaceAnnotationsList ())) {
293293 assertThat (annotation .getAngerLikelihood ()).isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
294294 assertEquals (Likelihood .VERY_UNLIKELY , annotation .getJoyLikelihood ());
295- assertEquals (Likelihood .LIKELY , annotation .getSurpriseLikelihood ());
295+ assertThat (annotation .getSurpriseLikelihood ())
296+ .isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
296297 }
297298 }
298299
@@ -303,7 +304,8 @@ public void detectFacesGcsTest() throws IOException {
303304 for (FaceAnnotation annotation : assertNotEmpty (res , res .getFaceAnnotationsList ())) {
304305 assertThat (annotation .getAngerLikelihood ()).isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
305306 assertEquals (Likelihood .VERY_UNLIKELY , annotation .getJoyLikelihood ());
306- assertEquals (Likelihood .LIKELY , annotation .getSurpriseLikelihood ());
307+ assertThat (annotation .getSurpriseLikelihood ())
308+ .isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
307309 }
308310 }
309311
You can’t perform that action at this time.
0 commit comments