mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/transport/TestTransportLayerImpl.java
@Test
    public void testSendByteBufferToAddress() throws CCommException
    {
        initTransportLayer(false);

        TransportPacket pkt = mock(TransportPacket.class);
        ByteBuffer value = mock(ByteBuffer.class);
        when(pkt.getPayload()).thenReturn(value);
        Address addr = mock(Address.class);
        
        //act
        m_SUT.send(pkt, addr);
        
        //verify
        verify(m_WakeLock).activate();
        verify(m_TransportLayerProxy).send(value, addr);
        verify(m_WakeLock).cancel();
    }
/**
     * Verify that a transport layer is able to attempt to send a byte buffer to a specific address.
     */
Verify that a transport layer is able to attempt to send a byte buffer to a specific address.
Verify that a transport layer is able to attempt to send a byte buffer to a specific address .
@Test
    public void testSendByteBufferToAddress() throws CCommException
    {
        initTransportLayer(false);
        TransportPacket pkt = mock(TransportPacket.class);
        ByteBuffer value = mock(ByteBuffer.class);
        when(pkt.getPayload()).thenReturn(value);
        Address addr = mock(Address.class);
        m_SUT.send(pkt, addr);
        verify(m_WakeLock).activate();
        verify(m_TransportLayerProxy).send(value, addr);
        verify(m_WakeLock).cancel();
    }
@ Test public void testSendByteBufferToAddress ( ) throws CCommException { initTransportLayer ( false ) ; TransportPacket pkt = mock ( TransportPacket . class ) ; ByteBuffer value = mock ( ByteBuffer . class ) ; when ( pkt . getPayload ( ) ) . thenReturn ( value ) ; Address addr = mock ( Address . class ) ; m_SUT . send ( pkt , addr ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_TransportLayerProxy ) . send ( value , addr ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify that a transport layer is able to attempt to send a byte buffer to a specific address.
Verify that a transport layer is able to attempt to send a byte buffer to a specific address .
//act //verify