mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/general/TestTerraHarvestControllerUtil.java
@Test
    public void testGetSystemBuildInfo()
    {
        
        //map of properties for the build info
        Map<String, String> props = new HashMap<String, String>();
        props.put("when.prop", "1492 sailed the ocean blue");
        props.put("why.prop", "new land");
        when(m_TerraHarvestController.getBuildInfo()).thenReturn(props);

        //verify content
        assertThat(m_SUT.getSystemBuildInformation().size(), is(2));
        assertThat(m_SUT.getSystemBuildInformation(), hasEntry("when.prop", "1492 sailed the ocean blue"));
        assertThat(m_SUT.getSystemBuildInformation(), hasEntry("why.prop", "new land"));
        assertThat(m_SUT.getSystemBuildInformationKeys(), hasItems("when.prop", "why.prop"));
    }
/**
     * Verify the system build info can be retrieved
     */
Verify the system build info can be retrieved
Verify the system build info can be retrieved
@Test
    public void testGetSystemBuildInfo()
    {
        Map<String, String> props = new HashMap<String, String>();
        props.put("when.prop", "1492 sailed the ocean blue");
        props.put("why.prop", "new land");
        when(m_TerraHarvestController.getBuildInfo()).thenReturn(props);
        assertThat(m_SUT.getSystemBuildInformation().size(), is(2));
        assertThat(m_SUT.getSystemBuildInformation(), hasEntry("when.prop", "1492 sailed the ocean blue"));
        assertThat(m_SUT.getSystemBuildInformation(), hasEntry("why.prop", "new land"));
        assertThat(m_SUT.getSystemBuildInformationKeys(), hasItems("when.prop", "why.prop"));
    }
@ Test public void testGetSystemBuildInfo ( ) { Map < String , String > props = new HashMap < String , String > ( ) ; props . put ( "when.prop" , "1492 sailed the ocean blue" ) ; props . put ( "why.prop" , "new land" ) ; when ( m_TerraHarvestController . getBuildInfo ( ) ) . thenReturn ( props ) ; assertThat ( m_SUT . getSystemBuildInformation ( ) . size ( ) , is ( 2 ) ) ; assertThat ( m_SUT . getSystemBuildInformation ( ) , hasEntry ( "when.prop" , "1492 sailed the ocean blue" ) ) ; assertThat ( m_SUT . getSystemBuildInformation ( ) , hasEntry ( "why.prop" , "new land" ) ) ; assertThat ( m_SUT . getSystemBuildInformationKeys ( ) , hasItems ( "when.prop" , "why.prop" ) ) ; }
Verify the system build info can be retrieved
Verify the system build info can be retrieved
//map of properties for the build info //verify content