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

        //work through legal state changes
        program.changeStatus(ProgramStatus.UNSATISFIED);
        program.changeStatus(ProgramStatus.WAITING_UNINITIALIZED);
        program.changeStatus(ProgramStatus.WAITING_INITIALIZED);
        program.changeStatus(ProgramStatus.EXECUTING);
        program.changeStatus(ProgramStatus.EXECUTED);
        
        //now shutdown
        program.changeStatus(ProgramStatus.SHUTTING_DOWN);
    }
/**
     * Tests that a mission must be executed in order for the status to change to shutting down.
     */
Tests that a mission must be executed in order for the status to change to shutting down.
Tests that a mission must be executed in order for the status to change to shutting down .
@Test
    public void testProgramStatusChangeShuttingDown() throws MissionProgramException
    {
        ProgramImpl program = createProgram("name");
        program.changeStatus(ProgramStatus.UNSATISFIED);
        program.changeStatus(ProgramStatus.WAITING_UNINITIALIZED);
        program.changeStatus(ProgramStatus.WAITING_INITIALIZED);
        program.changeStatus(ProgramStatus.EXECUTING);
        program.changeStatus(ProgramStatus.EXECUTED);
        program.changeStatus(ProgramStatus.SHUTTING_DOWN);
    }
@ Test public void testProgramStatusChangeShuttingDown ( ) throws MissionProgramException { ProgramImpl program = createProgram ( "name" ) ; program . changeStatus ( ProgramStatus . UNSATISFIED ) ; program . changeStatus ( ProgramStatus . WAITING_UNINITIALIZED ) ; program . changeStatus ( ProgramStatus . WAITING_INITIALIZED ) ; program . changeStatus ( ProgramStatus . EXECUTING ) ; program . changeStatus ( ProgramStatus . EXECUTED ) ; program . changeStatus ( ProgramStatus . SHUTTING_DOWN ) ; }
Tests that a mission must be executed in order for the status to change to shutting down.
Tests that a mission must be executed in order for the status to change to shutting down .
//work through legal state changes //now shutdown