mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetMgrImpl.java
private Event mockGetPropertyResponse(final int systemId)
    {
        //Call to add controller to list.
        m_SUT.getAssetsForControllerAsync(systemId);
        
        //message that would be received as a response to the GetPropertyRequest
        GetNameResponseData response = GetNameResponseData.newBuilder().
            setAssetName("Prime").
            setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).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.AssetDirectoryService.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            AssetMessageType.GetNameResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * Used to mock a message from a remote controller representing an asset's name property. 
     */
Used to mock a message from a remote controller representing an asset's name property.
Used to mock a message from a remote controller representing an asset ' s name property .
private Event mockGetPropertyResponse(final int systemId)
    {
        m_SUT.getAssetsForControllerAsync(systemId);
        GetNameResponseData response = GetNameResponseData.newBuilder().
            setAssetName("Prime").
            setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).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.AssetDirectoryService.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            AssetMessageType.GetNameResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event mockGetPropertyResponse ( final int systemId ) { m_SUT . getAssetsForControllerAsync ( systemId ) ; GetNameResponseData response = GetNameResponseData . newBuilder ( ) . setAssetName ( "Prime" ) . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid1 ) ) . 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 . AssetDirectoryService . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , AssetMessageType . GetNameResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Used to mock a message from a remote controller representing an asset's name property.
Used to mock a message from a remote controller representing an asset ' s name property .
//Call to add controller to list. //message that would be received as a response to the GetPropertyRequest // properties for the event //the event