mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestMissionProgramManagerImpl.java
private void mockDependentMissionTemplates()
    {
        // variable metadata
        MissionVariableMetaData varMeta =  new MissionVariableMetaData().withName("program").
            withType(MissionVariableTypesEnum.PROGRAM_DEPENDENCIES);
        
        //mission templates
        MissionProgramTemplate programData1 = new MissionProgramTemplate().withSource("test")
                .withVariableMetaData(varMeta).withName("program");
        MissionProgramTemplate programData2 = new MissionProgramTemplate().withSource("test")
                .withName("program-nodeps");
               
        //mock out templates
        Set<String> templateNames = new HashSet<String>();
        templateNames.add("program");
        templateNames.add("program-nodeps");
        when(m_TemplateManager.getMissionTemplateNames()).thenReturn(templateNames);
        
        when(m_TemplateManager.getTemplate("program")).thenReturn(programData1);
        when(m_TemplateManager.getTemplate("program-nodeps")).thenReturn(programData2);
    }
/**
     * Templates used for {@link #testActivationProgramNotCheckedOnceSatisfied()}.
     */
Templates used for  #testActivationProgramNotCheckedOnceSatisfied().
Templates used for #testActivationProgramNotCheckedOnceSatisfied () .
private void mockDependentMissionTemplates()
    {
        MissionVariableMetaData varMeta =  new MissionVariableMetaData().withName("program").
            withType(MissionVariableTypesEnum.PROGRAM_DEPENDENCIES);
        MissionProgramTemplate programData1 = new MissionProgramTemplate().withSource("test")
                .withVariableMetaData(varMeta).withName("program");
        MissionProgramTemplate programData2 = new MissionProgramTemplate().withSource("test")
                .withName("program-nodeps");
        Set<String> templateNames = new HashSet<String>();
        templateNames.add("program");
        templateNames.add("program-nodeps");
        when(m_TemplateManager.getMissionTemplateNames()).thenReturn(templateNames);
        when(m_TemplateManager.getTemplate("program")).thenReturn(programData1);
        when(m_TemplateManager.getTemplate("program-nodeps")).thenReturn(programData2);
    }
private void mockDependentMissionTemplates ( ) { MissionVariableMetaData varMeta = new MissionVariableMetaData ( ) . withName ( "program" ) . withType ( MissionVariableTypesEnum . PROGRAM_DEPENDENCIES ) ; MissionProgramTemplate programData1 = new MissionProgramTemplate ( ) . withSource ( "test" ) . withVariableMetaData ( varMeta ) . withName ( "program" ) ; MissionProgramTemplate programData2 = new MissionProgramTemplate ( ) . withSource ( "test" ) . withName ( "program-nodeps" ) ; Set < String > templateNames = new HashSet < String > ( ) ; templateNames . add ( "program" ) ; templateNames . add ( "program-nodeps" ) ; when ( m_TemplateManager . getMissionTemplateNames ( ) ) . thenReturn ( templateNames ) ; when ( m_TemplateManager . getTemplate ( "program" ) ) . thenReturn ( programData1 ) ; when ( m_TemplateManager . getTemplate ( "program-nodeps" ) ) . thenReturn ( programData2 ) ; }
Templates used for {@link #testActivationProgramNotCheckedOnceSatisfied()}.
Templates used for { @link #testActivationProgramNotCheckedOnceSatisfied () } .
// variable metadata //mission templates //mock out templates