mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestCurrentMissionMgrImpl.java
@Test
    public void testTranslateProgramStatus()
    {
        //expect running
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTED), is("RUNNING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTING), is("RUNNING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SHUTTING_DOWN), is("RUNNING"));
        
        //expect loading
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.WAITING_UNINITIALIZED), is("LOADING"));
        
        //expect loaded
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.WAITING_INITIALIZED), is("LOADED"));
        
        //expect testing
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTING_TEST), is("TESTING"));
        
        //expect error
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.VARIABLE_ERROR), is("ERROR"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.INITIALIZATION_ERROR), is("ERROR"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SCRIPT_ERROR), is("ERROR"));
        
        //expect the status that is passed in
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.CANCELED), is("CANCELED"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SCHEDULED), is("SCHEDULED"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SHUTDOWN), is("SHUTDOWN"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.UNSATISFIED), is("UNSATISFIED"));
    }
/**
     * Verify program status is correctly translated.
     */
Verify program status is correctly translated.
Verify program status is correctly translated .
@Test
    public void testTranslateProgramStatus()
    {
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTED), is("RUNNING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTING), is("RUNNING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SHUTTING_DOWN), is("RUNNING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.WAITING_UNINITIALIZED), is("LOADING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.WAITING_INITIALIZED), is("LOADED"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.EXECUTING_TEST), is("TESTING"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.VARIABLE_ERROR), is("ERROR"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.INITIALIZATION_ERROR), is("ERROR"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SCRIPT_ERROR), is("ERROR"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.CANCELED), is("CANCELED"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SCHEDULED), is("SCHEDULED"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.SHUTDOWN), is("SHUTDOWN"));
        assertThat(m_SUT.translateProgramStatus(ProgramStatus.UNSATISFIED), is("UNSATISFIED"));
    }
@ Test public void testTranslateProgramStatus ( ) { assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . EXECUTED ) , is ( "RUNNING" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . EXECUTING ) , is ( "RUNNING" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . SHUTTING_DOWN ) , is ( "RUNNING" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . WAITING_UNINITIALIZED ) , is ( "LOADING" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . WAITING_INITIALIZED ) , is ( "LOADED" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . EXECUTING_TEST ) , is ( "TESTING" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . VARIABLE_ERROR ) , is ( "ERROR" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . INITIALIZATION_ERROR ) , is ( "ERROR" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . SCRIPT_ERROR ) , is ( "ERROR" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . CANCELED ) , is ( "CANCELED" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . SCHEDULED ) , is ( "SCHEDULED" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . SHUTDOWN ) , is ( "SHUTDOWN" ) ) ; assertThat ( m_SUT . translateProgramStatus ( ProgramStatus . UNSATISFIED ) , is ( "UNSATISFIED" ) ) ; }
Verify program status is correctly translated.
Verify program status is correctly translated .
//expect running //expect loading //expect loaded //expect testing //expect error //expect the status that is passed in