mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
private Event mockEventLinkStatusChanged(final int systemId, LinkLayer.LinkStatus status)
    {
        // properties for the event
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, LinkLayer.class.getName());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid2);
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "LinkLayer");
        props.put(LinkLayer.EVENT_PROP_LINK_STATUS, status);
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        return new Event(LinkLayer.TOPIC_STATUS_CHANGED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
            props);
    }
/**
     * Used to mock a remote event representing a change in status for a link layer.
     */
Used to mock a remote event representing a change in status for a link layer.
Used to mock a remote event representing a change in status for a link layer .
private Event mockEventLinkStatusChanged(final int systemId, LinkLayer.LinkStatus status)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, LinkLayer.class.getName());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid2);
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "LinkLayer");
        props.put(LinkLayer.EVENT_PROP_LINK_STATUS, status);
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        return new Event(LinkLayer.TOPIC_STATUS_CHANGED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
            props);
    }
private Event mockEventLinkStatusChanged ( final int systemId , LinkLayer . LinkStatus status ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "name" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid2 . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , LinkLayer . class . getName ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_PID , pid2 ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "LinkLayer" ) ; props . put ( LinkLayer . EVENT_PROP_LINK_STATUS , status ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; return new Event ( LinkLayer . TOPIC_STATUS_CHANGED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; }
Used to mock a remote event representing a change in status for a link layer.
Used to mock a remote event representing a change in status for a link layer .
// properties for the event