mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestMissionProgramManagerImpl.java
@Test
    public void testActivateMissingMissionTemplates() 
    {
        // mock
        mockMissionProgramPersistentData();
        when(m_TemplateManager.getMissionTemplateNames()).thenReturn(new HashSet<String>());
        
        // replay
        setScriptEngineAndActivate();
        
        //verify no programs were able to be created
        assertThat(m_SUT.getPrograms().size(), is(0));
    }
/**
     * Test activate, templates not found at activation.
     * Verify programs not created.
     */
Test activate, templates not found at activation.
Verify programs not created.
Test activate templates not found at activation . Verify programs not created .
@Test
    public void testActivateMissingMissionTemplates() 
    {
        mockMissionProgramPersistentData();
        when(m_TemplateManager.getMissionTemplateNames()).thenReturn(new HashSet<String>());
        setScriptEngineAndActivate();
        assertThat(m_SUT.getPrograms().size(), is(0));
    }
@ Test public void testActivateMissingMissionTemplates ( ) { mockMissionProgramPersistentData ( ) ; when ( m_TemplateManager . getMissionTemplateNames ( ) ) . thenReturn ( new HashSet < String > ( ) ) ; setScriptEngineAndActivate ( ) ; assertThat ( m_SUT . getPrograms ( ) . size ( ) , is ( 0 ) ) ; }
Test activate, templates not found at activation.
Test activate templates not found at activation .
// mock // replay //verify no programs were able to be created