mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
public static void verifyReservedFieldPanel(WebElement panel, GeneralObservationInformation observation)
    {
        WebElement reservedFieldHeader = panel.findElement(
                By.cssSelector("span[id$='genHeaderReserved']"));
        assertThat(reservedFieldHeader.getText(), is("Reserved Fields"));
       
        WebElement reservedData = panel.findElement(By.cssSelector("span[id$='genInfoReserved']"));
        String reservedStringData = reservedData.getText();
        
        int counterfound = 0;
        for (MapEntry entry : observation.getReservedFields())
        {
            assertThat(reservedStringData, containsString(entry.getKey()));
            assertThat(reservedStringData, containsString((String)entry.getValue()));
            counterfound++;
        }
        
        assertThat(counterfound, is(observation.getReservedFields().size()));
    }
/**
     * Verify the reserved field data is correct including the key and value data.
     * 
     * @param panel
     *      observation panel to check out
     */
Verify the reserved field data is correct including the key and value data.

@param panel
observation panel to check out
Verify the reserved field data is correct including the key and value data . @param panel observation panel to check out
public static void verifyReservedFieldPanel(WebElement panel, GeneralObservationInformation observation)
    {
        WebElement reservedFieldHeader = panel.findElement(
                By.cssSelector("span[id$='genHeaderReserved']"));
        assertThat(reservedFieldHeader.getText(), is("Reserved Fields"));
        WebElement reservedData = panel.findElement(By.cssSelector("span[id$='genInfoReserved']"));
        String reservedStringData = reservedData.getText();
        int counterfound = 0;
        for (MapEntry entry : observation.getReservedFields())
        {
            assertThat(reservedStringData, containsString(entry.getKey()));
            assertThat(reservedStringData, containsString((String)entry.getValue()));
            counterfound++;
        }
        assertThat(counterfound, is(observation.getReservedFields().size()));
    }
public static void verifyReservedFieldPanel ( WebElement panel , GeneralObservationInformation observation ) { WebElement reservedFieldHeader = panel . findElement ( By . cssSelector ( "span[id$='genHeaderReserved']" ) ) ; assertThat ( reservedFieldHeader . getText ( ) , is ( "Reserved Fields" ) ) ; WebElement reservedData = panel . findElement ( By . cssSelector ( "span[id$='genInfoReserved']" ) ) ; String reservedStringData = reservedData . getText ( ) ; int counterfound = 0 ; for ( MapEntry entry : observation . getReservedFields ( ) ) { assertThat ( reservedStringData , containsString ( entry . getKey ( ) ) ) ; assertThat ( reservedStringData , containsString ( ( String ) entry . getValue ( ) ) ) ; counterfound ++ ; } assertThat ( counterfound , is ( observation . getReservedFields ( ) . size ( ) ) ) ; }
Verify the reserved field data is correct including the key and value data.
Verify the reserved field data is correct including the key and value data .