mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestTemplateProgramManagerImpl.java
@Test
    public void testActivate()
    {
        mockTemplateProgramManagerTemplates();
        m_SUT.activate(context);
        
        assertThat(m_SUT.getMissionTemplateNames(), hasItem("saved-program5"));
                
        //verify the template contents
        MissionProgramTemplate program1 = m_SUT.getTemplate("saved-program1");
        assertThat(program1.getSource(), is("test"));
        List<MissionVariableMetaData> progData = program1.getVariableMetaData();
        assertThat(progData.isEmpty(), is(false));
        //the template had four var metadata entries
        assertThat(progData.size(), is(4));
        assertThat(progData.get(0).getType(), is(MissionVariableTypesEnum.ASSET));
        assertThat(progData.get(2).getType(), is(MissionVariableTypesEnum.TRANSPORT_LAYER));
    }
/**
     * Test activation of the TemplateProgramManager.
     */
Test activation of the TemplateProgramManager.
Test activation of the TemplateProgramManager .
@Test
    public void testActivate()
    {
        mockTemplateProgramManagerTemplates();
        m_SUT.activate(context);
        assertThat(m_SUT.getMissionTemplateNames(), hasItem("saved-program5"));
        MissionProgramTemplate program1 = m_SUT.getTemplate("saved-program1");
        assertThat(program1.getSource(), is("test"));
        List<MissionVariableMetaData> progData = program1.getVariableMetaData();
        assertThat(progData.isEmpty(), is(false));
        assertThat(progData.size(), is(4));
        assertThat(progData.get(0).getType(), is(MissionVariableTypesEnum.ASSET));
        assertThat(progData.get(2).getType(), is(MissionVariableTypesEnum.TRANSPORT_LAYER));
    }
@ Test public void testActivate ( ) { mockTemplateProgramManagerTemplates ( ) ; m_SUT . activate ( context ) ; assertThat ( m_SUT . getMissionTemplateNames ( ) , hasItem ( "saved-program5" ) ) ; MissionProgramTemplate program1 = m_SUT . getTemplate ( "saved-program1" ) ; assertThat ( program1 . getSource ( ) , is ( "test" ) ) ; List < MissionVariableMetaData > progData = program1 . getVariableMetaData ( ) ; assertThat ( progData . isEmpty ( ) , is ( false ) ) ; assertThat ( progData . size ( ) , is ( 4 ) ) ; assertThat ( progData . get ( 0 ) . getType ( ) , is ( MissionVariableTypesEnum . ASSET ) ) ; assertThat ( progData . get ( 2 ) . getType ( ) , is ( MissionVariableTypesEnum . TRANSPORT_LAYER ) ) ; }
Test activation of the TemplateProgramManager.
Test activation of the TemplateProgramManager .
//verify the template contents //the template had four var metadata entries