mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestControllerMgrImpl.java
private void mockControllerMessage(int systemId, BaseMessageType messageType, Builder<?> dataMessage)
    {
        // properties for the event
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, dataMessage.build());
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.Base.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, messageType.toString());
        //the event
        final Event event = createOsgiEvent(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
        m_Helper.handleEvent(event);
    }
/**
     * Used to mock a message from a controller, will create a controller based on system id. 
     */
Used to mock a message from a controller, will create a controller based on system id.
Used to mock a message from a controller will create a controller based on system id .
private void mockControllerMessage(int systemId, BaseMessageType messageType, Builder<?> dataMessage)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, dataMessage.build());
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.Base.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, messageType.toString());
        final Event event = createOsgiEvent(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
        m_Helper.handleEvent(event);
    }
private void mockControllerMessage ( int systemId , BaseMessageType messageType , Builder < ? > dataMessage ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . EVENT_PROP_DATA_MESSAGE , dataMessage . build ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , systemId ) ; props . put ( RemoteConstants . EVENT_PROP_DEST_ID , 0 ) ; props . put ( RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . Base . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , messageType . toString ( ) ) ; final Event event = createOsgiEvent ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; m_Helper . handleEvent ( event ) ; }
Used to mock a message from a controller, will create a controller based on system id.
Used to mock a message from a controller will create a controller based on system id .
// properties for the event //the event