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 {
292
292
for (FaceAnnotation annotation : assertNotEmpty (res , res .getFaceAnnotationsList ())) {
293
293
assertThat (annotation .getAngerLikelihood ()).isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
294
294
assertEquals (Likelihood .VERY_UNLIKELY , annotation .getJoyLikelihood ());
295
- assertEquals (Likelihood .LIKELY , annotation .getSurpriseLikelihood ());
295
+ assertThat (annotation .getSurpriseLikelihood ())
296
+ .isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
296
297
}
297
298
}
298
299
@@ -303,7 +304,8 @@ public void detectFacesGcsTest() throws IOException {
303
304
for (FaceAnnotation annotation : assertNotEmpty (res , res .getFaceAnnotationsList ())) {
304
305
assertThat (annotation .getAngerLikelihood ()).isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
305
306
assertEquals (Likelihood .VERY_UNLIKELY , annotation .getJoyLikelihood ());
306
- assertEquals (Likelihood .LIKELY , annotation .getSurpriseLikelihood ());
307
+ assertThat (annotation .getSurpriseLikelihood ())
308
+ .isAnyOf (Likelihood .LIKELY , Likelihood .POSSIBLE );
307
309
}
308
310
}
309
311
You can’t perform that action at this time.
0 commit comments