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

        //setup
        LinkLayer link = mock(LinkLayer.class);
        m_SUT.setLinkLayer(link);
        
        //act
        m_SUT.shutdown();
        
        //verify
        verify(m_TransportLayerProxy).onShutdown();
        verify(link).deactivateLayer();
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
/**
     * Verify ability to shutdown a transport layer deactivates link layer.
     */
Verify ability to shutdown a transport layer deactivates link layer.
Verify ability to shutdown a transport layer deactivates link layer .
@Test
    public void testShutdown() throws CCommException
    {
        initTransportLayer(false);
        LinkLayer link = mock(LinkLayer.class);
        m_SUT.setLinkLayer(link);
        m_SUT.shutdown();
        verify(m_TransportLayerProxy).onShutdown();
        verify(link).deactivateLayer();
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
@ Test public void testShutdown ( ) throws CCommException { initTransportLayer ( false ) ; LinkLayer link = mock ( LinkLayer . class ) ; m_SUT . setLinkLayer ( link ) ; m_SUT . shutdown ( ) ; verify ( m_TransportLayerProxy ) . onShutdown ( ) ; verify ( link ) . deactivateLayer ( ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify ability to shutdown a transport layer deactivates link layer.
Verify ability to shutdown a transport layer deactivates link layer .
//setup //act //verify