mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
@Test 
    public void testGetTransportsAsync()
    {
        List<CommsLayerBaseModel> list = m_SUT.getTransportsAsync(systemId1);
        
        assertThat(list.isEmpty(), is(true));
        verify(m_MessageFactory).createCustomCommsMessage(eq(CustomCommsMessageType.GetLayersRequest),
                Mockito.any(Message.class));
        verify(m_MessageWrapper, times(4)).queue(eq(systemId1), (ResponseHandler) eq(null));
        
        Event event = mockGetLayersResponse(systemId1, "transport");
        m_EventHelperComms.handleEvent(event); 
        
        list = m_SUT.getTransportsAsync(systemId1);
        assertThat(list.size(), is(1)); //contents are verified in test handle get layers response        
    }
/**
     * Verify all known transport layers are retrieved. 
     */
Verify all known transport layers are retrieved.
Verify all known transport layers are retrieved .
@Test 
    public void testGetTransportsAsync()
    {
        List<CommsLayerBaseModel> list = m_SUT.getTransportsAsync(systemId1);
        assertThat(list.isEmpty(), is(true));
        verify(m_MessageFactory).createCustomCommsMessage(eq(CustomCommsMessageType.GetLayersRequest),
                Mockito.any(Message.class));
        verify(m_MessageWrapper, times(4)).queue(eq(systemId1), (ResponseHandler) eq(null));
        Event event = mockGetLayersResponse(systemId1, "transport");
        m_EventHelperComms.handleEvent(event); 
        list = m_SUT.getTransportsAsync(systemId1);
        assertThat(list.size(), is(1)); 
    }
@ Test public void testGetTransportsAsync ( ) { List < CommsLayerBaseModel > list = m_SUT . getTransportsAsync ( systemId1 ) ; assertThat ( list . isEmpty ( ) , is ( true ) ) ; verify ( m_MessageFactory ) . createCustomCommsMessage ( eq ( CustomCommsMessageType . GetLayersRequest ) , Mockito . any ( Message . class ) ) ; verify ( m_MessageWrapper , times ( 4 ) ) . queue ( eq ( systemId1 ) , ( ResponseHandler ) eq ( null ) ) ; Event event = mockGetLayersResponse ( systemId1 , "transport" ) ; m_EventHelperComms . handleEvent ( event ) ; list = m_SUT . getTransportsAsync ( systemId1 ) ; assertThat ( list . size ( ) , is ( 1 ) ) ; }
Verify all known transport layers are retrieved.
Verify all known transport layers are retrieved .
//contents are verified in test handle get layers response        