mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestTerraHarvestControllerImpl.java
@Test
    public final void testGetBuildInfo()
    {
        Map<String, String> props = new HashMap<String, String>();
        props.put("key", "info");
        ThoseVersionProvider versionProvider = mock(ThoseVersionProvider.class);
        when(versionProvider.getBuildInfo()).thenReturn(props);
        m_SUT.setThoseVersionProvider(versionProvider);
        
        assertThat(m_SUT.getBuildInfo(), hasEntry("key", "info"));
    }
/**
     * Verify build info is retrieved from internal service. 
     */
Verify build info is retrieved from internal service.
Verify build info is retrieved from internal service .
@Test
    public final void testGetBuildInfo()
    {
        Map<String, String> props = new HashMap<String, String>();
        props.put("key", "info");
        ThoseVersionProvider versionProvider = mock(ThoseVersionProvider.class);
        when(versionProvider.getBuildInfo()).thenReturn(props);
        m_SUT.setThoseVersionProvider(versionProvider);
        assertThat(m_SUT.getBuildInfo(), hasEntry("key", "info"));
    }
@ Test public final void testGetBuildInfo ( ) { Map < String , String > props = new HashMap < String , String > ( ) ; props . put ( "key" , "info" ) ; ThoseVersionProvider versionProvider = mock ( ThoseVersionProvider . class ) ; when ( versionProvider . getBuildInfo ( ) ) . thenReturn ( props ) ; m_SUT . setThoseVersionProvider ( versionProvider ) ; assertThat ( m_SUT . getBuildInfo ( ) , hasEntry ( "key" , "info" ) ) ; }
Verify build info is retrieved from internal service.
Verify build info is retrieved from internal service .