mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetTypesMgrImpl.java
private Event mockMessageGetAssetTypesResponseOneRemoved(final int systemId)
    {
        List<String> productTypes = new ArrayList<String>();
        productTypes.add("super.awesome.OutOfThisWorld");
        List<String> productNames = new ArrayList<String>();
        productNames.add("nothing really!");
        GetAssetTypesResponseData response = GetAssetTypesResponseData.newBuilder().
            addAllProductType(productTypes).addAllProductName(productNames).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, 
            AssetDirectoryServiceMessageType.GetAssetTypesResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * This method creates a GetAssetTypesResponse message where there is only one factory type returned.
     * @param systemId
     *     the system id to use
     * @return
     *     an event that represents the type of event expected to be posted when this type of message is received
     */
This method creates a GetAssetTypesResponse message where there is only one factory type returned.
@param systemId
the system id to use
@return
an event that represents the type of event expected to be posted when this type of message is received
This method creates a GetAssetTypesResponse message where there is only one factory type returned . @param systemId the system id to use @return an event that represents the type of event expected to be posted when this type of message is received
private Event mockMessageGetAssetTypesResponseOneRemoved(final int systemId)
    {
        List<String> productTypes = new ArrayList<String>();
        productTypes.add("super.awesome.OutOfThisWorld");
        List<String> productNames = new ArrayList<String>();
        productNames.add("nothing really!");
        GetAssetTypesResponseData response = GetAssetTypesResponseData.newBuilder().
            addAllProductType(productTypes).addAllProductName(productNames).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, 
            AssetDirectoryServiceMessageType.GetAssetTypesResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event mockMessageGetAssetTypesResponseOneRemoved ( final int systemId ) { List < String > productTypes = new ArrayList < String > ( ) ; productTypes . add ( "super.awesome.OutOfThisWorld" ) ; List < String > productNames = new ArrayList < String > ( ) ; productNames . add ( "nothing really!" ) ; GetAssetTypesResponseData response = GetAssetTypesResponseData . newBuilder ( ) . addAllProductType ( productTypes ) . addAllProductName ( productNames ) . 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 , AssetDirectoryServiceMessageType . GetAssetTypesResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
This method creates a GetAssetTypesResponse message where there is only one factory type returned.
This method creates a GetAssetTypesResponse message where there is only one factory type returned .
// properties for the event //the event