mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetMgrImpl.java
private Event mockGetAssetStatusResponseActive(final int systemId)
    {
        //Call to add controller to list.
        m_SUT.getAssetsForControllerAsync(systemId);
        
        //create a status
        AssetMessages.AssetActiveStatus status = 
            AssetMessages.AssetActiveStatus.ACTIVATED;
        GetActiveStatusResponseData response = GetActiveStatusResponseData.newBuilder().
            setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).
            setStatus(status).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.Asset.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            AssetMessageType.GetActiveStatusResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * Used to mock a message from a remote controller representing an asset's active status. Specifically
     * an activated status for an asset.
     */
Used to mock a message from a remote controller representing an asset's active status. Specifically
an activated status for an asset.
Used to mock a message from a remote controller representing an asset ' s active status . Specifically an activated status for an asset .
private Event mockGetAssetStatusResponseActive(final int systemId)
    {
        m_SUT.getAssetsForControllerAsync(systemId);
        AssetMessages.AssetActiveStatus status = 
            AssetMessages.AssetActiveStatus.ACTIVATED;
        GetActiveStatusResponseData response = GetActiveStatusResponseData.newBuilder().
            setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid1)).
            setStatus(status).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.Asset.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            AssetMessageType.GetActiveStatusResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event mockGetAssetStatusResponseActive ( final int systemId ) { m_SUT . getAssetsForControllerAsync ( systemId ) ; AssetMessages . AssetActiveStatus status = AssetMessages . AssetActiveStatus . ACTIVATED ; GetActiveStatusResponseData response = GetActiveStatusResponseData . newBuilder ( ) . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid1 ) ) . setStatus ( status ) . 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 . Asset . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , AssetMessageType . GetActiveStatusResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Used to mock a message from a remote controller representing an asset's active status.
Used to mock a message from a remote controller representing an asset ' s active status .
//Call to add controller to list. //create a status // properties for the event //the event