mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/link/TestLinkLayerImpl.java
@Test
    public void testSendNotActivated()
    {
        //mocks
        Address destAddress = mock(Address.class);
        LinkFrame frame = mock(LinkFrame.class);
        
        //act
        try
        {
            m_SUT.send(frame, destAddress);
            fail("Expected exception because layer is not activated.");
        }
        catch (CCommException e)
        {
            //expected
        }

        verify(m_WakeLock, never()).activate();
    }
/**
     * Verify that the link layer must be activated before being able to send.
     */
Verify that the link layer must be activated before being able to send.
Verify that the link layer must be activated before being able to send .
@Test
    public void testSendNotActivated()
    {
        Address destAddress = mock(Address.class);
        LinkFrame frame = mock(LinkFrame.class);
        try
        {
            m_SUT.send(frame, destAddress);
            fail("Expected exception because layer is not activated.");
        }
        catch (CCommException e)
        {
        }
        verify(m_WakeLock, never()).activate();
    }
@ Test public void testSendNotActivated ( ) { Address destAddress = mock ( Address . class ) ; LinkFrame frame = mock ( LinkFrame . class ) ; try { m_SUT . send ( frame , destAddress ) ; fail ( "Expected exception because layer is not activated." ) ; } catch ( CCommException e ) { } verify ( m_WakeLock , never ( ) ) . activate ( ) ; }
Verify that the link layer must be activated before being able to send.
Verify that the link layer must be activated before being able to send .
//mocks //act //expected