mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestObservationHelper.java
private Event createARemoteObservationMessage(MessageType type)
    {
        Dictionary<String, Object> eventProps = new Hashtable<String, Object>();
        Event eventToReturn = null;
        if (type.equals(MessageType.GET))
        {            
            eventProps.put(RemoteEventConstants.EVENT_PROP_OBS_NUMBER_RETRIEVED, 3);
            eventToReturn = new Event(RemoteEventConstants.TOPIC_OBS_STORE_RETRIEVE_COMPLETE, eventProps);
        }
        else
        {
            eventProps.put(RemoteConstants.EVENT_PROP_SOURCE_ID, 1);
            
            eventProps.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.RemoveObservationResponse.toString());
            eventToReturn = new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, eventProps);
        }
        
        return eventToReturn;
    }
/**
     * Create an Event containing either a GetObservationResponseData or RemoveObservationResponseData
     * object.
     * @param type
     *  the type of observation response data to produce.
     * @return
     *  the event with the proper data and fields for the event.
     */
Create an Event containing either a GetObservationResponseData or RemoveObservationResponseData
object.
@param type
the type of observation response data to produce.
@return
the event with the proper data and fields for the event.
Create an Event containing either a GetObservationResponseData or RemoveObservationResponseData object . @param type the type of observation response data to produce . @return the event with the proper data and fields for the event .
private Event createARemoteObservationMessage(MessageType type)
    {
        Dictionary<String, Object> eventProps = new Hashtable<String, Object>();
        Event eventToReturn = null;
        if (type.equals(MessageType.GET))
        {            
            eventProps.put(RemoteEventConstants.EVENT_PROP_OBS_NUMBER_RETRIEVED, 3);
            eventToReturn = new Event(RemoteEventConstants.TOPIC_OBS_STORE_RETRIEVE_COMPLETE, eventProps);
        }
        else
        {
            eventProps.put(RemoteConstants.EVENT_PROP_SOURCE_ID, 1);
            eventProps.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.RemoveObservationResponse.toString());
            eventToReturn = new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, eventProps);
        }
        return eventToReturn;
    }
private Event createARemoteObservationMessage ( MessageType type ) { Dictionary < String , Object > eventProps = new Hashtable < String , Object > ( ) ; Event eventToReturn = null ; if ( type . equals ( MessageType . GET ) ) { eventProps . put ( RemoteEventConstants . EVENT_PROP_OBS_NUMBER_RETRIEVED , 3 ) ; eventToReturn = new Event ( RemoteEventConstants . TOPIC_OBS_STORE_RETRIEVE_COMPLETE , eventProps ) ; } else { eventProps . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , 1 ) ; eventProps . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , ObservationStoreMessageType . RemoveObservationResponse . toString ( ) ) ; eventToReturn = new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , eventProps ) ; } return eventToReturn ; }
Create an Event containing either a GetObservationResponseData or RemoveObservationResponseData
 object.
Create an Event containing either a GetObservationResponseData or RemoveObservationResponseData object .