mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestTerraHarvestControllerImpl.java
@Test
    public final void testSetGetName() throws Exception
    {
        // Set name
        m_SUT.setName("Blah");
        
        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("name=Blah"));
        
        assertThat(m_SUT.getName(), is("Blah"));
    }
/**
     * Verify the name can be set and retrieved, that property file contains correct value for name property.
     */
Verify the name can be set and retrieved, that property file contains correct value for name property.
Verify the name can be set and retrieved that property file contains correct value for name property .
@Test
    public final void testSetGetName() throws Exception
    {
        m_SUT.setName("Blah");
        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("name=Blah"));
        assertThat(m_SUT.getName(), is("Blah"));
    }
@ Test public final void testSetGetName ( ) throws Exception { m_SUT . setName ( "Blah" ) ; 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 ( "name=Blah" ) ) ; assertThat ( m_SUT . getName ( ) , is ( "Blah" ) ) ; }
Verify the name can be set and retrieved, that property file contains correct value for name property.
Verify the name can be set and retrieved that property file contains correct value for name property .
// Set name