mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestTransportLayerNamespace.java
@Test
    public void testIsTransmitting() throws IOException
    {
        IsTransmittingRequestData isTransmittingRequest = IsTransmittingRequestData.newBuilder().
                setUuid(transportUuid).
                build();
        
        TransportLayerNamespace.Builder transportLayerMessage = TransportLayerNamespace.newBuilder().
                setType(TransportLayerMessageType.IsTransmittingRequest).
                setData(isTransmittingRequest.toByteString());
        
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.TransportLayer, 
                transportLayerMessage);
        
        // send out message
        message.writeDelimitedTo(socket.getOutputStream());
        
        // read in response
        TerraHarvestMessage response = TerraHarvestMessage.parseDelimitedFrom(socket.getInputStream());
        TerraHarvestPayload payLoadTest = TerraHarvestPayload.parseFrom(response.getTerraHarvestPayload());
        
        TransportLayerNamespace namespaceResponse = TransportLayerNamespace.
            parseFrom(payLoadTest.getNamespaceMessage());
        
        IsTransmittingResponseData getLayersResponse = IsTransmittingResponseData.parseFrom(
                namespaceResponse.getData());
        
        assertThat(getLayersResponse.getIsTransmitting(), is(false));
    }
/**
     * Assuming a transport layer was created in setup, verify that the default of a newly created transport layer's
     * transmitting property is set to false.
     */
Assuming a transport layer was created in setup, verify that the default of a newly created transport layer's
transmitting property is set to false.
Assuming a transport layer was created in setup verify that the default of a newly created transport layer ' s transmitting property is set to false .
@Test
    public void testIsTransmitting() throws IOException
    {
        IsTransmittingRequestData isTransmittingRequest = IsTransmittingRequestData.newBuilder().
                setUuid(transportUuid).
                build();
        TransportLayerNamespace.Builder transportLayerMessage = TransportLayerNamespace.newBuilder().
                setType(TransportLayerMessageType.IsTransmittingRequest).
                setData(isTransmittingRequest.toByteString());
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.TransportLayer, 
                transportLayerMessage);
        message.writeDelimitedTo(socket.getOutputStream());
        TerraHarvestMessage response = TerraHarvestMessage.parseDelimitedFrom(socket.getInputStream());
        TerraHarvestPayload payLoadTest = TerraHarvestPayload.parseFrom(response.getTerraHarvestPayload());
        TransportLayerNamespace namespaceResponse = TransportLayerNamespace.
            parseFrom(payLoadTest.getNamespaceMessage());
        IsTransmittingResponseData getLayersResponse = IsTransmittingResponseData.parseFrom(
                namespaceResponse.getData());
        assertThat(getLayersResponse.getIsTransmitting(), is(false));
    }
@ Test public void testIsTransmitting ( ) throws IOException { IsTransmittingRequestData isTransmittingRequest = IsTransmittingRequestData . newBuilder ( ) . setUuid ( transportUuid ) . build ( ) ; TransportLayerNamespace . Builder transportLayerMessage = TransportLayerNamespace . newBuilder ( ) . setType ( TransportLayerMessageType . IsTransmittingRequest ) . setData ( isTransmittingRequest . toByteString ( ) ) ; TerraHarvestMessage message = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . TransportLayer , transportLayerMessage ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; TerraHarvestMessage response = TerraHarvestMessage . parseDelimitedFrom ( socket . getInputStream ( ) ) ; TerraHarvestPayload payLoadTest = TerraHarvestPayload . parseFrom ( response . getTerraHarvestPayload ( ) ) ; TransportLayerNamespace namespaceResponse = TransportLayerNamespace . parseFrom ( payLoadTest . getNamespaceMessage ( ) ) ; IsTransmittingResponseData getLayersResponse = IsTransmittingResponseData . parseFrom ( namespaceResponse . getData ( ) ) ; assertThat ( getLayersResponse . getIsTransmitting ( ) , is ( false ) ) ; }
Assuming a transport layer was created in setup, verify that the default of a newly created transport layer's
 transmitting property is set to false.
Assuming a transport layer was created in setup verify that the default of a newly created transport layer ' s transmitting property is set to false .
// send out message // read in response