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

        //setup assert
        assertThat(m_SUT.getLinkLayer(), is((LinkLayer)null));
        
        //act
        m_SUT.shutdown();
        
        //verify, on shutdown is called last
        verify(m_WakeLock).activate();
        verify(m_TransportLayerProxy).onShutdown();
        verify(m_WakeLock).cancel();
    }
/**
     * Verify ability to shutdown a transport layer that has no link layer
     */
Verify ability to shutdown a transport layer that has no link layer
Verify ability to shutdown a transport layer that has no link layer
@Test
    public void testShutdownNoLink() throws CCommException
    {
        initTransportLayer(false);
        assertThat(m_SUT.getLinkLayer(), is((LinkLayer)null));
        m_SUT.shutdown();
        verify(m_WakeLock).activate();
        verify(m_TransportLayerProxy).onShutdown();
        verify(m_WakeLock).cancel();
    }
@ Test public void testShutdownNoLink ( ) throws CCommException { initTransportLayer ( false ) ; assertThat ( m_SUT . getLinkLayer ( ) , is ( ( LinkLayer ) null ) ) ; m_SUT . shutdown ( ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_TransportLayerProxy ) . onShutdown ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify ability to shutdown a transport layer that has no link layer
Verify ability to shutdown a transport layer that has no link layer
//setup assert //act //verify, on shutdown is called last