mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
private Event mockGetStatusResponse(final int systemId, CustomCommsTypes.LinkStatus status)
    {
        Message response = null;
        if (status == null)
        {
            response = GetStatusResponseData.newBuilder().setLinkStatus(CustomCommsTypes.LinkStatus.LOST).
                    setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).build();//should not be a valid link uuid
        }
        else
        {
            response = GetStatusResponseData.newBuilder().setLinkStatus(status).
                    setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid2)).build();
        }

        // properties for the event
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, response);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.LinkLayer.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            LinkLayerMessageType.GetStatusResponse.toString());
        
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * Helper method for mocking a GetStatusResponse from the controller.
     */
Helper method for mocking a GetStatusResponse from the controller.
Helper method for mocking a GetStatusResponse from the controller .
private Event mockGetStatusResponse(final int systemId, CustomCommsTypes.LinkStatus status)
    {
        Message response = null;
        if (status == null)
        {
            response = GetStatusResponseData.newBuilder().setLinkStatus(CustomCommsTypes.LinkStatus.LOST).
                    setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).build();
        }
        else
        {
            response = GetStatusResponseData.newBuilder().setLinkStatus(status).
                    setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid2)).build();
        }
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, response);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.LinkLayer.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            LinkLayerMessageType.GetStatusResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event mockGetStatusResponse ( final int systemId , CustomCommsTypes . LinkStatus status ) { Message response = null ; if ( status == null ) { response = GetStatusResponseData . newBuilder ( ) . setLinkStatus ( CustomCommsTypes . LinkStatus . LOST ) . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid1 ) ) . build ( ) ; } else { response = GetStatusResponseData . newBuilder ( ) . setLinkStatus ( status ) . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid2 ) ) . build ( ) ; } final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . EVENT_PROP_DATA_MESSAGE , response ) ; props . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , systemId ) ; props . put ( RemoteConstants . EVENT_PROP_DEST_ID , 0 ) ; props . put ( RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . LinkLayer . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , LinkLayerMessageType . GetStatusResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Helper method for mocking a GetStatusResponse from the controller.
Helper method for mocking a GetStatusResponse from the controller .
//should not be a valid link uuid // properties for the event //the event