mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
private static void verifyObservationInformationDetection(WebElement panel, 
            ExpectedObservation observation)
    {
        //verify headings and content
        if (observation.retrieveExpectedClassImages().size() > 0)
        {
            WebElement targetClassificationsHeader = panel.findElement(
                    By.cssSelector("span[id$='classificationsHeader']"));
            assertThat(targetClassificationsHeader.getText(), is("Target Classifications"));
        }
        else
        {
            //using findElements to avoid exception being thrown
            List<WebElement> targetClassificationsHeader = panel.findElements(
                    By.cssSelector("span[id$='classificationsHeader']"));
            assertThat(targetClassificationsHeader.size(), is(0));
        }
        
        //verify detection
        WebElement detectionImg = panel.findElement(By.cssSelector("img[id*='detect']"));
        ImageHelper.getPictureOrIconNameAndVerify(detectionImg, ObservationConstants.IMG_DETECTION, ".png");
        
        //verify all found dClasses are all of the expected dMods
        List<WebElement> classifications = panel.findElements(By.cssSelector("img[id*='dClass']"));
        assertThat(classifications.size(), is(observation.retrieveExpectedClassImages().size()));
        
        verifyImageSet(classifications, observation.retrieveExpectedClassImages());
    }
/**
     * Verify the images and text are correct for all information given for the observation that contains all possible
     * target classifications.
     */
Verify the images and text are correct for all information given for the observation that contains all possible
target classifications.
Verify the images and text are correct for all information given for the observation that contains all possible target classifications .
private static void verifyObservationInformationDetection(WebElement panel, 
            ExpectedObservation observation)
    {
        if (observation.retrieveExpectedClassImages().size() > 0)
        {
            WebElement targetClassificationsHeader = panel.findElement(
                    By.cssSelector("span[id$='classificationsHeader']"));
            assertThat(targetClassificationsHeader.getText(), is("Target Classifications"));
        }
        else
        {
            List<WebElement> targetClassificationsHeader = panel.findElements(
                    By.cssSelector("span[id$='classificationsHeader']"));
            assertThat(targetClassificationsHeader.size(), is(0));
        }
        WebElement detectionImg = panel.findElement(By.cssSelector("img[id*='detect']"));
        ImageHelper.getPictureOrIconNameAndVerify(detectionImg, ObservationConstants.IMG_DETECTION, ".png");
        List<WebElement> classifications = panel.findElements(By.cssSelector("img[id*='dClass']"));
        assertThat(classifications.size(), is(observation.retrieveExpectedClassImages().size()));
        verifyImageSet(classifications, observation.retrieveExpectedClassImages());
    }
private static void verifyObservationInformationDetection ( WebElement panel , ExpectedObservation observation ) { if ( observation . retrieveExpectedClassImages ( ) . size ( ) > 0 ) { WebElement targetClassificationsHeader = panel . findElement ( By . cssSelector ( "span[id$='classificationsHeader']" ) ) ; assertThat ( targetClassificationsHeader . getText ( ) , is ( "Target Classifications" ) ) ; } else { List < WebElement > targetClassificationsHeader = panel . findElements ( By . cssSelector ( "span[id$='classificationsHeader']" ) ) ; assertThat ( targetClassificationsHeader . size ( ) , is ( 0 ) ) ; } WebElement detectionImg = panel . findElement ( By . cssSelector ( "img[id*='detect']" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( detectionImg , ObservationConstants . IMG_DETECTION , ".png" ) ; List < WebElement > classifications = panel . findElements ( By . cssSelector ( "img[id*='dClass']" ) ) ; assertThat ( classifications . size ( ) , is ( observation . retrieveExpectedClassImages ( ) . size ( ) ) ) ; verifyImageSet ( classifications , observation . retrieveExpectedClassImages ( ) ) ; }
Verify the images and text are correct for all information given for the observation that contains all possible
 target classifications.
Verify the images and text are correct for all information given for the observation that contains all possible target classifications .
//verify headings and content //using findElements to avoid exception being thrown //verify detection //verify all found dClasses are all of the expected dMods