mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetModel.java
private void validateTestMsg(AssetModel model, UIComponent uic, Double value, String expectedMsg)
    {
        try
        {
            model.validateValue(m_FacesUtil.getFacesContext(), uic, value);
            assertThat("Method should have returned with Exception", false);
        }
        catch(ValidatorException ve)
        {
            String result = ve.getFacesMessage().getSummary();
            assertThat(result, is(expectedMsg));
        }
    }
/**
     * Test the validation for asset directional measurements
     * @param model An AssetModel
     * @param uic the UIComponent being validated
     * @param value the value to validate against
     * @param expectedMsg the message returned from the validation
     */
Test the validation for asset directional measurements
@param model An AssetModel
@param uic the UIComponent being validated
@param value the value to validate against
@param expectedMsg the message returned from the validation
Test the validation for asset directional measurements @param model An AssetModel @param uic the UIComponent being validated @param value the value to validate against @param expectedMsg the message returned from the validation
private void validateTestMsg(AssetModel model, UIComponent uic, Double value, String expectedMsg)
    {
        try
        {
            model.validateValue(m_FacesUtil.getFacesContext(), uic, value);
            assertThat("Method should have returned with Exception", false);
        }
        catch(ValidatorException ve)
        {
            String result = ve.getFacesMessage().getSummary();
            assertThat(result, is(expectedMsg));
        }
    }
private void validateTestMsg ( AssetModel model , UIComponent uic , Double value , String expectedMsg ) { try { model . validateValue ( m_FacesUtil . getFacesContext ( ) , uic , value ) ; assertThat ( "Method should have returned with Exception" , false ) ; } catch ( ValidatorException ve ) { String result = ve . getFacesMessage ( ) . getSummary ( ) ; assertThat ( result , is ( expectedMsg ) ) ; } }
Test the validation for asset directional measurements
 @param model An AssetModel
 @param uic the UIComponent being validated
 @param value the value to validate against
 @param expectedMsg the message returned from the validation
Test the validation for asset directional measurements @param model An AssetModel @param uic the UIComponent being validated @param value the value to validate against @param expectedMsg the message returned from the validation