mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestProgramImpl.java
@Test
    public void testProgramStatusChangeUnsatisfied() throws MissionProgramException
    {
        ProgramImpl program = createProgram("name");

        //this is the status of a program when dependencies have not yet been fulfilled
        program.changeStatus(ProgramStatus.UNSATISFIED);
        
        try
        {
            program.changeStatus(ProgramStatus.EXECUTING);
            fail("Expecting exception because the script should not go from unsatisfied to executing.");
        }
        catch (IllegalStateException e)
        {
            //expected exception, because the script had unsatisfied dependencies it should not execute.
        }      
    }
/**
     * Tests that if a mission has unsatisfied dependencies the status change throws an error if
     * execution is attempted.
     */
Tests that if a mission has unsatisfied dependencies the status change throws an error if
execution is attempted.
Tests that if a mission has unsatisfied dependencies the status change throws an error if execution is attempted .
@Test
    public void testProgramStatusChangeUnsatisfied() throws MissionProgramException
    {
        ProgramImpl program = createProgram("name");
        program.changeStatus(ProgramStatus.UNSATISFIED);
        try
        {
            program.changeStatus(ProgramStatus.EXECUTING);
            fail("Expecting exception because the script should not go from unsatisfied to executing.");
        }
        catch (IllegalStateException e)
        {
        }      
    }
@ Test public void testProgramStatusChangeUnsatisfied ( ) throws MissionProgramException { ProgramImpl program = createProgram ( "name" ) ; program . changeStatus ( ProgramStatus . UNSATISFIED ) ; try { program . changeStatus ( ProgramStatus . EXECUTING ) ; fail ( "Expecting exception because the script should not go from unsatisfied to executing." ) ; } catch ( IllegalStateException e ) { } }
Tests that if a mission has unsatisfied dependencies the status change throws an error if
 execution is attempted.
Tests that if a mission has unsatisfied dependencies the status change throws an error if execution is attempted .
//this is the status of a program when dependencies have not yet been fulfilled //expected exception, because the script had unsatisfied dependencies it should not execute.