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

        Address address = mock(Address.class);
        when(m_TransportLayerProxy.isConnected()).thenReturn(true);

        // act
        m_SUT.connect(address);
        
        // verify
        assertThat(m_SUT.isConnected(), is(true));
    }
/**
     * Verify call to proxy to find out is the transport layer is connected.
     */
Verify call to proxy to find out is the transport layer is connected.
Verify call to proxy to find out is the transport layer is connected .
@Test
    public void testIsConnected() throws CCommException
    {
        initTransportLayer(true); 
        Address address = mock(Address.class);
        when(m_TransportLayerProxy.isConnected()).thenReturn(true);
        m_SUT.connect(address);
        assertThat(m_SUT.isConnected(), is(true));
    }
@ Test public void testIsConnected ( ) throws CCommException { initTransportLayer ( true ) ; Address address = mock ( Address . class ) ; when ( m_TransportLayerProxy . isConnected ( ) ) . thenReturn ( true ) ; m_SUT . connect ( address ) ; assertThat ( m_SUT . isConnected ( ) , is ( true ) ) ; }
Verify call to proxy to find out is the transport layer is connected.
Verify call to proxy to find out is the transport layer is connected .
// connection oriented // act // verify