mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelMgrImpl.java
@Test
    public void testCreateTransportChannel()
    {
        // mock remote channel
        TransportChannel channel = mock(TransportChannel.class);
        when(m_RemoteChannelLookup.syncTransportChannel("Sausage",  "98.76.54.132", "123.45.67.689", 1596))
            .thenReturn(channel);
        
        // replay
        m_SUT.createTransportChannel(1596, "Sausage", "98.76.54.132", "123.45.67.689");
        
        // verify channel is synced
        verify(m_RemoteChannelLookup).syncTransportChannel("Sausage",  "98.76.54.132", "123.45.67.689", 1596);
    }
/**
     * Verify a create transport channel will sync request with remote channel lookup.
     * 
     * Verify system info request will be sent to new channel.
     * 
     * Verify controller manager is told about controller id.
     */
Verify a create transport channel will sync request with remote channel lookup.

Verify system info request will be sent to new channel.

Verify controller manager is told about controller id.
Verify a create transport channel will sync request with remote channel lookup . Verify system info request will be sent to new channel . Verify controller manager is told about controller id .
@Test
    public void testCreateTransportChannel()
    {
        TransportChannel channel = mock(TransportChannel.class);
        when(m_RemoteChannelLookup.syncTransportChannel("Sausage",  "98.76.54.132", "123.45.67.689", 1596))
            .thenReturn(channel);
        m_SUT.createTransportChannel(1596, "Sausage", "98.76.54.132", "123.45.67.689");
        verify(m_RemoteChannelLookup).syncTransportChannel("Sausage",  "98.76.54.132", "123.45.67.689", 1596);
    }
@ Test public void testCreateTransportChannel ( ) { TransportChannel channel = mock ( TransportChannel . class ) ; when ( m_RemoteChannelLookup . syncTransportChannel ( "Sausage" , "98.76.54.132" , "123.45.67.689" , 1596 ) ) . thenReturn ( channel ) ; m_SUT . createTransportChannel ( 1596 , "Sausage" , "98.76.54.132" , "123.45.67.689" ) ; verify ( m_RemoteChannelLookup ) . syncTransportChannel ( "Sausage" , "98.76.54.132" , "123.45.67.689" , 1596 ) ; }
Verify a create transport channel will sync request with remote channel lookup.
Verify a create transport channel will sync request with remote channel lookup .
// mock remote channel // replay // verify channel is synced