mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
private Event mockEventLinkActivated(final int systemId, boolean isNull)
    {
        if(isNull)
        {
         // properties for the event with bad link layer
            final Map<String, Object> props = new HashMap<String, Object>();
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid1.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(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
            return new Event(LinkLayer.TOPIC_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
                props);
        }
        else
        {
         // 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(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
            return new Event(LinkLayer.TOPIC_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
                props);            
        }
    }
/**
     * Used to mock a link activated event.
     */
Used to mock a link activated event.
Used to mock a link activated event .
private Event mockEventLinkActivated(final int systemId, boolean isNull)
    {
        if(isNull)
        {
            final Map<String, Object> props = new HashMap<String, Object>();
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
            props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid1.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(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
            return new Event(LinkLayer.TOPIC_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
                props);
        }
        else
        {
            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(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
            return new Event(LinkLayer.TOPIC_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX, 
                props);            
        }
    }
private Event mockEventLinkActivated ( final int systemId , boolean isNull ) { if ( isNull ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "name" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid1 . 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 ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; return new Event ( LinkLayer . TOPIC_ACTIVATED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; } else { 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 ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; return new Event ( LinkLayer . TOPIC_ACTIVATED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; } }
Used to mock a link activated event.
Used to mock a link activated event .
// properties for the event with bad link layer // properties for the event