mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestTemplateProgramManager.java
public void testGetTemplateNames() throws IllegalArgumentException, PersistenceFailedException
    {
        String source = "This is good Source";
        //add a few templates
        MissionProgramTemplate progTemplate = createTestTemplate("TemplateTest1", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);  
        progTemplate = createTestTemplate("TemplateTest2", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        progTemplate = createTestTemplate("TemplateTest3", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        progTemplate = createTestTemplate("TemplateTest4", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        
        //verify
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest1"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest2"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest3"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest4"));
    }
/**
     * Verify ability to get the names of templates loaded on a controller.
     */
Verify ability to get the names of templates loaded on a controller.
Verify ability to get the names of templates loaded on a controller .
public void testGetTemplateNames() throws IllegalArgumentException, PersistenceFailedException
    {
        String source = "This is good Source";
        MissionProgramTemplate progTemplate = createTestTemplate("TemplateTest1", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);  
        progTemplate = createTestTemplate("TemplateTest2", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        progTemplate = createTestTemplate("TemplateTest3", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        progTemplate = createTestTemplate("TemplateTest4", source);
        m_TemplateProgramManager.loadMissionTemplate(progTemplate);
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest1"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest2"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest3"));
        assertThat(m_TemplateProgramManager.getMissionTemplateNames(), hasItem("TemplateTest4"));
    }
public void testGetTemplateNames ( ) throws IllegalArgumentException , PersistenceFailedException { String source = "This is good Source" ; MissionProgramTemplate progTemplate = createTestTemplate ( "TemplateTest1" , source ) ; m_TemplateProgramManager . loadMissionTemplate ( progTemplate ) ; progTemplate = createTestTemplate ( "TemplateTest2" , source ) ; m_TemplateProgramManager . loadMissionTemplate ( progTemplate ) ; progTemplate = createTestTemplate ( "TemplateTest3" , source ) ; m_TemplateProgramManager . loadMissionTemplate ( progTemplate ) ; progTemplate = createTestTemplate ( "TemplateTest4" , source ) ; m_TemplateProgramManager . loadMissionTemplate ( progTemplate ) ; assertThat ( m_TemplateProgramManager . getMissionTemplateNames ( ) , hasItem ( "TemplateTest1" ) ) ; assertThat ( m_TemplateProgramManager . getMissionTemplateNames ( ) , hasItem ( "TemplateTest2" ) ) ; assertThat ( m_TemplateProgramManager . getMissionTemplateNames ( ) , hasItem ( "TemplateTest3" ) ) ; assertThat ( m_TemplateProgramManager . getMissionTemplateNames ( ) , hasItem ( "TemplateTest4" ) ) ; }
Verify ability to get the names of templates loaded on a controller.
Verify ability to get the names of templates loaded on a controller .
//add a few templates //verify