mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestRemoteChannelConfigs.java
@Test
    public void testTransportChannelTrySend()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        CustomCommsService customCommsService = IntegrationTestRunner.getService(CustomCommsService.class);
        
        //Verify that the transport layer needed by the channel already exists.
        TransportLayer tLayer = customCommsService.getTransportLayer("xmlConfigTransportLayer");
        assertThat(tLayer, is(notNullValue()));
        
        //Retrieve the transport channel that should be used to send a message.
        TransportChannel transportChannel = (TransportChannel)remoteChannelLookup.getChannels(300).get(0);
        TerraHarvestMessage tMessage = createMessage();
        
        //Verify that the channel can be used to send a message.
        boolean sent = transportChannel.trySendMessage(tMessage);
        assertThat(sent, is(true));
    }
/**
     * Verify that the XML created transport channel can send a message using the specified transport layer.
     */
Verify that the XML created transport channel can send a message using the specified transport layer.
Verify that the XML created transport channel can send a message using the specified transport layer .
@Test
    public void testTransportChannelTrySend()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        CustomCommsService customCommsService = IntegrationTestRunner.getService(CustomCommsService.class);
        TransportLayer tLayer = customCommsService.getTransportLayer("xmlConfigTransportLayer");
        assertThat(tLayer, is(notNullValue()));
        TransportChannel transportChannel = (TransportChannel)remoteChannelLookup.getChannels(300).get(0);
        TerraHarvestMessage tMessage = createMessage();
        boolean sent = transportChannel.trySendMessage(tMessage);
        assertThat(sent, is(true));
    }
@ Test public void testTransportChannelTrySend ( ) { RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner . getService ( RemoteChannelLookup . class ) ; CustomCommsService customCommsService = IntegrationTestRunner . getService ( CustomCommsService . class ) ; TransportLayer tLayer = customCommsService . getTransportLayer ( "xmlConfigTransportLayer" ) ; assertThat ( tLayer , is ( notNullValue ( ) ) ) ; TransportChannel transportChannel = ( TransportChannel ) remoteChannelLookup . getChannels ( 300 ) . get ( 0 ) ; TerraHarvestMessage tMessage = createMessage ( ) ; boolean sent = transportChannel . trySendMessage ( tMessage ) ; assertThat ( sent , is ( true ) ) ; }
Verify that the XML created transport channel can send a message using the specified transport layer.
Verify that the XML created transport channel can send a message using the specified transport layer .
//Verify that the transport layer needed by the channel already exists. //Retrieve the transport channel that should be used to send a message. //Verify that the channel can be used to send a message.