mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestTerraHarvestControllerImpl.java
@Test
    public final void testSetGetId() throws Exception
    {
        // Set id
        m_SUT.setId(0x342334);

        ArgumentCaptor<File> fileCaptor = ArgumentCaptor.forClass(File.class);
        verify(m_FileService, atLeastOnce()).createFileOutputStream(fileCaptor.capture());
        assertThat(fileCaptor.getValue().getPath(), is(EXPECTED_TH_SYSTEM_PROPERTIES_FILENAME));
        assertThat(new String(m_OutputData.toByteArray()), containsString("id=0x00342334"));

        // get id
        assertThat(m_SUT.getId(), is(0x342334));
    }
/**
     * Verify the ID can be set and retrieved, that property file contains correct value for ID property.
     */
Verify the ID can be set and retrieved, that property file contains correct value for ID property.
Verify the ID can be set and retrieved that property file contains correct value for ID property .
@Test
    public final void testSetGetId() throws Exception
    {
        m_SUT.setId(0x342334);
        ArgumentCaptor<File> fileCaptor = ArgumentCaptor.forClass(File.class);
        verify(m_FileService, atLeastOnce()).createFileOutputStream(fileCaptor.capture());
        assertThat(fileCaptor.getValue().getPath(), is(EXPECTED_TH_SYSTEM_PROPERTIES_FILENAME));
        assertThat(new String(m_OutputData.toByteArray()), containsString("id=0x00342334"));
        assertThat(m_SUT.getId(), is(0x342334));
    }
@ Test public final void testSetGetId ( ) throws Exception { m_SUT . setId ( 0x342334 ) ; ArgumentCaptor < File > fileCaptor = ArgumentCaptor . forClass ( File . class ) ; verify ( m_FileService , atLeastOnce ( ) ) . createFileOutputStream ( fileCaptor . capture ( ) ) ; assertThat ( fileCaptor . getValue ( ) . getPath ( ) , is ( EXPECTED_TH_SYSTEM_PROPERTIES_FILENAME ) ) ; assertThat ( new String ( m_OutputData . toByteArray ( ) ) , containsString ( "id=0x00342334" ) ) ; assertThat ( m_SUT . getId ( ) , is ( 0x342334 ) ) ; }
Verify the ID can be set and retrieved, that property file contains correct value for ID property.
Verify the ID can be set and retrieved that property file contains correct value for ID property .
// Set id // get id