mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
private static void verifyObservationPanelBySensorId(ExpectedObservation observation)
    {
        WebElement panel = grabObservationPanelBySensorId(observation.getSensorId());

        verifyObservationPanel(panel, observation);

        toggleObservationPanel(panel);

        verifyGeneralObservationInformation(observation.getGeneralInfo(), panel);

        if (observation.getObservationSubTypeEnum() != null 
                && !observation.getObservationSubTypeEnum().equals(ObservationSubTypeEnum.DETECTION))
        {
            verifyObservationInformation(panel, observation);
        }

        if (observation.hasSensingModalities())
        {
            verifyObservationSensings(panel, observation);
        }

        if (observation.isDetection())
        {
            verifyObservationInformationDetection(panel, observation);
        }

        if (observation.hasRelatedObs())
        {
            verifyRelatedObsPanel(panel, observation);
        }
    }
/**
     * Function used to verify whether the given observation displays the expected information.
     * This function expects that an observation will be found by sensor id. Therefore, sensor id
     * must be set on the expected observation.
     * @param observation
     *  the observation that is to be used to verify the correct information is displayed
     */
Function used to verify whether the given observation displays the expected information.
This function expects that an observation will be found by sensor id. Therefore, sensor id
must be set on the expected observation.
@param observation
the observation that is to be used to verify the correct information is displayed
Function used to verify whether the given observation displays the expected information . This function expects that an observation will be found by sensor id . Therefore sensor id must be set on the expected observation . @param observation the observation that is to be used to verify the correct information is displayed
private static void verifyObservationPanelBySensorId(ExpectedObservation observation)
    {
        WebElement panel = grabObservationPanelBySensorId(observation.getSensorId());
        verifyObservationPanel(panel, observation);
        toggleObservationPanel(panel);
        verifyGeneralObservationInformation(observation.getGeneralInfo(), panel);
        if (observation.getObservationSubTypeEnum() != null 
                && !observation.getObservationSubTypeEnum().equals(ObservationSubTypeEnum.DETECTION))
        {
            verifyObservationInformation(panel, observation);
        }
        if (observation.hasSensingModalities())
        {
            verifyObservationSensings(panel, observation);
        }
        if (observation.isDetection())
        {
            verifyObservationInformationDetection(panel, observation);
        }
        if (observation.hasRelatedObs())
        {
            verifyRelatedObsPanel(panel, observation);
        }
    }
private static void verifyObservationPanelBySensorId ( ExpectedObservation observation ) { WebElement panel = grabObservationPanelBySensorId ( observation . getSensorId ( ) ) ; verifyObservationPanel ( panel , observation ) ; toggleObservationPanel ( panel ) ; verifyGeneralObservationInformation ( observation . getGeneralInfo ( ) , panel ) ; if ( observation . getObservationSubTypeEnum ( ) != null && ! observation . getObservationSubTypeEnum ( ) . equals ( ObservationSubTypeEnum . DETECTION ) ) { verifyObservationInformation ( panel , observation ) ; } if ( observation . hasSensingModalities ( ) ) { verifyObservationSensings ( panel , observation ) ; } if ( observation . isDetection ( ) ) { verifyObservationInformationDetection ( panel , observation ) ; } if ( observation . hasRelatedObs ( ) ) { verifyRelatedObsPanel ( panel , observation ) ; } }
Function used to verify whether the given observation displays the expected information.
Function used to verify whether the given observation displays the expected information .