mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/transport/TestTransportChannelImpl.java
@Test
    public void testTrySendMessageAddressNotAvailable() throws IOException, CCommException
    {
        // Connection-less channel that is not available
        activateChannel(false, false, null);

        // construct a single base namespace message to verify sent to socket
        TerraHarvestMessage message = TerraHarvestMessageHelper.createBaseMessage();

        // replay
        boolean sent = m_SUT.trySendMessage(message);
        assertThat("message is not sent because endpont is not available", sent, is(false));

        //check that status is unavailable
        assertThat(m_SUT.getStatus(), is(ChannelStatus.Unavailable));
    }
/**
     * Verify the message is not sent if the endpoint is not available according to transport layer.
     */
Verify the message is not sent if the endpoint is not available according to transport layer.
Verify the message is not sent if the endpoint is not available according to transport layer .
@Test
    public void testTrySendMessageAddressNotAvailable() throws IOException, CCommException
    {
        activateChannel(false, false, null);
        TerraHarvestMessage message = TerraHarvestMessageHelper.createBaseMessage();
        boolean sent = m_SUT.trySendMessage(message);
        assertThat("message is not sent because endpont is not available", sent, is(false));
        assertThat(m_SUT.getStatus(), is(ChannelStatus.Unavailable));
    }
@ Test public void testTrySendMessageAddressNotAvailable ( ) throws IOException , CCommException { activateChannel ( false , false , null ) ; TerraHarvestMessage message = TerraHarvestMessageHelper . createBaseMessage ( ) ; boolean sent = m_SUT . trySendMessage ( message ) ; assertThat ( "message is not sent because endpont is not available" , sent , is ( false ) ) ; assertThat ( m_SUT . getStatus ( ) , is ( ChannelStatus . Unavailable ) ) ; }
Verify the message is not sent if the endpoint is not available according to transport layer.
Verify the message is not sent if the endpoint is not available according to transport layer .
// Connection-less channel that is not available // construct a single base namespace message to verify sent to socket // replay //check that status is unavailable