mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestTerraHarvestControllerCommands.java
@Test
    public void testGetMode()
    {   
        when(m_TerraHarvestController.getOperationMode()).thenReturn(OperationMode.OPERATIONAL_MODE);
        
        assertThat(m_SUT.getMode(), is("operational"));
        
        when(m_TerraHarvestController.getOperationMode()).thenReturn(OperationMode.TEST_MODE);
        
        assertThat(m_SUT.getMode(), is("test"));
    }
/*
     * Verify that the current operation mode of the system can be gotten using the shell command.
     */
Verify that the current operation mode of the system can be gotten using the shell command.
Verify that the current operation mode of the system can be gotten using the shell command .
@Test
    public void testGetMode()
    {   
        when(m_TerraHarvestController.getOperationMode()).thenReturn(OperationMode.OPERATIONAL_MODE);
        assertThat(m_SUT.getMode(), is("operational"));
        when(m_TerraHarvestController.getOperationMode()).thenReturn(OperationMode.TEST_MODE);
        assertThat(m_SUT.getMode(), is("test"));
    }
@ Test public void testGetMode ( ) { when ( m_TerraHarvestController . getOperationMode ( ) ) . thenReturn ( OperationMode . OPERATIONAL_MODE ) ; assertThat ( m_SUT . getMode ( ) , is ( "operational" ) ) ; when ( m_TerraHarvestController . getOperationMode ( ) ) . thenReturn ( OperationMode . TEST_MODE ) ; assertThat ( m_SUT . getMode ( ) , is ( "test" ) ) ; }
Verify that the current operation mode of the system can be gotten using the shell command.
Verify that the current operation mode of the system can be gotten using the shell command .