mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
@Test
    public void testRemoteTransportName()
    {
        // add layer
        m_SUT.getTransportsAsync(systemId1);
        Event transLayers = mockGetLayersResponse(systemId1, "transport");
        
        m_EventHelperComms.handleEvent(transLayers);
        
        List<CommsLayerBaseModel> trans = m_SUT.getTransportsAsync(systemId1);
        //trans layer with uuid1 is changed verify assumption that it is the first layer
        assertThat(trans.get(0).getUuid(), is(uuid1));
        String name = trans.get(0).getName();
        
        //name change events
        Event nameChange = mockEventNameUpdated(systemId1, "transport");
        
        //handle event
        m_EventHelper.handleEvent(nameChange);

        trans = m_SUT.getTransportsAsync(systemId1);
        assertThat(trans.get(0).getUuid(), is(uuid1));
        assertThat(trans.get(0).getName(), is("transy"));
        assertThat(name, is(not("transy")));
    }
/**
     * Verify proper handling of remote transport name change event.
     */
Verify proper handling of remote transport name change event.
Verify proper handling of remote transport name change event .
@Test
    public void testRemoteTransportName()
    {
        m_SUT.getTransportsAsync(systemId1);
        Event transLayers = mockGetLayersResponse(systemId1, "transport");
        m_EventHelperComms.handleEvent(transLayers);
        List<CommsLayerBaseModel> trans = m_SUT.getTransportsAsync(systemId1);
        assertThat(trans.get(0).getUuid(), is(uuid1));
        String name = trans.get(0).getName();
        Event nameChange = mockEventNameUpdated(systemId1, "transport");
        m_EventHelper.handleEvent(nameChange);
        trans = m_SUT.getTransportsAsync(systemId1);
        assertThat(trans.get(0).getUuid(), is(uuid1));
        assertThat(trans.get(0).getName(), is("transy"));
        assertThat(name, is(not("transy")));
    }
@ Test public void testRemoteTransportName ( ) { m_SUT . getTransportsAsync ( systemId1 ) ; Event transLayers = mockGetLayersResponse ( systemId1 , "transport" ) ; m_EventHelperComms . handleEvent ( transLayers ) ; List < CommsLayerBaseModel > trans = m_SUT . getTransportsAsync ( systemId1 ) ; assertThat ( trans . get ( 0 ) . getUuid ( ) , is ( uuid1 ) ) ; String name = trans . get ( 0 ) . getName ( ) ; Event nameChange = mockEventNameUpdated ( systemId1 , "transport" ) ; m_EventHelper . handleEvent ( nameChange ) ; trans = m_SUT . getTransportsAsync ( systemId1 ) ; assertThat ( trans . get ( 0 ) . getUuid ( ) , is ( uuid1 ) ) ; assertThat ( trans . get ( 0 ) . getName ( ) , is ( "transy" ) ) ; assertThat ( name , is ( not ( "transy" ) ) ) ; }
Verify proper handling of remote transport name change event.
Verify proper handling of remote transport name change event .
// add layer //trans layer with uuid1 is changed verify assumption that it is the first layer //name change events //handle event