mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestProgramImpl.java
@Test
    public void testExecute() throws MissionProgramException, InterruptedException, ExecutionException
    {
        ProgramImpl program = createProgram("test");
        ArgumentCaptor<ProgramImpl> arguments = ArgumentCaptor.forClass(ProgramImpl.class);

        //change the status and try again
        program.changeStatus(ProgramStatus.WAITING_INITIALIZED);
        
        program.execute();
        verify(m_Manager).executeProgram(arguments.capture());
        assertThat(arguments.getValue().getExecParams().size(), is(0));
    }
/**
     * Test that the program can be manually executed.
     * 
     * Verify that if script initialization does not take place that the program will not execute.
     */
Test that the program can be manually executed.

Verify that if script initialization does not take place that the program will not execute.
Test that the program can be manually executed . Verify that if script initialization does not take place that the program will not execute .
@Test
    public void testExecute() throws MissionProgramException, InterruptedException, ExecutionException
    {
        ProgramImpl program = createProgram("test");
        ArgumentCaptor<ProgramImpl> arguments = ArgumentCaptor.forClass(ProgramImpl.class);
        program.changeStatus(ProgramStatus.WAITING_INITIALIZED);
        program.execute();
        verify(m_Manager).executeProgram(arguments.capture());
        assertThat(arguments.getValue().getExecParams().size(), is(0));
    }
@ Test public void testExecute ( ) throws MissionProgramException , InterruptedException , ExecutionException { ProgramImpl program = createProgram ( "test" ) ; ArgumentCaptor < ProgramImpl > arguments = ArgumentCaptor . forClass ( ProgramImpl . class ) ; program . changeStatus ( ProgramStatus . WAITING_INITIALIZED ) ; program . execute ( ) ; verify ( m_Manager ) . executeProgram ( arguments . capture ( ) ) ; assertThat ( arguments . getValue ( ) . getExecParams ( ) . size ( ) , is ( 0 ) ) ; }
Test that the program can be manually executed.
Test that the program can be manually executed .
//change the status and try again