mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/controller/TestTerraHarvestController.java
@Test
    public void testGetOperationMode() throws UnmarshalException
    {
        //verify default of test mode
        TerraHarvestController controller = IntegrationTestRunner.getService(TerraHarvestController.class);
        assertThat(controller.getOperationMode(), is(OperationMode.TEST_MODE));

        //set to operational mode
        controller.setOperationMode(OperationMode.OPERATIONAL_MODE);
        assertThat(controller.getOperationMode(), is(OperationMode.OPERATIONAL_MODE));
        
        //put it back to default
        controller.setOperationMode(OperationMode.TEST_MODE);
        assertThat(controller.getOperationMode(), is(OperationMode.TEST_MODE));
    }
/**
     * Test the operation mode defaults to test, and can be set to operation mode.
     */
Test the operation mode defaults to test, and can be set to operation mode.
Test the operation mode defaults to test and can be set to operation mode .
@Test
    public void testGetOperationMode() throws UnmarshalException
    {
        TerraHarvestController controller = IntegrationTestRunner.getService(TerraHarvestController.class);
        assertThat(controller.getOperationMode(), is(OperationMode.TEST_MODE));
        controller.setOperationMode(OperationMode.OPERATIONAL_MODE);
        assertThat(controller.getOperationMode(), is(OperationMode.OPERATIONAL_MODE));
        controller.setOperationMode(OperationMode.TEST_MODE);
        assertThat(controller.getOperationMode(), is(OperationMode.TEST_MODE));
    }
@ Test public void testGetOperationMode ( ) throws UnmarshalException { TerraHarvestController controller = IntegrationTestRunner . getService ( TerraHarvestController . class ) ; assertThat ( controller . getOperationMode ( ) , is ( OperationMode . TEST_MODE ) ) ; controller . setOperationMode ( OperationMode . OPERATIONAL_MODE ) ; assertThat ( controller . getOperationMode ( ) , is ( OperationMode . OPERATIONAL_MODE ) ) ; controller . setOperationMode ( OperationMode . TEST_MODE ) ; assertThat ( controller . getOperationMode ( ) , is ( OperationMode . TEST_MODE ) ) ; }
Test the operation mode defaults to test, and can be set to operation mode.
Test the operation mode defaults to test and can be set to operation mode .
//verify default of test mode //set to operational mode //put it back to default