mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
private Event mockGetLayerNameResponse(final int systemId, CommType type, UUID uuid, String name)
    {
        GetLayerNameResponseData response = GetLayerNameResponseData.newBuilder().setCommType(type).
                setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid)).setLayerName(name).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.CustomComms.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            CustomCommsMessageType.GetLayerNameResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props); 
    }
/**
     * Helper method for mocking a GetLayerNameResponse from the controller. 
     */
Helper method for mocking a GetLayerNameResponse from the controller.
Helper method for mocking a GetLayerNameResponse from the controller .
private Event mockGetLayerNameResponse(final int systemId, CommType type, UUID uuid, String name)
    {
        GetLayerNameResponseData response = GetLayerNameResponseData.newBuilder().setCommType(type).
                setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid)).setLayerName(name).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.CustomComms.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            CustomCommsMessageType.GetLayerNameResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props); 
    }
private Event mockGetLayerNameResponse ( final int systemId , CommType type , UUID uuid , String name ) { GetLayerNameResponseData response = GetLayerNameResponseData . newBuilder ( ) . setCommType ( type ) . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid ) ) . setLayerName ( name ) . 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 . CustomComms . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , CustomCommsMessageType . GetLayerNameResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Helper method for mocking a GetLayerNameResponse from the controller.
Helper method for mocking a GetLayerNameResponse from the controller .
// properties for the event //the event