mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestRemoteChannelConfigs2ndRun.java
@Test
    public void testRemoteChannelConfigLoading()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        
        assertThat(remoteChannelLookup.getChannels(300).size(), is(1));
        assertThat(remoteChannelLookup.getChannels(2).size(), is(1));
        
        TransportChannel transportChannel = (TransportChannel)remoteChannelLookup.getChannels(300).get(0);
        assertThat(transportChannel.getTransportLayerName(), is("testTransportLayer"));
        assertThat(transportChannel.getLocalMessageAddress(), is("t1:1.1.1"));
        assertThat(transportChannel.getRemoteMessageAddress(), is("t2:1.1.2"));
        
        SocketChannel socketChannel = (SocketChannel)remoteChannelLookup.getChannels(2).get(0);
        assertThat(socketChannel.getHost(), is("localhost"));
        assertThat(socketChannel.getPort(), is(4001));
    }
/**
     * Verify that the remote channels defined in the configs.xml are added to the {@link RemoteChannelLookup}.
     */
Verify that the remote channels defined in the configs.xml are added to the  RemoteChannelLookup.
Verify that the remote channels defined in the configs . xml are added to the RemoteChannelLookup .
@Test
    public void testRemoteChannelConfigLoading()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        assertThat(remoteChannelLookup.getChannels(300).size(), is(1));
        assertThat(remoteChannelLookup.getChannels(2).size(), is(1));
        TransportChannel transportChannel = (TransportChannel)remoteChannelLookup.getChannels(300).get(0);
        assertThat(transportChannel.getTransportLayerName(), is("testTransportLayer"));
        assertThat(transportChannel.getLocalMessageAddress(), is("t1:1.1.1"));
        assertThat(transportChannel.getRemoteMessageAddress(), is("t2:1.1.2"));
        SocketChannel socketChannel = (SocketChannel)remoteChannelLookup.getChannels(2).get(0);
        assertThat(socketChannel.getHost(), is("localhost"));
        assertThat(socketChannel.getPort(), is(4001));
    }
@ Test public void testRemoteChannelConfigLoading ( ) { RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner . getService ( RemoteChannelLookup . class ) ; assertThat ( remoteChannelLookup . getChannels ( 300 ) . size ( ) , is ( 1 ) ) ; assertThat ( remoteChannelLookup . getChannels ( 2 ) . size ( ) , is ( 1 ) ) ; TransportChannel transportChannel = ( TransportChannel ) remoteChannelLookup . getChannels ( 300 ) . get ( 0 ) ; assertThat ( transportChannel . getTransportLayerName ( ) , is ( "testTransportLayer" ) ) ; assertThat ( transportChannel . getLocalMessageAddress ( ) , is ( "t1:1.1.1" ) ) ; assertThat ( transportChannel . getRemoteMessageAddress ( ) , is ( "t2:1.1.2" ) ) ; SocketChannel socketChannel = ( SocketChannel ) remoteChannelLookup . getChannels ( 2 ) . get ( 0 ) ; assertThat ( socketChannel . getHost ( ) , is ( "localhost" ) ) ; assertThat ( socketChannel . getPort ( ) , is ( 4001 ) ) ; }
Verify that the remote channels defined in the configs.xml are added to the {@link RemoteChannelLookup}.
Verify that the remote channels defined in the configs . xml are added to the { @link RemoteChannelLookup } .