mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestMissionProgramManagerImpl.java
@Test
    public void testShutdownExecution() throws MissionProgramException
    {
        //mock program
        ProgramImpl program = mock(ProgramImpl.class);
        when(program.getProgramName()).thenReturn("shutdownProgramName");
        
        //call the method
        m_SUT.shutdownProgram(program);

        verify(m_Scheduler).shutdownProgram(program);
    }
/**
     * Test the shutdown execution of a mission script.
     */
Test the shutdown execution of a mission script.
Test the shutdown execution of a mission script .
@Test
    public void testShutdownExecution() throws MissionProgramException
    {
        ProgramImpl program = mock(ProgramImpl.class);
        when(program.getProgramName()).thenReturn("shutdownProgramName");
        m_SUT.shutdownProgram(program);
        verify(m_Scheduler).shutdownProgram(program);
    }
@ Test public void testShutdownExecution ( ) throws MissionProgramException { ProgramImpl program = mock ( ProgramImpl . class ) ; when ( program . getProgramName ( ) ) . thenReturn ( "shutdownProgramName" ) ; m_SUT . shutdownProgram ( program ) ; verify ( m_Scheduler ) . shutdownProgram ( program ) ; }
Test the shutdown execution of a mission script.
Test the shutdown execution of a mission script .
//mock program //call the method