mil.dod.th.ose.gui.remote.encryption/test/mil/dod/th/ose/gui/remotesystemencryption/TestEncryptionTypeManagerImpl.java
private Event mockEncryptionTypeResponse(final int systemId, EncryptType type)
    {
        GetEncryptionTypeResponseData response = GetEncryptionTypeResponseData.newBuilder().setType(type).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.EncryptionInfo.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            CustomCommsMessageType.GetLayersResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);        
    }
/**
     * Helper method for mocking a GetLayersResponse from the controller.
     */
Helper method for mocking a GetLayersResponse from the controller.
Helper method for mocking a GetLayersResponse from the controller .
private Event mockEncryptionTypeResponse(final int systemId, EncryptType type)
    {
        GetEncryptionTypeResponseData response = GetEncryptionTypeResponseData.newBuilder().setType(type).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.EncryptionInfo.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            CustomCommsMessageType.GetLayersResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);        
    }
private Event mockEncryptionTypeResponse ( final int systemId , EncryptType type ) { GetEncryptionTypeResponseData response = GetEncryptionTypeResponseData . newBuilder ( ) . setType ( type ) . 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 . EncryptionInfo . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , CustomCommsMessageType . GetLayersResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Helper method for mocking a GetLayersResponse from the controller.
Helper method for mocking a GetLayersResponse from the controller .
// properties for the event //the event