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

        verify(m_Scheduler).cancelScheduledProgram("cancelProgramName");
    }
/**
     * Test the canceling of a mission.
     */
Test the canceling of a mission.
Test the canceling of a mission .
@Test
    public void testCancel() throws MissionProgramException
    {
        ProgramImpl program = mock(ProgramImpl.class);
        when(program.getProgramName()).thenReturn("cancelProgramName");
        m_SUT.cancelProgram(program.getProgramName());
        verify(m_Scheduler).cancelScheduledProgram("cancelProgramName");
    }
@ Test public void testCancel ( ) throws MissionProgramException { ProgramImpl program = mock ( ProgramImpl . class ) ; when ( program . getProgramName ( ) ) . thenReturn ( "cancelProgramName" ) ; m_SUT . cancelProgram ( program . getProgramName ( ) ) ; verify ( m_Scheduler ) . cancelScheduledProgram ( "cancelProgramName" ) ; }
Test the canceling of a mission.
Test the canceling of a mission .
//mock program //call the method