mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
private static void verifyObservationSensings(WebElement panel, ExpectedObservation observation)
    {
        //verify headings and content
        if (observation.retrieveExpectedModalityImages().size() > 0)
        {
            WebElement sensingModalitiesHeader = panel.findElement(By.cssSelector("span[id$='modalitiesHeader']"));
            assertThat(sensingModalitiesHeader.getText(), is("Sensing Modalities"));
        }
        else
        {
            //using findElements to avoid exception being thrown
            List<WebElement> sensingModalitiesHeader = panel.findElements(
                    By.cssSelector("span[id$='modalitiesHeader']"));
            assertThat(sensingModalitiesHeader.size(), is(0));
        }

        //verify all found dMods are all of the expected dMods
        List<WebElement> sensings = panel.findElements(By.cssSelector("img[id*='dMod']"));
        assertThat(sensings.size(), is(observation.retrieveExpectedModalityImages().size()));
        
        verifyImageSet(sensings, observation.retrieveExpectedModalityImages());        
    }
/**
     * Verify the images and text are correct for all information given for the observation that contains all possible
     * sensing modalities.
     */
Verify the images and text are correct for all information given for the observation that contains all possible
sensing modalities.
Verify the images and text are correct for all information given for the observation that contains all possible sensing modalities .
private static void verifyObservationSensings(WebElement panel, ExpectedObservation observation)
    {
        if (observation.retrieveExpectedModalityImages().size() > 0)
        {
            WebElement sensingModalitiesHeader = panel.findElement(By.cssSelector("span[id$='modalitiesHeader']"));
            assertThat(sensingModalitiesHeader.getText(), is("Sensing Modalities"));
        }
        else
        {
            List<WebElement> sensingModalitiesHeader = panel.findElements(
                    By.cssSelector("span[id$='modalitiesHeader']"));
            assertThat(sensingModalitiesHeader.size(), is(0));
        }
        List<WebElement> sensings = panel.findElements(By.cssSelector("img[id*='dMod']"));
        assertThat(sensings.size(), is(observation.retrieveExpectedModalityImages().size()));
        verifyImageSet(sensings, observation.retrieveExpectedModalityImages());        
    }
private static void verifyObservationSensings ( WebElement panel , ExpectedObservation observation ) { if ( observation . retrieveExpectedModalityImages ( ) . size ( ) > 0 ) { WebElement sensingModalitiesHeader = panel . findElement ( By . cssSelector ( "span[id$='modalitiesHeader']" ) ) ; assertThat ( sensingModalitiesHeader . getText ( ) , is ( "Sensing Modalities" ) ) ; } else { List < WebElement > sensingModalitiesHeader = panel . findElements ( By . cssSelector ( "span[id$='modalitiesHeader']" ) ) ; assertThat ( sensingModalitiesHeader . size ( ) , is ( 0 ) ) ; } List < WebElement > sensings = panel . findElements ( By . cssSelector ( "img[id*='dMod']" ) ) ; assertThat ( sensings . size ( ) , is ( observation . retrieveExpectedModalityImages ( ) . size ( ) ) ) ; verifyImageSet ( sensings , observation . retrieveExpectedModalityImages ( ) ) ; }
Verify the images and text are correct for all information given for the observation that contains all possible
 sensing modalities.
Verify the images and text are correct for all information given for the observation that contains all possible sensing modalities .
//verify headings and content //using findElements to avoid exception being thrown //verify all found dMods are all of the expected dMods