@@ -129,11 +129,11 @@ void onExportAnnotation_PVOC_WhenPreviouslyImportedAnnotation_ShouldProduceEquiv
129129 .isHasAssignedBoundingShapes ()
130130 && mainView .getCurrentBoundingShapes ()
131131 .stream ()
132- .filter (viewable -> viewable instanceof BoundingBoxView )
132+ .filter (BoundingBoxView . class :: isInstance )
133133 .count () == 8
134134 && mainView .getCurrentBoundingShapes ()
135135 .stream ()
136- .filter (viewable -> viewable instanceof BoundingPolygonView )
136+ .filter (BoundingPolygonView . class :: isInstance )
137137 .count () == 1 ),
138138 () -> saveScreenshotAndReturnMessage (testinfo ,
139139 "Bounding shape counts did not match " +
@@ -273,11 +273,11 @@ void onExportAnnotation_YOLO_WhenPreviouslyImportedAnnotation_ShouldProduceEquiv
273273 .isHasAssignedBoundingShapes ()
274274 && mainView .getCurrentBoundingShapes ()
275275 .stream ()
276- .filter (viewable -> viewable instanceof BoundingBoxView )
276+ .filter (BoundingBoxView . class :: isInstance )
277277 .count () == 9
278278 && mainView .getCurrentBoundingShapes ()
279279 .stream ()
280- .filter (viewable -> viewable instanceof BoundingPolygonView )
280+ .filter (BoundingPolygonView . class :: isInstance )
281281 .count () == 1 ),
282282 () -> saveScreenshotAndReturnMessage (testinfo ,
283283 "Bounding shape counts did not match " +
@@ -407,11 +407,11 @@ void onExportAnnotation_JSON_WhenPreviouslyImportedAnnotation_ShouldProduceEquiv
407407 .isHasAssignedBoundingShapes ()
408408 && mainView .getCurrentBoundingShapes ()
409409 .stream ()
410- .filter (viewable -> viewable instanceof BoundingBoxView )
410+ .filter (BoundingBoxView . class :: isInstance )
411411 .count () == 8
412412 && mainView .getCurrentBoundingShapes ()
413413 .stream ()
414- .filter (viewable -> viewable instanceof BoundingPolygonView )
414+ .filter (BoundingPolygonView . class :: isInstance )
415415 .count () == 1 ),
416416 () -> saveScreenshotAndReturnMessage (testinfo ,
417417 "Bounding shape counts did not match " +
@@ -1227,10 +1227,10 @@ void onExportAnnotation_CSV_WhenPreviouslyImportedAnnotation_ShouldProduceEquiva
12271227 .isHasAssignedBoundingShapes ()
12281228 && mainView .getCurrentBoundingShapes ()
12291229 .stream ()
1230- .filter (viewable -> viewable instanceof BoundingBoxView )
1230+ .filter (BoundingBoxView . class :: isInstance )
12311231 .count () == 3
12321232 && mainView .getCurrentBoundingShapes ()
1233- .stream ().noneMatch (viewable -> viewable instanceof BoundingPolygonView )),
1233+ .stream ().noneMatch (BoundingPolygonView . class :: isInstance )),
12341234 () -> saveScreenshotAndReturnMessage (testinfo ,
12351235 "Bounding shape counts did not match " +
12361236 "within " + TIMEOUT_DURATION_IN_SEC +
0 commit comments