mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
private Event mockEventNameUpdated(final int systemId, final String type)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        if (type.equals("transport"))
        {
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "transy");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid1.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid1);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "TransportLayer");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, TransportLayer.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        }
        else if (type.equals("link"))
        {
            // properties for the event            
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "linky");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid2);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "LinkLayer");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, LinkLayer.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId); 
        }
        else if (type.equals("physical"))
        {
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "fizzy");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid3.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid3);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "PhysicalLink");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, PhysicalLink.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        }
        //the event
        return new Event(FactoryDescriptor.TOPIC_FACTORY_OBJ_NAME_UPDATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
    }
/**
     * Used to mock a message from a remote controller representing a link layer's name was successfully updated. 
     */
Used to mock a message from a remote controller representing a link layer's name was successfully updated.
Used to mock a message from a remote controller representing a link layer ' s name was successfully updated .
private Event mockEventNameUpdated(final int systemId, final String type)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        if (type.equals("transport"))
        {
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "transy");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid1.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid1);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "TransportLayer");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, TransportLayer.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        }
        else if (type.equals("link"))
        {
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "linky");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid2);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "LinkLayer");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, LinkLayer.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId); 
        }
        else if (type.equals("physical"))
        {
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "fizzy");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid3.toString());
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, pid3);
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "PhysicalLink");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, PhysicalLink.class.getName());
            props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        }
        return new Event(FactoryDescriptor.TOPIC_FACTORY_OBJ_NAME_UPDATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
    }
private Event mockEventNameUpdated ( final int systemId , final String type ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; if ( type . equals ( "transport" ) ) { props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "transy" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid1 . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_PID , pid1 ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "TransportLayer" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , TransportLayer . class . getName ( ) ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; } else if ( type . equals ( "link" ) ) { props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "linky" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid2 . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_PID , pid2 ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "LinkLayer" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , LinkLayer . class . getName ( ) ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; } else if ( type . equals ( "physical" ) ) { props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "fizzy" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid3 . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_PID , pid3 ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "PhysicalLink" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , PhysicalLink . class . getName ( ) ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; } return new Event ( FactoryDescriptor . TOPIC_FACTORY_OBJ_NAME_UPDATED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; }
Used to mock a message from a remote controller representing a link layer's name was successfully updated.
Used to mock a message from a remote controller representing a link layer ' s name was successfully updated .
// properties for the event             //the event