mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
private static void verifyImageSet(List<WebElement> imageElements, List<String> expectedImages)
    {
        Set<String> imageSet = new HashSet<>();
        for (WebElement image : imageElements)
        {
            imageSet.add(ImageHelper.getPictureOrIconName(image.getAttribute("src"), ".png"));
        }
        
        for (String expectedImage : expectedImages)
        {
            assertThat(imageSet, hasItem(expectedImage));
        }
    }
/**
     * Takes a list of image elements found on the screen and compares them to a list of 
     * expected images.
     * @param imageElements
     *  the image elements that are found on the screen
     * @param expectedImages
     *  the images that are expected to be found
     */
Takes a list of image elements found on the screen and compares them to a list of
expected images.
@param imageElements
the image elements that are found on the screen
@param expectedImages
the images that are expected to be found
Takes a list of image elements found on the screen and compares them to a list of expected images . @param imageElements the image elements that are found on the screen @param expectedImages the images that are expected to be found
private static void verifyImageSet(List<WebElement> imageElements, List<String> expectedImages)
    {
        Set<String> imageSet = new HashSet<>();
        for (WebElement image : imageElements)
        {
            imageSet.add(ImageHelper.getPictureOrIconName(image.getAttribute("src"), ".png"));
        }
        for (String expectedImage : expectedImages)
        {
            assertThat(imageSet, hasItem(expectedImage));
        }
    }
private static void verifyImageSet ( List < WebElement > imageElements , List < String > expectedImages ) { Set < String > imageSet = new HashSet < > ( ) ; for ( WebElement image : imageElements ) { imageSet . add ( ImageHelper . getPictureOrIconName ( image . getAttribute ( "src" ) , ".png" ) ) ; } for ( String expectedImage : expectedImages ) { assertThat ( imageSet , hasItem ( expectedImage ) ) ; } }
Takes a list of image elements found on the screen and compares them to a list of
 expected images.
Takes a list of image elements found on the screen and compares them to a list of expected images .