mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestControllerHistoryMgr.java
@Test
    public void testGetControllerHistory()
    {
        Map<String, ControllerHistory> historyMap = m_SUT.getControllerHistory();
        assertThat(historyMap.size(), is(1));
        assertThat(historyMap.containsKey("localhost"), is(true));
        
        mockControllerData();
        historyMap = m_SUT.getControllerHistory();
        assertThat(historyMap.size(), is(3));
        assertThat(historyMap.containsKey("localhost:generic-controller"), is(true));
        assertThat(historyMap.containsKey("10.110.7.90:Roof"), is(true));
        assertThat(historyMap.containsKey("192.168.2.1:House"), is(true));
    }
/**
     * Tests the get controller history method and verifies that the appropriate list of controllers is returned.
     */
Tests the get controller history method and verifies that the appropriate list of controllers is returned.
Tests the get controller history method and verifies that the appropriate list of controllers is returned .
@Test
    public void testGetControllerHistory()
    {
        Map<String, ControllerHistory> historyMap = m_SUT.getControllerHistory();
        assertThat(historyMap.size(), is(1));
        assertThat(historyMap.containsKey("localhost"), is(true));
        mockControllerData();
        historyMap = m_SUT.getControllerHistory();
        assertThat(historyMap.size(), is(3));
        assertThat(historyMap.containsKey("localhost:generic-controller"), is(true));
        assertThat(historyMap.containsKey("10.110.7.90:Roof"), is(true));
        assertThat(historyMap.containsKey("192.168.2.1:House"), is(true));
    }
@ Test public void testGetControllerHistory ( ) { Map < String , ControllerHistory > historyMap = m_SUT . getControllerHistory ( ) ; assertThat ( historyMap . size ( ) , is ( 1 ) ) ; assertThat ( historyMap . containsKey ( "localhost" ) , is ( true ) ) ; mockControllerData ( ) ; historyMap = m_SUT . getControllerHistory ( ) ; assertThat ( historyMap . size ( ) , is ( 3 ) ) ; assertThat ( historyMap . containsKey ( "localhost:generic-controller" ) , is ( true ) ) ; assertThat ( historyMap . containsKey ( "10.110.7.90:Roof" ) , is ( true ) ) ; assertThat ( historyMap . containsKey ( "192.168.2.1:House" ) , is ( true ) ) ; }
Tests the get controller history method and verifies that the appropriate list of controllers is returned.
Tests the get controller history method and verifies that the appropriate list of controllers is returned .