mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestMissionProgramMgrImpl.java
private Event mockGetTemplatesRequestMutiples(final int systemId)
    {
        MissionProgramTemplateGen.MissionProgramTemplate genTemp1 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name1").
                setSource("source1").build();
        MissionProgramTemplateGen.MissionProgramTemplate genTemp2 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name2").
                setSource("source2").build();
        MissionProgramTemplateGen.MissionProgramTemplate genTemp3 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name3").
                setSource("source3").build();

        GetTemplatesResponseData data = GetTemplatesResponseData.newBuilder().addTemplate(genTemp1).
             addTemplate(genTemp2).addTemplate(genTemp3).build();

        // properties for the event
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, data);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.MissionProgramming.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            MissionProgrammingMessageType.GetTemplatesResponse.toString());
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * Used to mock the event that a response to get templates was received.
     */
Used to mock the event that a response to get templates was received.
Used to mock the event that a response to get templates was received .
private Event mockGetTemplatesRequestMutiples(final int systemId)
    {
        MissionProgramTemplateGen.MissionProgramTemplate genTemp1 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name1").
                setSource("source1").build();
        MissionProgramTemplateGen.MissionProgramTemplate genTemp2 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name2").
                setSource("source2").build();
        MissionProgramTemplateGen.MissionProgramTemplate genTemp3 = 
            MissionProgramTemplateGen.MissionProgramTemplate.newBuilder().
                setName("name3").
                setSource("source3").build();
        GetTemplatesResponseData data = GetTemplatesResponseData.newBuilder().addTemplate(genTemp1).
             addTemplate(genTemp2).addTemplate(genTemp3).build();
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, data);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, systemId);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.MissionProgramming.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            MissionProgrammingMessageType.GetTemplatesResponse.toString());
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event mockGetTemplatesRequestMutiples ( final int systemId ) { MissionProgramTemplateGen . MissionProgramTemplate genTemp1 = MissionProgramTemplateGen . MissionProgramTemplate . newBuilder ( ) . setName ( "name1" ) . setSource ( "source1" ) . build ( ) ; MissionProgramTemplateGen . MissionProgramTemplate genTemp2 = MissionProgramTemplateGen . MissionProgramTemplate . newBuilder ( ) . setName ( "name2" ) . setSource ( "source2" ) . build ( ) ; MissionProgramTemplateGen . MissionProgramTemplate genTemp3 = MissionProgramTemplateGen . MissionProgramTemplate . newBuilder ( ) . setName ( "name3" ) . setSource ( "source3" ) . build ( ) ; GetTemplatesResponseData data = GetTemplatesResponseData . newBuilder ( ) . addTemplate ( genTemp1 ) . addTemplate ( genTemp2 ) . addTemplate ( genTemp3 ) . build ( ) ; final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . EVENT_PROP_DATA_MESSAGE , data ) ; props . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , systemId ) ; props . put ( RemoteConstants . EVENT_PROP_DEST_ID , 0 ) ; props . put ( RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . MissionProgramming . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , MissionProgrammingMessageType . GetTemplatesResponse . toString ( ) ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Used to mock the event that a response to get templates was received.
Used to mock the event that a response to get templates was received .
// properties for the event //the event